[英]How to add lighting effect in SKShapeNode
I am using SpriteKit, does SKLightNode can only work with SKSpriteNode? 我正在使用SpriteKit,SKLightNode是否只能与SKSpriteNode一起使用? because there is no shadowCastBitMask property on SKShapeNode, I cannot make SKLightNode work with SKShapeNode.
因为SKShapeNode上没有shadowCastBitMask属性,所以我无法使SKLightNode与SKShapeNode一起使用。 Is there a way can make them work together?
有没有办法可以使他们一起工作? Thanks!
谢谢!
SKShapeNode does not have lighting properties like SKSpriteNode. SKShapeNode不具有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.
如果创建SKShapeNode,则可以使其消失在阴影中,但不能使其投射阴影或设置任何其他照明属性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.