DriftTexture · const
LEVEL_MARGIN
How close to a level boundary, in levels, an estimate names the finer level as well.
Explained in DriftTexture.
const LEVEL_MARGIN = 0.125import { LEVEL_MARGIN } from '@driftengine/texture';In depth
An eighth of a level is a ninth of the distance. A caller's texel density is an estimate of a mesh's UV layout, and an estimate that good is the most this is asked to forgive; a wider margin fetches four times a level's tiles for a quarter of all instances rather than an eighth.