benilla-re systems structs docs

s_filterModes

global · terrain

Address
0x85c7d8 · 60 bytes, up to 0x85c813
Type
uint32_t[15]
Meaning
Holds the Direct3D magnify, minify and mip filters of each texture filter index
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.