Appearance
ocean
Ocean
Kind: global class
new Ocean(viewer, opts)
海洋材质
Param | Type | Description |
---|---|---|
viewer | Viewer | viewer 对象 |
opts | object | 动态水面参数设置 |
opts.texture | number | 反射分辨率 |
opts.sunDirection | Array | 太阳光方位 |
opts.alpha | number | 透明度 |
opts.sunColor | string | 太阳光颜色 |
opts.waterColor | string | 水面颜色 |
opts.distortionScale | number | 波浪深度 |
opts.size | number | 波浪密度 |
opts.flowSpeed | number | 水流速度 |
opts.direction | number | 水流方向 |
ocean.remove()
海洋对象释放
Kind: instance method of Ocean
ocean.remove()
海洋对象释放
Kind: instance method of Ocean