# Globe lighting consistency issues

**URL:** <https://community.cesium.com/t/globe-lighting-consistency-issues/8626>\
**Category:** CesiumJS\
**Created:** [September 8, 2019, 1:13am UTC](https://community.cesium.com/t/globe-lighting-consistency-issues/8626 "2019-09-08T01:13:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JZ1](https://avatars.discourse-cdn.com/v4/letter/j/958977/32.png) [@JZ1](https://community.cesium.com/u/JZ1)\
**Post date:** [September 8, 2019, 1:13am UTC](https://community.cesium.com/t/globe-lighting-consistency-issues/8626/1 "2019-09-08T01:13:35Z")

</div>

**1. A concise explanation of the problem you’re experiencing.**

When zoomed out enough the solar terminator (line between day/night) is clear and it’s easy to see which side of the earth is sunlit vs. dark. When zoomed in, the terminator disappears. The entire globe is “light”. I have enableLighting set to true. Tried messing around with showGroundAtmosphere, nightFadeInDistance, nightFadeOutDistance, lightingFadeInDistance, lightingFadeOutDistance, but I’m not sure how to get a consistent appearance of the terminator and day/night representation on the globe.

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

var scene2 = view3D\_2v.scene;

scene2.globe.enableLighting = true;

scene2.globe.showGroundAtmosphere = true;

scene2.globe.nightFadeOutDistance = 100000;

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

I need to show day/night on the globe regardless of how zoomed in i am. This is for a contract deliverable for my job so it’s critical I figure this out soon.

**4. The Cesium version you’re using, your operating system and browser.**

1.61, Windows 10, Firefox.

---

<div class="post-metadata">

**Author:** ![omar](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/omar/32/1999_2.png) [@omar](https://community.cesium.com/u/omar)\
**Post date:** [September 8, 2019, 11:18pm UTC](https://community.cesium.com/t/globe-lighting-consistency-issues/8626/2 "2019-09-08T23:18:35Z")

</div>

I think you need to decrease lighting fade in & out distance, as well as night fade out distance, and then make sure night fade in distance is a little higher than those. You can try that out in the example below by moving all the sliders to the minimum except for the last one:

[https://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Ground%20Atmosphere.html](https://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Ground%20Atmosphere.html)

Let me know if that helps. What kind of application or industry is this for?

---

<div class="post-metadata">

**Author:** ![JZ1](https://avatars.discourse-cdn.com/v4/letter/j/958977/32.png) [@JZ1](https://community.cesium.com/u/JZ1)\
**Post date:** [September 15, 2019, 4:26pm UTC](https://community.cesium.com/t/globe-lighting-consistency-issues/8626/3 "2019-09-15T16:26:47Z")

</div>

Thank you for responding! I’m sorry I haven’t gotten back to this sooner, but I plan on trying this out and will let you know how it goes.

This is for aerospace analytics in the defense industry. Specifically, orbit visualization.
