box2dlights icon indicating copy to clipboard operation
box2dlights copied to clipboard

possibility to mask light when light intersect with another body

Open alwex opened this issue 8 years ago • 0 comments

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

image

the idea is to mask the light the following way

image

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.

alwex avatar Apr 09 '16 01:04 alwex