# How to simulate cloud shadows on the ground (no actual clouds needed)

**URL:** <https://forum.babylonjs.com/t/how-to-simulate-cloud-shadows-on-the-ground-no-actual-clouds-needed/54798>\
**Category:** Questions\
**Tags:** clouds, shadow\
**Created:** [November 16, 2024, 2:27am UTC](https://forum.babylonjs.com/t/how-to-simulate-cloud-shadows-on-the-ground-no-actual-clouds-needed/54798 "2024-11-16T02:27:05Z")\
**Posts on this page:** 1\
**Showing post:** 22

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [December 4, 2024, 7:09pm UTC](https://forum.babylonjs.com/t/how-to-simulate-cloud-shadows-on-the-ground-no-actual-clouds-needed/54798/22 "2024-12-04T19:09:20Z")

</div>

Self shadowing is a problem with exponential shadow map. See:

> [@Blur exponential Shadowmaps generating a self-shadow that can't be fixed with bias](https://forum.babylonjs.com/t/blur-exponential-shadowmaps-generating-a-self-shadow-that-cant-be-fixed-with-bias/3703/2):
>
> Exponential shadow map might get really tricky to get self shadow, I would recommend to use percentage CloserFiltering: [https://www.babylonjs-playground.com/#JPVT2W#2](https://www.babylonjs-playground.com/#JPVT2W#2) or PCSS in this case. In case you really want to use ESM, you can try the close ESM instead : [https://www.babylonjs-playground.com/#JPVT2W#3](https://www.babylonjs-playground.com/#JPVT2W#3)

What you can try is to use close exponential instead, and set the shadow min/max values to appropriate values:

> **[Babylon.js Playground](https://playground.babylonjs.com/#ILEAN1%236)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL and WebGPU 3D scenes

---

_[View the full topic](https://forum.babylonjs.com/t/how-to-simulate-cloud-shadows-on-the-ground-no-actual-clouds-needed/54798)._
