# How to cast shadows of instances with level of detail?

**URL:** <https://forum.babylonjs.com/t/how-to-cast-shadows-of-instances-with-level-of-detail/13829>\
**Category:** Questions\
**Created:** [September 1, 2020, 2:19pm UTC](https://forum.babylonjs.com/t/how-to-cast-shadows-of-instances-with-level-of-detail/13829 "2020-09-01T14:19:02Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![dennemark](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/dennemark/32/10745_2.png) [@dennemark](https://forum.babylonjs.com/u/dennemark)\
**Post date:** [September 1, 2020, 7:40pm UTC](https://forum.babylonjs.com/t/how-to-cast-shadows-of-instances-with-level-of-detail/13829/6 "2020-09-01T19:40:58Z")

</div>

Just for completeness:

In my case I disabled the LOD\_0 mesh instead of just making it invisible.

```auto
lod1.parent = lod0
lod0.addLODLevel(50, lod1)

//the original object should not be visible
//my approach was wrong
lod0.setEnabled(false)
//this is the correct way, as stated in documentation
lod0.isVisible = false

//afterwards instancing with shadows should work properly
instance = lod0.createInstance("")

```

---

_[View the full topic](https://forum.babylonjs.com/t/how-to-cast-shadows-of-instances-with-level-of-detail/13829)._
