# PointLight does not work inside of a cube

**URL:** <https://forum.babylonjs.com/t/pointlight-does-not-work-inside-of-a-cube/44016>\
**Category:** Bugs\
**Tags:** light, pointlight\
**Created:** [September 11, 2023, 11:46am UTC](https://forum.babylonjs.com/t/pointlight-does-not-work-inside-of-a-cube/44016 "2023-09-11T11:46:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michal\_Mihalik](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/michal_mihalik/32/8820_2.png) [@Michal\_Mihalik](https://forum.babylonjs.com/u/Michal_Mihalik)\
**Post date:** [September 11, 2023, 11:46am UTC](https://forum.babylonjs.com/t/pointlight-does-not-work-inside-of-a-cube/44016/1 "2023-09-11T11:46:25Z")

</div>

If you place a PointLight inside of the cube, the cube won’t be lighted from inside.

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

Workarround 1: use different light e.g. HemisphericLight  
Workarround 2: use several PointLights outside of the cube: if you point the light on a cube from outside, it will light also from inside (actually this is also a bug)

---

<div class="post-metadata">

**Author:** ![mawa](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mawa/32/12384_2.png) [@mawa](https://forum.babylonjs.com/u/mawa)\
**Post date:** [September 11, 2023, 12:08pm UTC](https://forum.babylonjs.com/t/pointlight-does-not-work-inside-of-a-cube/44016/2 "2023-09-11T12:08:06Z")

</div>

I believe it’s because the normals are on the outside only. I suppose having them in the inside or double sided should solve the problem, doesn’t it?

---

<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:** [September 11, 2023, 1:04pm UTC](https://forum.babylonjs.com/t/pointlight-does-not-work-inside-of-a-cube/44016/3 "2023-09-11T13:04:39Z")

</div>

Indeed, the normals are pointing to the outside. If you want the lighting to also work inside the cube, you can set the `twoSidedLighting` property of the material:

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