I create a GroundPolylinePrimitive with the material type PolylineDash. When I move the camera, the lines start to move. How can I make my polyline static?
My code:
let countyBorderPrimitive = new GroundPolylinePrimitive({
geometryInstances: new GeometryInstance({
geometry: new GroundPolylineGeometry({
positions: Cartesian3.fromDegreesArray(newBorPos),
width: 3,
})
}),
show: stores.groundStore.visibleStatus,
appearance: new PolylineMaterialAppearance({
material: Material.fromType('PolylineDash', {
color: Color.RED,
dashLength: 50,
dashPattern: 255
})
})
});
cesium.scene.groundPrimitives.add(countyBorderPrimitive)
Search properties, create custom shader