box2dlights
box2dlights copied to clipboard
possibility to mask light when light intersect with another body
Hello, I think it would be a great feature to allow light to be masked by other bodies when they intersects, let say for example
lightObjectDef.filter.groupIndex = -1;
...
boxObjectDef.filter.groupIndex = -1;
so that the two object wont collide but will get into each others. The actual result is that the light is not masked at all
the idea is to mask the light the following way
keeping the light overflow on. It would allow for awesome graphics effects (and I really need it). If anybody has any idea/advices, it would help me a lot.