2 LightNodes

My problem is that I have 2 LightNodes and both of them cast a shadow. But the Light effect doesn't work if one is in the Shadow of the other. How can I fix that issue?


Accepted Reply

Well I found out, that light decay in spritekit is not really realistic as cumulative lighting effects. Realistic effects are very computing intensive (realistic energy model is complex).

Replies

Are you working with a framework (ARKit ?) ?


The problem is not a swift problem, so you're probably not in the best forum.

Well I found out, that light decay in spritekit is not really realistic as cumulative lighting effects. Realistic effects are very computing intensive (realistic energy model is complex).

I believe this post also describes the same limitation. I filed a bug report awhile back requesting support for improved rendering of multiple lights and shadows, so if you feel this feature is important you could file a dupe (my report is number 36511897). Although a physically-based energy model for SpriteKit would probably be really cool, I think the lighting could be improved without having to go all in on that. 😀