# enableLighting problem

**URL:** <https://community.cesium.com/t/enablelighting-problem/4389>\
**Category:** CesiumJS\
**Created:** [July 18, 2016, 7:43am UTC](https://community.cesium.com/t/enablelighting-problem/4389 "2016-07-18T07:43:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ming-Che\_Liu](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@Ming-Che\_Liu](https://community.cesium.com/u/Ming-Che_Liu)\
**Post date:** [July 18, 2016, 7:43am UTC](https://community.cesium.com/t/enablelighting-problem/4389/1 "2016-07-18T07:43:03Z")

</div>

I attempt to run the following two lines of sample code in Sandcastle:

```
var viewer = new Cesium.Viewer('cesiumContainer');
viewer.scene.globe.enableLighting = true;

```

And when I change the scene mode to 2D and move the flat map, the lighting effect will alternate appearance and disappearance.

Is it normal or a bug? Thanks a lot~

---

<div class="post-metadata">

**Author:** ![hannah](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/hannah/32/4509_2.png) [@hannah](https://community.cesium.com/u/hannah)\
**Post date:** [July 18, 2016, 2:42pm UTC](https://community.cesium.com/t/enablelighting-problem/4389/2 "2016-07-18T14:42:20Z")

</div>

Hello,

This is a bug. I’ve written up an issue for us to look into it here: [https://github.com/AnalyticalGraphicsInc/cesium/issues/4122](https://github.com/AnalyticalGraphicsInc/cesium/issues/4122)

Thanks,

Hannah

---

<div class="post-metadata">

**Author:** ![Ming-Che\_Liu](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@Ming-Che\_Liu](https://community.cesium.com/u/Ming-Che_Liu)\
**Post date:** [July 19, 2016, 12:33am UTC](https://community.cesium.com/t/enablelighting-problem/4389/3 "2016-07-19T00:33:15Z")

</div>

Hi Hannah,

Thanks for your response~

Hannah Pinkos於 2016年7月18日星期一 UTC+8下午10時42分20秒寫道：

---

<div class="post-metadata">

**Author:** ![hannah](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/hannah/32/4509_2.png) [@hannah](https://community.cesium.com/u/hannah)\
**Post date:** [August 8, 2018, 9:49pm UTC](https://community.cesium.com/t/enablelighting-problem/4389/4 "2018-08-08T21:49:35Z")

</div>

Hello, This was just fixed and the fix will be included in the Cesium 1.49 release available on September 3rd. Thanks!
