benilla-re systems structs docs

s_terrainShaderFlag

global · terrain

Address
0xc9a31c · 1 bytes, up to 0xc9a31c
Type
uint8_t
Meaning
Holds 1 when the terrain pixel shaders are in use: combined chunk textures and _s textures
Confidence
verified, proof one
Finding
terrain/files#texture-names

Finding: Texture names in terrain: files

0x6c20e0(names, size) makes one texture per NUL-terminated name in the MTEX data, storing the handles from area +0xec with the count at +0xe8. Under the terrain shader flag 0xc9a31c the name has _s put before its last ., so x.blp loads as x_s.blp.

The derivation is in the doc.