cesium 加载3dtiles白模后,再添加不同颜色的entity产生深度冲突,颜色闪烁问题,有没有人见到过?如何解决的呢?
浏览器是chrome,下面是添加一个entity的代码,按照官网很基础的加载
this.tileset = new Cesium.Cesium3DTileset({
url: 'http://192.168.6.240:8898/cdn/LY3dtiles/tileset.json',
maximumNumberOfLoadedTiles:1000,
dynamicScreenSpaceError : true
})
viewer.scene.primitives.add(this.tileset)
viewer.entities.add({
id:23315,
name:'test',
polygon:{
hierarchy:Cesium.Cartesian3.fromDegreesArrayHeights([ 125.077874, 42.939885, 23 , 125.077557, 42.940028, 23 , 125.077942, 42.940494, 23 , 125.078256, 42.940352, 23 , 125.077874, 42.939885 ,23 ] ),
extrudedHeight: 0,
perPositionHeight: true,
stRotation: 1 ,
material: Cesium.Color.RED.withAlpha(1)
}
})