M2BatchesMatch
function · models · orchestration
- Address
0x711780· 87 bytes, up to0x7117d6- Meaning
- Returns whether two units share colour, material, textures, transparency, transform and first bone
- Confidence
- verified, proof one
- Finding
- models/model#own-batches
Finding: Own batches in models: the instance
BuildBatches gives an instance its own batch table when merging shrinks it: walking the selected
view's texture units in order, it keeps each visible one and drops one that matches the last kept
one in colour index, material, texture combination, transparency, texture transform and the
submesh's first bone lookup. Only when some unit was dropped does it build the table, with its own
index buffer and shader ids; otherwise the instance keeps none. Building first frees the old table
and clears the instance's batchable flag +0xb8.
The derivation is in the doc.
Callers 1
- CM2Model::BuildBatches models
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.