How to cast shadows of instances with level of detail?

Hey,
just had a look at the playground again.
Most things work, except for CascadedShadowMap with autoCalcDepthBounds set to true and use of instances. If no instances are used, it works and if autoCalcDepthBounds is set to false, it also works.

Here is a playground: https://playground.babylonjs.com/#F7KZ7C#16

Hope it will be last imporevement and its battle-tested for 4.2 release :slight_smile:

In fact itโ€™s not a problem with CSM / autoCalcDepthBounds, itโ€™s a problem with LODs handling by RTT.

Hereโ€™s the PR:

Note: depthClamp is a boolean, not a number, and thanks for all the reporting!

1 Like