benilla-re systems structs docs

s_mapAnisotropy

global · terrain

Address
0xc6297c · 4 bytes, up to 0xc6297f
Type
uint32_t
Meaning
Holds the anisotropy the map textures are made with
Confidence
verified, proof one
Finding
terrain/render#texture-detail-bias

Finding: Texture detail bias in terrain: render

The map textures (chunk layers and liquid frames) are made with linear filtering and the nearest mip level (filter index 3 of the Direct3D table 0x85c7d8), repeat wrapping and the anisotropy of the anisotropic setting. A setting above 1 also sets world flag 0x80000000, and the chunk pass and the map object pass then set the sampler bias of stages 0 to 3 to 0.25; the scene driver resets all four to 0. The detail doodad pass sets stage 0 to 0.25 whatever the setting.

The derivation is in the doc.