1. A concise explanation of the problem you’re experiencing.
I try to turn off day/night effect by using viewer.scene.globe.enableLighting=false; however, this doesn’t work (see the attached .gif animation). I also tried the option “shadows: Cesium.ShadowMode.DISABLED” in Cesium.Primitive and no luck as well.
Anybody can light me the possible reason? Thanks a lot!
2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.
currentImgLayer = viewer.scene.primitives.add(new Cesium.Primitive({
geometryInstances: new Cesium.GeometryInstance({
geometry: new Cesium.RectangleGeometry({
rectangle: Cesium.Rectangle.fromDegrees(-180,-90,180,90),
height: Number(imgAltitude)1000altFactor,
vertexFormat: Cesium.EllipsoidSurfaceAppearance.VERTEX_FORMAT
})
}),
appearance : new Cesium.EllipsoidSurfaceAppearance({
//aboveGround : true,
material: new Cesium.Material({
fabric : {
type : ‘Image’,
uniforms : {
image : eImagePath+’/30/ed_2018-01-01T00_30.png’
}
}
})
}),
shadows: Cesium.ShadowMode.DISABLED,
show : true
}));
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
4. The Cesium version you’re using, your operating system and browser.
Cesium: 1.53 and 1.54.