benilla-re systems structs docs

s_m2FogModeByBlend

global · models

Address
0x811fc4 · 28 bytes, up to 0x811fdf
Type
uint32_t[7]
Meaning
Holds the fog mode of each blend mode
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.