# Globe Materials not working w/ globe.enableLighting=false

**URL:** <https://community.cesium.com/t/globe-materials-not-working-w-globe-enablelighting-false/6547>\
**Category:** CesiumJS\
**Created:** [February 7, 2018, 7:51pm UTC](https://community.cesium.com/t/globe-materials-not-working-w-globe-enablelighting-false/6547 "2018-02-07T19:51:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tedd\_Arcuri1](https://avatars.discourse-cdn.com/v4/letter/t/74df32/32.png) [@Tedd\_Arcuri1](https://community.cesium.com/u/Tedd_Arcuri1)\
**Post date:** [February 7, 2018, 7:51pm UTC](https://community.cesium.com/t/globe-materials-not-working-w-globe-enablelighting-false/6547/1 "2018-02-07T19:51:35Z")

</div>

1. A concise explanation of the problem you're experiencing.

Hello! I noticed in the release notes for 1.41 that issue #6042 was resolved.([https://github.com/AnalyticalGraphicsInc/cesium/issues/6042](https://github.com/AnalyticalGraphicsInc/cesium/issues/6042))

However, I am still experiencing issue with Globe Materials and the enableLighting flag.  
I do not want to enable lighting, but I would love to make use of this awesome new feature!  
Below are some screenshots, but basically if lighting is not enabled the material only shows up when the camera is zoomed out. As you zoom further in the material starts to disappear.

I am using the standard stk-terrain dataset, if that's relevant.

2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.

viewer.scene.globe.enableLighting = true;

> **[Screen Shot 2018 02 07 at 12 40 42 PM](https://ibb.co/nMJFFHM)**
>
> Image Screen Shot 2018 02 07 at 12 40 42 PM hosted in ImgBB

viewer.scene.globe.enableLighting = false;

> **[Screen Shot 2018 02 07 at 12 40 01 PM](https://ibb.co/sbtBmhj)**
>
> Image Screen Shot 2018 02 07 at 12 40 01 PM hosted in ImgBB

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

Being able to show slope angles is a HUGE win for me, however I need it to work even when the user is zoomed in close up on the terrain

4. The Cesium version you're using, your operating system and browser.  
Cesium 1.42.1  
OSX 10.13.2  
Chrome 63.0.3239.132

---

<div class="post-metadata">

**Author:** ![sean\_lilley](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/sean_lilley/32/2083_2.png) [@sean\_lilley](https://community.cesium.com/u/sean_lilley)\
**Post date:** [February 8, 2018, 12:28am UTC](https://community.cesium.com/t/globe-materials-not-working-w-globe-enablelighting-false/6547/2 "2018-02-08T00:28:35Z")

</div>

That’s definitely strange behavior. Setting enableLighting to false seems to work in the [Sandcastle demo](https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/?src=Globe%20Materials.html&label=Showcases) so maybe there’s something about your app that is triggering that bug. If you are able to create a self-contained example that exposes the problem that would be really helpful!

---

<div class="post-metadata">

**Author:** ![jfur1293](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/jfur1293/32/14037_2.png) [@jfur1293](https://community.cesium.com/u/jfur1293)\
**Post date:** [October 9, 2023, 2:00pm UTC](https://community.cesium.com/t/globe-materials-not-working-w-globe-enablelighting-false/6547/3 "2023-10-09T14:00:45Z")

</div>

Hello, is there any updates on this topic? As of today, the globe materials for aspect and slope both disappear when the camera gets too close when globe.enableLighting=false;
