流动颜色发光纹理
Name | Type | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
入参对象
|
Example:
let lon = 104;
let lat = 30;
viewer.entities.add({
polyline: {
positions: Cesium.Cartesian3.fromDegreesArrayHeights([
lon - 0.2, lat-0.1, 0.0,
lon + 0.2, lat-0.1, 0.0,
]),
width: 20.0,
material: new GisEye.GisEyeFlowingColorLightMaterialProperty({
bgColor: new Cesium.Color(1.0, 0.0, 0.0, 1.0),
runColor: new Cesium.Color(1.0, 1.0, 0.0, 1.0),
rate: 1,
ratio: 0.2,
lightratio: 0.7,
repeatNum: 1
})
}
});