Skip to content

layerOrderOf

layerOrderOf(layer, ySortMask, depthMask): LayerOrder

Defined in: render/layerOrder.ts:32

The one answer for

number

number

number

LayerOrder

layer, from two masks that are two spellings of the same question. Y-sort is a depth PROJECTED from world Y and depth is the real thing, so a layer declaring both has said two contradictory things: y-sort wins, which is what the engine does, so a project that had it renders as it did. Layers outside 0..31 have no bit and are therefore painter-ordered.