主要依靠于贴图,使用的图片,群里还收集到其他几个贴图,一并放上来吧
//已成功
var arrowMaterial = new Cesium.Material.fromType('Image', {
image : './building.png',
//image : './03.png',
repeat : {
x : -1,
y : 1
}
});
let instance = new Cesium.BoxGeometry({
maximum : new Cesium.Cartesian3(250000.0, 250000.0, 250000.0),
minimum : new Cesium.Cartesian3(-250000.0, -250000.0, -250000.0)
});
let pr=new Cesium.Primitive({
geometryInstances : new Cesium.GeometryInstance({
geometry: instance,
modelMatrix : Cesium.Matrix4.multiplyByTranslation(Cesium.Transforms.eastNorthUpToFixedFrame(
Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883)), new Cesium.Cartesian3(0.0, 0.0, 1000000.0), new Cesium.Matrix4()),
}),
appearance : new Cesium.MaterialAppearance({
material : arrowMaterial,
transparent:true
})
})
viewer.scene.primitives.add(pr);