s_swatchWidthScale
global · terrain
- Address
0x81023c· 4 bytes, up to0x81023f- Type
float- Meaning
- Holds 0.125, the factor of 64 that gives a swatch's width of 8
- Confidence
- verified, proof one
- Finding
- terrain/watershade#swatch-refresh
Finding: Swatch refresh in terrain: water shading
The two swatch textures follow the light state every frame. The dirty flags 0xc8117c (river) and
0xc81b70 (ocean) are cleared by 0x6809c0 once a frame, and the first liquid slot drawn after
that finds its flag clear, refills the swatch through the texture update 0x58acd0 (the fill
callback 0x68a830 runs again) and sets the flag.
The derivation is in the doc.