# Unable to view the shadow under spotlight

**URL:** <https://forum.babylonjs.com/t/unable-to-view-the-shadow-under-spotlight/43139>\
**Category:** Questions\
**Tags:** lighting, material, camera\
**Created:** [August 9, 2023, 10:15am UTC](https://forum.babylonjs.com/t/unable-to-view-the-shadow-under-spotlight/43139 "2023-08-09T10:15:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vijay\_krishna](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/vijay_krishna/32/18667_2.png) [@vijay\_krishna](https://forum.babylonjs.com/u/vijay_krishna)\
**Post date:** [August 9, 2023, 10:15am UTC](https://forum.babylonjs.com/t/unable-to-view-the-shadow-under-spotlight/43139/1 "2023-08-09T10:15:08Z")

</div>

Hi,

using blender3.2 we created a scene with walking person under spot light.  
While exporting from blender as .glb selected the option “punctual lights” but it is not reflecting at babylonjs

i tried using

> var generator = new BABYLON.ShadowGenerator(1024, light);  
> generator.usePoissonSampling = true;  
> generator.bias = 0.000001;  
> generator.addShadowCaster(newMeshes[0], true);

didn’t work out

reffered other links, but no luck

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

can somebody throw some light here…

Thanks  
vijay

---

<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:** [August 9, 2023, 10:50am UTC](https://forum.babylonjs.com/t/unable-to-view-the-shadow-under-spotlight/43139/2 "2023-08-09T10:50:36Z")

</div>

You can’t use an hemispherical light to generate shadows, only point, spot and directional lights are supported (point lights should be avoided when possible, as they consume quite a lot of GPU resources).

In your scene, `Point.001` is a spot light and generates the circle of light on the ground.

So, you can do something like this:

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