Renderer · const
GRADE_PLACEHOLDER_SIZE
The lattice the placeholder is built at, and two is exact rather than merely small.
Explained in Hello world.
const GRADE_PLACEHOLDER_SIZE = 2import { GRADE_PLACEHOLDER_SIZE } from '@driftengine/core';In depth
Identity is a linear function and a trilinear fetch through a lattice whose corners hold their own coordinates reproduces a linear function exactly. So the texture bound when nothing is graded is the right answer if anything ever samples it, rather than an inert stand-in that happens not to be read — which is the same reasoning the ambient-occlusion and bloom placeholders give for being a real texture rather than an unbound unit.