I am using SpriteKit, does SKLightNode can only work with SKSpriteNode? because there is no shadowCastBitMask property on SKShapeNode, I cannot make SKLightNode work with SKShapeNode. Is there a way can make them work together? Thanks!
Asked
Active
Viewed 995 times
1 Answers
3
SKShapeNode does not have lighting properties like SKSpriteNode. If you create a SKShapeNode you can make it disappear into a shadow but you cannot make it cast a shadow or set any other lighting properties.

sangony
- 11,636
- 4
- 39
- 55
-
is it possible to put an extension on `SKShapeNode()` to get it to conform and have those lighting properties? – Dave Kliman Jan 03 '17 at 18:12