benilla-re systems structs docs

s_m2KindPriority

global · models

Address
0x873184 · 24 bytes, up to 0x87319b
Type
uint32_t[6]
Meaning
Holds the transparent sort priority of each element kind
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.