shadowCastBitMask
A mask that defines which lights are occluded by this sprite.
Declaration
var shadowCastBitMask: UInt32 { get set }Mentioned in
Discussion
To determine whether this sprite blocks the light (casting a shadow), the sprite’s shadowedBitMask property is tested against the light’s categoryBitMask property by performing a logical AND operation. If the comparison results in a nonzero value, the sprite casts a shadow past itself.