Instance Property

shadowedBitMask

A mask that defines which lights add shadows to the sprite.

Declaration

@property(nonatomic) uint32_t shadowedBitMask;

Discussion

To determine whether this sprite is affected by being a shadow generated by a light, its shadowCastBitMask 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 is drawn using a shadowed effect.

The default value is 0x00000000 (all bits cleared).

See Also

Lighting a Sprite

Lighting a Sprite with Light Nodes

Add lighting and shadows to your scene with light nodes.

lightingBitMask

A mask that defines how this sprite is lit by light nodes in the scene.

shadowCastBitMask

A mask that defines which lights are occluded by this sprite.

normalTexture

A texture that specifies the normal map for the sprite.