I want to use image maps on the terrain, but when the terrain height exceeds 300, obvious faults occur. How can I adjust the parameters so that the map can be displayed normally?
code:
let hgrectangle = viewer.scene.primitives.add(
new Cesium.GroundPrimitive({
geometryInstances: new Cesium.GeometryInstance({
geometry: new Cesium.RectangleGeometry({
rectangle: Cesium.Rectangle.fromDegrees(114.40045120946228, 29.7106500408296, 116.13633030118498, 31.60611919451606),
vertexFormat: Cesium.EllipsoidSurfaceAppearance.VERTEX_FORMAT,
}),
}),
appearance: new Cesium.EllipsoidSurfaceAppearance({
aboveGround: false,
}),
})
);
applyImageMaterial(hgrectangle, "http://192.168.124.33:8889/img/hg.png");
function applyImageMaterial(primitive, url) {
primitive.appearance.material = new Cesium.Material({
fabric: {
type: "Image",
uniforms: {
image: url,
},
},
});
}