PatchSpreadMaterialProperty

new Cesium.PatchSpreadMaterialProperty(options)

片状扩散材质,多用于矩形图元中.
Name Type Description
options Object optional 对象具有如下属性:
Name Type Default Description
color Color Color.GREEN optional 设置的颜色 Color .
duration Number 1000 optional 设置扩散运行周期,单位为豪秒,默认值为1000
repeat Cartesian2 optional 纹理在s,t方向重复贴图次数,默认为双向5次
bidirection Number optional 双向扩散还是单向扩散,默认为true
image String | Object optional 设置扩散材质路径

Members

设置/获取双向扩散还是单向扩散
设置/获取线的颜色 Color.
当属性改变是激发事件.
设置/获取运行周期
设置/获取材质图像路径
该属性对象是否为常量.
设置/获取材质重复贴图次数

Methods

Compares this property to the provided property and returns true if they are equal, false otherwise.
Name Type Description
other Property optional The other property.
Returns:
true if left and right are equal, false otherwise.
Gets the Material type at the provided time.
Name Type Description
time JulianDate The time for which to retrieve the type.
Returns:
The type of material.

getValue(time, result)Object

Gets the value of the property at the provided time.
Name Type Description
time JulianDate The time for which to retrieve the value.
result Object optional The object to store the value into, if omitted, a new instance is created and returned.
Returns:
The modified result parameter or a new instance if the result parameter was not supplied.
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.