Search code examples
cesiumjs

How to keep Models in Cesium bright all time


I want to disable the sun effects for all models presented in Cesium viewer when I manipulate the current time. I would like all the models to be bright all day long.

Tried to use the (enableLighting) and it does not help. Any suggestions? Can be demonstrated using 3D Models scenario in SandCastle -> https://sandcastle.cesium.com/?src=3D%20Models.html

Example:

At 07:00:00 UTC the model will be way too dark. enter image description here

At 18:00:00 UTC the model is brighter. enter image description here


Solution

  • Using the DirectionalLight helps to have all the models lit.