s_mapObjOverbrightOn
global · terrain
- Address
0xca809c· 1 bytes, up to0xca809c- Type
uint8_t- Meaning
- Holds the mapObjOverbright console variable, default on
- Confidence
- verified, proof one
- Finding
- terrain/watershade#pixel-program-gates
Finding: Pixel program gates in terrain: water shading
CMap::Load (0x6941f0) turns two video options into the flags every pixel program path tests.
The pixel shaders option is bit 28 of the world flags 0xc7b2a4 and the specular option bit 27;
both are set by their console variables (pixelShaders, specular, default 0) only on a device
whose capability word +0x98 is not negative. The pixel flag 0xc9a340 is bit 28. With specular
and pixel shaders both on, 0xc9607c is 1; with bit 27 or 28 clear it is 0. A program counts as
available when the handle is nonzero and its loaded word +0x2c is. Each gate below also needs
0xc9a340.
The derivation is in the doc.