Self Shadowing with SPS?

Hi,

I’m trying to have particles cast shadows on each other in the SPS. I didnt read anywhere that it was or wasnt supported. When I set the mesh to receive a shadow from itself, it kind of works in this playground (move the camera around, you can see the edges of the planes are receiving some light).

https://www.babylonjs-playground.com/#U7RBB6#2
Test with line 38

Regards
Richard

Actually the SPS is a standard BJS mesh. So the same way to cast shadows on itself should work with the same result. I don’t know much about shadows…

Actually playing with the bias gets you something, but you get some odd artefacts. Not a bug then.

https://www.babylonjs-playground.com/#U7RBB6#3

1 Like