1. A concise explanation of the problem you're experiencing.
I am creating a customized polyline, while it still could be seen in the back of the earth, it seems that there are some problems with depth test. One more thing is that works fine on older Cesium versions such as 1.3X, but not 1.45-1.50.
2. A minimal code example.
LinesCollection.add(new Cesium.Primitive({
geometryInstances : new Cesium.GeometryInstance({
geometry : new LineGeometry({
positions : this.positionArr,
width : 1.0,
vertexFormat : LineColorAppearance.VERTEX_FORMAT,
})
}),
appearance : new LineColorAppearance({
translucent : true,
color : this.color,
renderState: {
depthTest : {
enabled : true,
func : Cesium.DepthFunction.LESS
},
depthMask:true
}
})
}));
the FS uesed in LineColorAppearance is PerInstanceFlatColorAppearanceFS
I found that the method of depth test has been changed since cesium 1.45, does it means I have to change some code that is fine for older version?