Hello, I tried to fill a cylinder with image material as follows:
var MainViewer = new Cesium.CesiumWidget('cesiumContainer');
var scene = MainViewer.scene;
var pos1 = Cesium.Cartesian3.fromDegrees(-100, 35);
var pos2 = new Cesium.Cartesian3(0.0, 0.0, 200000);
var modelMatrix = Cesium.Matrix4.multiplyByTranslation(
Cesium.Transforms.eastNorthUpToFixedFrame(pos1)
, pos2
);
var Geom = new Cesium.CylinderGeometry(
{
length: 400000,
topRadius: 200000,
bottomRadius: 200000
}
);
var GeomInst = new Cesium.GeometryInstance({
geometry: Geom,
modelMatrix: modelMatrix
});
var m = new Cesium.Material(
{
fabric: {
type: 'Image',
uniforms: {
image: '/Images/Spot.bmp'
}
}
}
);
MainViewer.scene.primitives.add(new Cesium.Primitive({
geometryInstances: [GeomInst],
appearance: new Cesium.MaterialAppearance({
material: m
})
}));
Then, Yes, it's top and bottom is filled with image material, but I need it's
Surface area for sides with same appearance, how can I do? anyone could help
me please , thanks.