没有关闭PointPrimitive的深度写入:

关闭了PointPrimitive的深度写入:

if (pointPrimitiveCollection._rsOpaque) {
pointPrimitiveCollection._rsOpaque = Cesium.RenderState.fromCache({
depthTest: {
enabled: false,
}
});
}
const p = pointPrimitiveCollection.add({
position: cartesian,
pixelSize: 50,
color: Cesium.Color.RED
})
// 还是会深度写入,只不过写入的是-1
p.disableDepthTestDistance = Number.POSITIVE_INFINITY;

![P9242 [蓝桥杯 2023 省 B] 接龙数列(dp+最长接龙序列+分类)](https://img-blog.csdnimg.cn/direct/1d7e7e8e5d354bbbbf3deca847cbf0ac.png)
















