WallMaterial

WallMaterial

new WallMaterial(opt, axisYopt)

Description:
  • 墙体材质
Example
viewer.entities.add({
    name: '动态立体墙',
    wall: {
      positions: positions,
      maximumHeights: maximumHeights,
      minimumHeights: minimumHeights,
      material: new WallMaterial({
        color: Cesium.Color.RED,
        duration: 3000,
        axisY: false,
        image: "../img/texture/glow.png",
        repeat: new Cesium.Cartesian2(1, 1) //平铺
      })
    }
  });
Parameters:
Name Type Attributes Default Description
opt Object 基础配置
Properties
Name Type Attributes Default Description
color Cesium.Color 颜色
duration Number <optional>
1000 时间间隔(ms)
repeat Cesium.Cartesian2 <optional>
new Cesium.Cartesian2(5, 1) 平铺
axisY Boolean <optional>
false 方向轴是否为y轴
opt.image String 材质图片