Hai,
I need Image text on all sides of the rectangle primitive.
how to get it done.
Please suggest.
i have attached code and Image below.
i have provided sandcastle link aswell below.
////
let rec = new Cesium.Primitive({
geometryInstances: new Cesium.GeometryInstance({
geometry: new Cesium.RectangleGeometry({
ellipsoid: Cesium.Ellipsoid.WGS84,
rectangle : Cesium.Rectangle.fromDegrees(-80.0, 39.0, -73.0, 42.0),
height: 0,
extrudedHeight:500000
}),
attributes: {
color: Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.YELLOW),
},
}),
appearance: new Cesium.MaterialAppearance({
material: new Cesium.Material({
fabric: {
type: “Image”,
uniforms: {
image: “http://localhost:8080/3d/cesium_tasks/Cesium_Logo_Color.jpg”,
},
},
}),
faceForward: true,
materialSupport: Cesium.MaterialAppearance.MaterialSupport.TEXTURED,
}),
})
viewer.scene.primitives.add(rec);
////