FOG

From Battlepedia
Jump to navigationJump to search
FOG
Fog
Type Object
Object ID 0x24
Games used Night of 100 Frights
Battle for Bikini Bottom
The SpongeBob SquarePants Movie
The Incredibles
Rise of the Underminer

FOG is an asset which controls the game's fog.

Format

Fogs are object assets, so they start with their 0x8 byte header, then are followed by:

Offset Type Variable Description
0x08 Color bkgndColor
0x0C Color fogColor
0x10 float fogDensity always 1
0x14 float fogStart start distance from camera
0x18 float fogStop end distance from camera
0x1C float transitionTime in the case of multiple Fogs in a level, this can be used to fade from one Fog to another. Unknown how this works exactly
0x20 byte (enum?) fogType always 0
0x21 byte[3] padFog padding
Events
0x24 Event[numberOfEvents] Events