Skip to content

图片管道流动材质 PipelineflowMaterial

  • @param
参数名type描述默认值
optionsObject材质配置,属性参考下表-
options 属性
属性名type描述默认值
imageString图片地址-
colorString颜色Cesium.Color.fromBytes(0, 255, 255, 255)
speedNumber速度1
repeatObject重复规则{ x: 1, y: 1 }
directionNumber动画方向 (1.0/-1.0)1.0
  • @returns
返回值type描述
materialObject材质。
js
let options = {
  color: Cesium.Color.fromCssColorString("#6AE7FF"),
  speed: 1, // 速度
  image: img,
  repeat: { x: 10, y: 2 },
  direction: -1, // 动画方向 (1.0/-1.0)
};
let material = CM.Material.PipelineflowMaterial(options);