Multiple SKLightNodes and Shadowy Weirdness (Images inside)

I've been searching quite a while for an answer to this, but I'm coming up empty, so I'm here.


I'm working on a little game, Swift 1.2, iOS 8 target, where my character traverses a maze with a fireball as a light source. That's gorgeous. Works great. Shadows dance and draw delightfully.


Here's a screengrab of the normal shadows.

https://www.dropbox.com/s/635pp05ab0ff5xa/BonesNormal.jpg?dl=0


When the character throws a fireball, a second SKLightNode is generated with the travelling fireball while the existing one stays with the character. Unfortunately, a second shadow gets drawn over the first light source's lighted areas in a weird way.


Weird shadows:

https://www.dropbox.com/s/1i460nlr0vdimd7/BonesWeirdShadow.jpg?dl=0


I'm not seeing any secret incantations in the documentation to make two (or more, perish the thought!) light sources to play nicely with each other. If there's some trick to make multiple lights render simultaneously, I'd love to hear them. If this is simply a limitation of SpriteKit, so be it.


Thanks in advance.

Replies

Hi, Did you ever solve this, it sounds like you're having the same problem as I am and I'm struggling to find any information on it.....

Two years later and I'm still trying to get this to work :-(