s_transProgramsOn
global · terrain
- Address
0xca8065· 1 bytes, up to0xca8065- Type
uint8_t- Meaning
- Holds 1 when both transparency pixel programs of the map objects are available
- Confidence
- verified, proof one
- Finding
- terrain/groupdraw#interior-group-batches
Finding: Interior group batches in terrain: map object draw
0x6b5190(group, again) draws all of an interior group's batches (+0x13c) in three kinds by
position: the first +0x3c are transparent, the next +0x3e interior, the rest exterior.
Transparent batches draw twice, lit with blend 9 and unlit with blend 7. Interior batches draw unlit
with the material blend and a pixel program by shader. Exterior batches draw lit with the material
blend and no program. The interior fog colours replace the scene's when the group fog flag is set,
and a window material (flag 0x20) lights with the window colours.
The derivation is in the doc.