M2ElementHash
function · models · primitive
- Address
0x70a600· 260 bytes, up to0x70a703- Meaning
- Hashes an element's shared model, batch and lighting and colour inputs for grouping
- Confidence
- verified, proof one
- Finding
- models/scene#batch-grouping
Finding: Batch grouping in models: the scene
Before sorting, the grouped list (kind 2 elements) is grouped by inputs: a 251-bucket hash of the shared model, batch index, fog range, fog colour, spherical harmonic terms, colour and the instance colours finds each element's first equal element, the list is sorted by that representative, and each run of equal elements becomes one element with the run length, drawn as one batched run. Lists 0, 1 and 2 are then sorted: list 0 by the opaque order, lists 1 and 2 by the transparent order.
The derivation is in the doc.
Callers 1
- M2SceneAnimateAndCollect models
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.