benilla-re systems structs docs

CMapObj::LoadMaterialTextures

function · models · orchestration

Address
0x6c3db0 · 105 bytes, up to 0x6c3e18
Signature
void __thiscall (CMapObj *this, uint32_t material)
Meaning
Loads a material's two textures once, the first falling back to a default name
Confidence
verified, proof one
Finding
models/wmo#material-textures

Finding: Material textures in models: map objects

A material record is the file's 64-byte MOMT record, used in place. Its first texture is the MOTX string at offset +0xc, or createcrappygreentexture.blp when that string is empty; its second, at +0x18, is loaded only when its string is not empty. The handles go to +0x38 and +0x3c, once: a material whose first handle is set is skipped.

The derivation is in the doc.

Callers 1

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.