Skip to content

EFFECT_BIT_OFFSET

const EFFECT_BIT_OFFSET: 0 = 0

Defined in: packages/three-flatland/src/materials/effectFlagBits.ts:62

Bit index at which the first registered MaterialEffect enable bit sits within instanceSystem.w. The first effect occupies bit 0, the second bit 1, and so on up to 24 slots.

Kept as an exported constant — and at zero — so callers can compute per-effect masks as 1 << (EFFECT_BIT_OFFSET + i) and stay robust to a future change (e.g., reserving low enable bits for framework use).