Skip to content

readCastShadowFlag

readCastShadowFlag(): Node <"bool">

Defined in: packages/three-flatland/src/materials/instanceAttributes.ts:107

Read the per-instance castsShadow flag (bit 2 of instanceSystem.z). Consumed by the occlusion-pass fragment shader to mask a sprite’s alpha contribution to the SDF seed — casters emit their silhouette, non-casters emit alpha = 0.

Node <"bool">