Shadow filtering

I’m trying to create a scene in which there are multiple lights and the lights cast shadows on only specific objects. I’m thinking of a system similar to collision filtering. Light A can cast shadows onto objects A, light B casts shadows onto objects B, etc. Is something like this possible in playcanvas?

To some degree you can set up some of this using layers, but perhaps not to the level you expect. Also, the performance likely won’t be the best, definitely not as good as if all lights affect all objects. Maybe 2-3 groups of objects would be ok, but I would not try to control for large number of lights.

1 Like