How to enable Ray Traced Shadows


I am wondering how to enable ray traced shadows, for example sun rays through coloured or stained glass rendering colored shadows on a floor or a wall.
I already know howto enable shadows and opacity of objects.
But now I’m stuck.
Any help is very much appreciated.


That is not supported (yet) by Babylon.js unfortunately.
The closer we have is that:Lights - Babylon.js Documentation
or that: Use the standard rendering pipeline - Babylon.js Documentation

1 Like

If you really wanted to do this with the current setup you could create a box in the area you need the Godrays then raymarch them. Match that with a depth pass to mask and occlude them in the scene correctly and you should be able to create the effect.

1 Like

thank you very much