Shadow being cast from object behind receiver

Hi! I have a box under a ground mesh, and a light above the ground. When I use useBlurExponentialShadowMap, a shadow from the box appears on the ground. I’d expect no shadow since the ground is between the light and the box.

Other shadowGenerator options (poisson, PCF) appear to work well (ie. show no shadow). Anything I can do to get useBlurExponentialShadowMap to work?


Welcome aboard!

This is a known limitation of ESM, the occluders must be located in front of the receiver for the technic to work. See last paragraph of A conceptually simple(r) way to derive exponential shadow maps + sample code | Pixels, Too Many...

1 Like

Thank you!!