# Shadows not displayed on a glb. model

**URL:** <https://forum.babylonjs.com/t/shadows-not-displayed-on-a-glb-model/37097>\
**Category:** Questions\
**Tags:** glb, shadows\
**Created:** [January 4, 2023, 5:57pm UTC](https://forum.babylonjs.com/t/shadows-not-displayed-on-a-glb-model/37097 "2023-01-04T17:57:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Teo\_T](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/teo_t/32/20678_2.png) [@Teo\_T](https://forum.babylonjs.com/u/Teo_T)\
**Post date:** [January 4, 2023, 5:57pm UTC](https://forum.babylonjs.com/t/shadows-not-displayed-on-a-glb-model/37097/1 "2023-01-04T17:57:56Z")

</div>

Hi!

I am working with a single glb. landscape model with trees of which shadow I am trying to cast on the ground. However, I fail to produce any actual shadows on the ground.

Playground:  
[https://playground.babylonjs.com/#ZEYPU8](https://playground.babylonjs.com/#ZEYPU8)

I have of course checked the documentation and attempted various solutions including and others on the tutorial section:  
[https://playground.babylonjs.com/#IFYDRS](https://playground.babylonjs.com/#IFYDRS)

For further info, the glft. is exported from Unity and converted to glb.  
Your input is appreciated.

---

<div class="post-metadata">

**Author:** ![Dad72](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/dad72/32/13_2.png) [@Dad72](https://forum.babylonjs.com/u/Dad72)\
**Post date:** [January 4, 2023, 6:45pm UTC](https://forum.babylonjs.com/t/shadows-not-displayed-on-a-glb-model/37097/2 "2023-01-04T18:45:58Z")

</div>

Like this :

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

---

<div class="post-metadata">

**Author:** ![Teo\_T](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/teo_t/32/20678_2.png) [@Teo\_T](https://forum.babylonjs.com/u/Teo_T)\
**Post date:** [January 4, 2023, 7:09pm UTC](https://forum.babylonjs.com/t/shadows-not-displayed-on-a-glb-model/37097/3 "2023-01-04T19:09:58Z")

</div>

Many thanks! Could you comment what’s the best way to achieve this for all the meshes (the trees and the rock)? Edit: I’ll answer my own question:  
[https://forum.babylonjs.com/t/is-there-a-shadowgenerator-getshadowmap-auto-add-all-meshes-in-scene-scene/318/2](https://forum.babylonjs.com/t/is-there-a-shadowgenerator-getshadowmap-auto-add-all-meshes-in-scene-scene/318/2)

---

<div class="post-metadata">

**Author:** ![Dad72](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/dad72/32/13_2.png) [@Dad72](https://forum.babylonjs.com/u/Dad72)\
**Post date:** [January 4, 2023, 9:20pm UTC](https://forum.babylonjs.com/t/shadows-not-displayed-on-a-glb-model/37097/4 "2023-01-04T21:20:44Z")

</div>

Sorry for not commenting more.

Your concern was that receiveShadows=true was missing on the ground for the shadows to be cast on it.  
Then on the mesh you getMeshByName ‘\_\_ root \_\_’ which was all the scene (ground too). You need to call the mesh (Tree) to add to the renderList of the shadow generator.

Open the inspector to see all the hierarchy of your glb scene
