I do not understand the difference between shadowedBitMask and shadowCastBitMask in SKSpriteNode of spritekit in objective-c for ios development.
in the documentation it says:
shadowedBitMask is defined as "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 non-zero value, then the sprite is drawn using a shadowed effect."
The default value is 0x00000000 (all bits cleared).
shadowCastBitMask = "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 non-zero value, then the sprite casts a shadow past itself."
could someone please rephrase or give me an example because I dont understand what shadowedBitMask does??