benilla-re systems structs docs

s_pathModel2VertexProgram

global · models

Address
0x8730ac · 26 bytes, up to 0x8730c5
Type
const char[26]
Meaning
Holds the path of the model vertex program file shaders\vertex\Model2.bls
Confidence
verified, proof one
Finding
models/cache#feature-request

Finding: Feature request in models: the cache

The start-up code 0x402840 registers the model system's console variables and builds the mask it passes to 0x706dd0 from their values: bit 1 M2UseZFill, 2 M2UseClipPlanes, 4 M2UseThreads, 8 M2UseShaders, 0x10 M2UsePixelShaders and 0x20 M2BatchDoodads. All default to 1 but M2UsePixelShaders, which is 0, so pixel shaders are never requested at the defaults. With vertex shaders granted 0x706510 allocates 0x708 four-byte slots at +0x102c and loads the file shaders\vertex\Model2.bls into them; with pixel shaders granted 0x20 slots at +0x1030 and shaders\pixel\Model2.bls. The programs are files of the install, not of the exe.

The derivation is in the doc.