RiverEffect

new Cesium.RiverEffect(viewer, options)

添加水流效果
Name Type Description
viewer Object optional 场景对象
options Object optional 设置水流属性:
Name Type Default Description
positions Array optional 点数组,不可为空. const lines = [[115.907543, 30.441563, 541.47],[115.904337, 30.439412, 491.79]];
width Number optional 设置线生成河流宽度,默认不设置,表示传入的坐标为positions为前后对称的多边形
height Number 5 optional 设置线生成河流高度.
image String 1.0 optional 设置河流纹理图片,不可为空
alpha Number 0.5 optional 河流透明度设置。
flipY Boolean false optional uv交换(图片横竖切换)。
speed Number 1.0 optional 设置河流速度。
move Boolean true optional 设置河流是否流动。
moveDir Boolean true optional 设置流动方向。
reflux Number 1 optional 设置河流是否倒流.

Members

设置透明度
是否翻转Y
设置水流高度
设置流动纹理
设置是否流动
设置起伏变化,默认为new Cartesian3(50, 1, 100)
设置起伏变化,默认为new Cartesian3(50, 1, 100)
设置水流方向,-1为正向流动,1为反向流动,数值绝对值越大,速度越快
设置流动速度
设置水流宽度
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.