Hi @dalidaliW,
It should be possible to add a texture to an extruded polygon as follows, as shown in this Sandcastle example.
const texturedPolygon = viewer.entities.add({
name:
"Extruded textured polygon with per-position heights and custom texture coordinates",
polygon: {
hierarchy: Cesium.Cartesian3.fromDegreesArrayHeights([
-118.4,
40.4,
50000,
-118.4,
37,
30000,
-114.2,
38.0,
35000,
-108.0,
37,
30000,
-108.0,
40.4,
50000,
]),
textureCoordinates: {
positions: [
new Cesium.Cartesian2(0, 1),
new Cesium.Cartesian2(0, 0),
new Cesium.Cartesian2(0.5, 0),
new Cesium.Cartesian2(1, 0),
new Cesium.Cartesian2(1, 1),
],
},
perPositionHeight: true,
extrudedHeight: 1000,
material: "../images/Cesium_Logo_Color.jpg",
},
});