CM2Shared::InitializeView
function · models · primitive
- Address
0x71d6c0· 1004 bytes, up to0x71daab- Meaning
- Picks the richest view the bone palette fits, sets batch limits, shader ids and loads textures
- Confidence
- verified, proof one
- Finding
- models/shared#view-selection
Finding: View selection in models: the shared model
The view the shared model draws is the one with the most bones that still fits the vertex shader
palette: up to 256 bones, or (constants − 31) / 3 when vertex shaders are on and that is
smaller. Without a fitting view the load fails. A material with blend 5 or above is marked unlit.
With vertex or pixel shaders the view's batches get their shader ids, and every texture with a
name is created with its wrap flags.
The derivation is in the doc.
Callers 1
- CM2Shared::FinishLoad models
Callees 6
- 0x419e20 client
- TextureCreate gx
- GxDeviceCaps gx
- SMemAlloc storm
- CM2Shared::GetVertexShaderId models
- CM2Shared::GetPixelShaderId models
Calls and jumps by a bare address, from tables/calls.tsv.