s_m2FogModeTable
global · models
- Address
0x70c17c· 16 bytes, up to0x70c18b- Type
void *[4]- Meaning
- Holds the jump targets of fog modes 1 to 4
- Confidence
- verified, proof one
- Finding
- models/render#lighting-and-fog
Finding: Lighting and fog in models: drawing
Lighting is on unless the material has flag 1 or its blend is 5 or 6. Fog is on unless the
material has flag 2 or the lighting record has no fog, and its mode comes from the blend: modes
0 to 2 fog to the record's colour, 3 and 4 to black, 5 to white and 6 to grey 0x808080. The fog
range is the record's start +0x184 and end +0x188. An element straddling the clip plane sets
it as a user clip plane, negated for list 2.
The derivation is in the doc.