I’m making a map where the terrain is covered by snow.
When tilting the camera, the fog that is seen on the mountains for some reason has a reddish yellow hue, and I’d like it to be blue.
var transparentBaseLayer = new Cesium.SingleTileImageryProvider({
url: “data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNgYAAAAAMAASsJTYQAAAAASUVORK5CYII=”
});
var viewer = new Cesium.Viewer(‘cesiumContainer’, {
imageryProvider : transparentBaseLayer,
terrainProvider : cesiumTerrainProviderMeshes,
baseLayerPicker: false
});
viewer.scene.globe.baseColor = new Cesium.Color(1,1,1);
``
I’m aware that there isn’t any color property implemented for the Fog for now, but I’ve found this “In Cesium, the fog is a blend of the atmosphere color and the terrain on the horizon” in a Cesium blog post.
However, no matter which color I apply to the atmosphere (with the terrain being white), the fog is still yellow. I don’t get where this yellow color is even coming from.
I also tried to remove the atmosphere and set a blue skybox, with no success.
There currently is not a way to set the fog color. It is based on the default atmosphere color and does not currently take into account any atmosphere color shift you may have applied.