Day/Night overlay for 2-d and 3-d

Good morning.

I need to be able to show the location of the solar terminator (at a minimum) and preferably have a differential shading between sunlit and un-sunlit regions of both our 2-D and 3-D Cesium visualizations. We are using an imageryProvider for the base layer, so the overlay would need to be above this.

I see reference in this topic (!searchin/cesium-dev/shading/cesium-dev/TpRCiZIhN0Q/grcgYVfWDmYJ) to having such shading added it in B22 in 2013, but I can’t find any reference in the API to enable this if the feature still exists.

Any assistance would be appreciated.



If I understand correctly, this is what you want to achieve

Here you go :
var viewer = new Cesium.Viewer(‘cesiumContainer’);
viewer.scene.globe.enableLighting = true;


I am using enableLighting property on the globe