CM2Shared::GetPixelShaderId
function · models · primitive
- Address
0x71df30· 98 bytes, up to0x71df91- Meaning
- Computes the pixel shader id of a batch from its texture units' blend modes
- 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 2
- CM2Model::BuildBatches models
- CM2Shared::InitializeView models
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.