I’ve created a large rectangle primitive covering some terrain at 3000m with:
var image = viewer.scene.primitives.add(new Cesium.Primitive({
geometryInstances : new Cesium.GeometryInstance({
geometry : new Cesium.RectangleGeometry({
rectangle : Cesium.Rectangle.fromDegrees(w, s, e, n),
vertexFormat : Cesium.EllipsoidSurfaceAppearance.VERTEX_FORMAT,
height: h
})
}),
appearance : new Cesium.EllipsoidSurfaceAppearance({
aboveGround : false,
material: new Cesium.Material({
fabric: {
type: 'Image',
uniforms: {
image: 'data:image/png;base64,' + command.data,
}
}
})
})
}));
However, it seems the camera will not zoom through this from above. If I create an entity, instead of a primitive, then the camera will zoom through that.
Would someone be able to tell me how I can allow the camera to zoom through a primitive? I presume there’s an attribute that needs setting, but have searched through the docs and examples, and can’t find it.
(I need to use a primitive rather than an entity, to work around another issue)
Thanks.