Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

possibility to mask light when light intersect with another body #94

Open
alwex opened this issue Apr 9, 2016 · 0 comments
Open

possibility to mask light when light intersect with another body #94

alwex opened this issue Apr 9, 2016 · 0 comments

Comments

@alwex
Copy link

alwex commented Apr 9, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant