# Fog effect in the

**URL:** <https://forum.babylonjs.com/t/fog-effect-in-the/14831>\
**Category:** Questions\
**Tags:** material\
**Created:** [October 11, 2020, 5:30pm UTC](https://forum.babylonjs.com/t/fog-effect-in-the/14831 "2020-10-11T17:30:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krishna\_Kishore](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/krishna_kishore/32/3682_2.png) [@Krishna\_Kishore](https://forum.babylonjs.com/u/Krishna_Kishore)\
**Post date:** [October 11, 2020, 5:30pm UTC](https://forum.babylonjs.com/t/fog-effect-in-the/14831/1 "2020-10-11T17:30:46Z")

</div>

How to create fog effect in this examples

> **[Renault Espace Visualization](https://renaultespace.littleworkshop.fr/)**

---

<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:** [October 12, 2020, 9:15am UTC](https://forum.babylonjs.com/t/fog-effect-in-the/14831/2 "2020-10-12T09:15:12Z")

</div>

Have a look at this doc regarding enabling fog in your scene: [Environment - Babylon.js Documentation](https://doc.babylonjs.com/babylon101/environment#fog)

---

<div class="post-metadata">

**Author:** ![Krishna\_Kishore](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/krishna_kishore/32/3682_2.png) [@Krishna\_Kishore](https://forum.babylonjs.com/u/Krishna_Kishore)\
**Post date:** [October 13, 2020, 1:46pm UTC](https://forum.babylonjs.com/t/fog-effect-in-the/14831/3 "2020-10-13T13:46:00Z")

</div>

yes, but the in the example the fog low laying on the ground mesh and that do specific parts of the ground

---

<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:** [October 13, 2020, 1:52pm UTC](https://forum.babylonjs.com/t/fog-effect-in-the/14831/4 "2020-10-13T13:52:37Z")

</div>

I think you want something like that:

> [@GroundFogEffect Need Help](https://forum.babylonjs.com/t/groundfogeffect-need-help/13867):
>
> [https://playground.babylonjs.com/#63NSAD#4](https://playground.babylonjs.com/#63NSAD#4) So I am trying to follow along with, [http://www.terathon.com/lengyel/Lengyel-UnifiedFog.pdf](http://www.terathon.com/lengyel/Lengyel-UnifiedFog.pdf) and normally I can figure stuff like this out… but I am kind drawing a blank about these bugs right now with it. Anyone who things they know how to fix this I would love to hear some input. Just move the camera around and you will see how the fog its screwy, its something to do with my height calculation I think. Was able to find a java deployment of it ([Bet…](https://hub.jmonkeyengine.org/t/bettergroundfogfilter/41452)
