Renderer · const
MAX_DEPTH_LAYER
Highest depth layer a caller may ask for.
Explained in Hello world.
const MAX_DEPTH_LAYER = 4import { MAX_DEPTH_LAYER } from '@driftengine/core';In depth
A ceiling rather than an open number, because the offset has to stay small enough that a layer cannot be dragged out through geometry it genuinely stands behind. Four is more than any scene has needed: a base surface, the decks that cross it, the trim fused into those, and the markings painted on top.