Is it possible to generate a vertical PolygonGeometry
in Cesium, which is covered with a texture?
I tried it already as follows, but there is always an error (_workerName must be defined for asynchronous geometry.
). I need a PolygonGeometry because the coordinates of the corners will be partly under the ground in the end so i need xyz coordinates.
This is what I tried so far:
scene.primitives.add(new Primitive({
geometryInstances: new GeometryInstance({
geometry: ({
polygonHierarchy: new PolygonHierarchy(
Cartesian3.fromDegreesArray([
-72.0, 40.0,
-70.0, 35.0,
-75.0, 30.0,
-70.0, 30.0,
-68.0, 40.0
])
)
})
}),
appearance: {
translucent: false,
material: new Material({
fabric: {
type: 'Image',
uniforms: {
image: '../resources/img/base.png'
}
}
})
}
}));