GisEyePureColorLightMaterialProperty

new GisEye.GisEyePureColorLightMaterialProperty(options)

纯色发光纹理

Name Type Description
options object

入参对象

Name Type Default Description
bgColor Cesium.Color new Cesium.Color(1.0, 1.0, 0.0, 1.0) optional

底色

lightColor Cesium.Color new Cesium.Color(1.0, 1.0, 0.0, 1.0) optional

发光颜色

alpha Number 0.2 optional

透明度

isTranslucent boolean true optional

是否透明

Example:
let lon = 104;
  let lat = 30;
  viewer.entities.add({
    polygon: {
      hierarchy: Cesium.Cartesian3.fromDegreesArrayHeights([
        lon - 0.2+1.5, lat - 0.1, 0,
        lon + 0.2+1.5, lat - 0.1, 0,
        lon + 0.2+1.5, lat - 0.5, 0,
        lon - 0.2+1.5, lat - 0.5, 0,
      ]),
      material: new GisEye.GisEyePureColorLightMaterialProperty({
        bgColor: new Cesium.Color(1.0, 1.0, 0.0, 1.0),
        lightColor: new Cesium.Color(1.0, 1.0, 0.0, 1.0),
        alpha:0.2,
        isTranslucent:true
      })
    }
  });