Hi,
I'm trying to display shadows cast by the terrain, but they seem to be visible only very close from the surface of the earth, why is that?
Is there any mean to enable cast shadows when the scene display the whole earth?
Here is my code:
var viewer = new Cesium.Viewer('cesiumContainer', {
baseLayerPicker : false,
geocoder : false,
infoBox : false,
homeButton : false,
infoBox : false,
sceneModePicker : false,
navigationHelpButton : false,
animation: false,
terrainShadows: Cesium.ShadowMode.ENABLED,
shouldAnimate: true,
shadows: true,
timeline: false,
terrainExaggeration : 3.0,
terrainProvider: Cesium.createWorldTerrain({
requestWaterMask : true,
requestVertexNormals : true
})
});
var shadowMap = viewer.shadowMap;
shadowMap.maxmimumDistance = 10.0; // tried with higher values
shadowMap.softShadows = true; // tried with false
shadowMap.normalOffset = false; // tried with true
Cesium 1.50 with Chrome 69
Thank you
Dorian