# Increase shadow on ground mesh itself

**URL:** <https://forum.babylonjs.com/t/increase-shadow-on-ground-mesh-itself/607>\
**Category:** Questions\
**Created:** [January 7, 2019, 3:25pm UTC](https://forum.babylonjs.com/t/increase-shadow-on-ground-mesh-itself/607 "2019-01-07T15:25:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bodokaiser](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bodokaiser/32/324_2.png) [@bodokaiser](https://forum.babylonjs.com/u/bodokaiser)\
**Post date:** [January 7, 2019, 3:25pm UTC](https://forum.babylonjs.com/t/increase-shadow-on-ground-mesh-itself/607/1 "2019-01-07T15:25:39Z")

</div>

I have a wave surface which I created by updating the positions of a ground mesh. To make the surface more visible I added shadows. Unfortunately the shadow effects are still very little.

I tried already to optimize `light.shadowMinZ` and `light.position`. When using `light.shadow.useBlurCloseExponentialShadowMap = false` the shadow is more prominent but rendered wrong.

Here is the playground:  
[https://www.babylonjs-playground.com/#Q1IR1D#2](https://www.babylonjs-playground.com/#Q1IR1D#2)

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [January 7, 2019, 7:28pm UTC](https://forum.babylonjs.com/t/increase-shadow-on-ground-mesh-itself/607/2 "2019-01-07T19:28:38Z")

</div>

I think the easiest is to only rely on shading and not shadows here as self shadowing such kind of mesh will be tricky.

Your issue is the normal generation as your ground is not updatable so it keeps the old flat normals. by adding updatable: true in the mesh creation options:  
[https://www.babylonjs-playground.com/#Q1IR1D#5](https://www.babylonjs-playground.com/#Q1IR1D#5)

Also by settings bias and lighting a bit more precisely you could have self shadow:  
[https://www.babylonjs-playground.com/#Q1IR1D#4](https://www.babylonjs-playground.com/#Q1IR1D#4)

---

<div class="post-metadata">

**Author:** ![bodokaiser](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bodokaiser/32/324_2.png) [@bodokaiser](https://forum.babylonjs.com/u/bodokaiser)\
**Post date:** [January 7, 2019, 7:36pm UTC](https://forum.babylonjs.com/t/increase-shadow-on-ground-mesh-itself/607/3 "2019-01-07T19:36:03Z")

</div>

@sebavan Hey, thanks that looks great!
