s_m2LitByBlend
global · models
- Address
0x811fa8· 28 bytes, up to0x811fc3- Type
uint32_t[7]- Meaning
- Holds whether each blend mode is lit
- 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.