GisEyeImageLightRingMaterialProperty

new GisEye.GisEyeImageLightRingMaterialProperty(options)

图片光圈纹理

Name Type Description
options object

入参对象

Name Type Default Description
image String optional

图片

color Cesium.Color new Cesium.Color(100.0 / 255.0, 149.0 / 255.0, 237.0 / 255.0, 1.0) optional

颜色

rate Number 1 optional

速率

repeatNum Number 5 optional

重复数量

repeatNumImg object {x: 1,y: 1} optional

图片重复数量(x、y代表方向)

alpha Number 1 optional

透明度

isTranslucent boolean true optional

是否透明

Example:
let lon = 104;
  let lat = 30;
  viewer.entities.add({
    wall: {
      positions: Cesium.Cartesian3.fromDegreesArrayHeights([
        lon - 0.2+1.5, lat - 0.1, 50000,
        lon + 0.2+1.5, lat - 0.1, 50000,
        lon + 0.2+1.5, lat - 0.5, 50000,
        lon - 0.2+1.5, lat - 0.5, 50000,
        lon - 0.2+1.5, lat - 0.1, 50000,
      ]),
      material: new GisEye.GisEyeImageLightRingMaterialProperty({
        image: './image/wallimg.png',
        color: new Cesium.Color(100.0/255.0,149.0/255.0,237.0/255.0, 1.0),
        rate: 1,
        repeatNum: 5,
        repeatNumImg: {
          x:1,
          y:1
        },
        alpha:1,
        isTranslucent:true
      })
    }
  });