# Were there major lighting bugs fixed in Lambert or Phong since r109?

**URL:** <https://discourse.threejs.org/t/were-there-major-lighting-bugs-fixed-in-lambert-or-phong-since-r109/29432>\
**Category:** Questions\
**Tags:** lighting\
**Created:** [August 31, 2021, 1:00pm UTC](https://discourse.threejs.org/t/were-there-major-lighting-bugs-fixed-in-lambert-or-phong-since-r109/29432 "2021-08-31T13:00:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![makc3d](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/makc3d/32/10452_2.png) [@makc3d](https://discourse.threejs.org/u/makc3d)\
**Post date:** [August 31, 2021, 1:00pm UTC](https://discourse.threejs.org/t/were-there-major-lighting-bugs-fixed-in-lambert-or-phong-since-r109/29432/1 "2021-08-31T13:00:03Z")

</div>

So I have this situation:

 ![Screen Shot 2021-08-31 at 14.51.54](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/5/5/5554b24216adcf24d46e6864e3550e47bbcd7fd3.png)

Thinking if upgrading three.js would be of any use?

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [August 31, 2021, 1:21pm UTC](https://discourse.threejs.org/t/were-there-major-lighting-bugs-fixed-in-lambert-or-phong-since-r109/29432/2 "2021-08-31T13:21:41Z")

</div>

I’m afraid I don’t understand the image. Do you mind sharing before/after screenshots so it’s easier to see the differences?

---

<div class="post-metadata">

**Author:** ![makc3d](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/makc3d/32/10452_2.png) [@makc3d](https://discourse.threejs.org/u/makc3d)\
**Post date:** [August 31, 2021, 1:44pm UTC](https://discourse.threejs.org/t/were-there-major-lighting-bugs-fixed-in-lambert-or-phong-since-r109/29432/3 "2021-08-31T13:44:41Z")

</div>

there is no before/after. see the wall behind old woman, directional light shadow blocks the purple light from reflecting there for some reason. then, few meters back, next to white arrows, this bug disappears and purple light is able to reflect in the shadow as it should.

here the purple light is placed directly above old woman head so there is obviously nothing between the light and the wall:

 ![Screen Shot 2021-08-31 at 16.08.13](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/0/c/0c1a708324ce535f63a7d38bc6945a4de09b18d6.png)

(note that how the ground or the brown door is not affected by the light either)

---

<div class="post-metadata">

**Author:** ![makc3d](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/makc3d/32/10452_2.png) [@makc3d](https://discourse.threejs.org/u/makc3d)\
**Post date:** [August 31, 2021, 3:25pm UTC](https://discourse.threejs.org/t/were-there-major-lighting-bugs-fixed-in-lambert-or-phong-since-r109/29432/4 "2021-08-31T15:25:41Z")

</div>

ok, so this appears to be Lambert-only issue, probably a combination of [MeshLambertMaterial makes no distinction on source of shadow. · Issue #12743 · mrdoob/three.js · GitHub](https://github.com/mrdoob/three.js/issues/12743) and [PointLights not working correctly with Lambert material · Issue #12457 · mrdoob/three.js · GitHub](https://github.com/mrdoob/three.js/issues/12457) (large triangles), Phong is not actually affected - nvm.

 ![Screen Shot 2021-08-31 at 17.22.03](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/e/9/e9e5ea2ce7b6fd1f4b5d957f0bc7a68c236b5038.jpeg)
