# Wrong shadow and how to fix it?

**URL:** <https://forum.babylonjs.com/t/wrong-shadow-and-how-to-fix-it/6499>\
**Category:** Questions\
**Tags:** lighting\
**Created:** [October 22, 2019, 2:48am UTC](https://forum.babylonjs.com/t/wrong-shadow-and-how-to-fix-it/6499 "2019-10-22T02:48:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zcating](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/zcating/32/3922_2.png) [@Zcating](https://forum.babylonjs.com/u/Zcating)\
**Post date:** [October 22, 2019, 2:48am UTC](https://forum.babylonjs.com/t/wrong-shadow-and-how-to-fix-it/6499/1 "2019-10-22T02:48:44Z")

</div>

Hi, everyone:  
When I use shadow generator to create shadow, I have following problem.

 ![15](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/8/85c5cf00410cc0bc88f20b9b2a139aace56c31d7.png)

What I mark on the picture, I think, there should be some shadow on it.

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [October 22, 2019, 9:27am UTC](https://forum.babylonjs.com/t/wrong-shadow-and-how-to-fix-it/6499/2 "2019-10-22T09:27:53Z")

</div>

Hi @Zcating

It looks like the shadow is not using the right depth range to generate the shadow. Can you tweaks `light.shadowMinZ` and `light.shadowMaxZ` values also check `shadowGenerator.bias`

There is a troubleshooting section in [Shadows - Babylon.js Documentation](https://doc.babylonjs.com/babylon101/shadows)

If you still have an issue, can you please provide a playground?
