Appearance
ocean ?
Ocean ?
Kind: global class
new Ocean(viewer, opts) ?
海洋材質(zhì)
| Param | Type | Description |
|---|---|---|
| viewer | Viewer | viewer 對(duì)象 |
| opts | object | 動(dòng)態(tài)水面參數(shù)設(shè)置 |
| opts.texture | number | 反射分辨率 |
| opts.sunDirection | Array | 太陽(yáng)光方位 |
| opts.alpha | number | 透明度 |
| opts.sunColor | string | 太陽(yáng)光顏色 |
| opts.waterColor | string | 水面顏色 |
| opts.distortionScale | number | 波浪深度 |
| opts.size | number | 波浪密度 |
| opts.flowSpeed | number | 水流速度 |
| opts.direction | number | 水流方向 |
ocean.remove() ?
海洋對(duì)象釋放
Kind: instance method of Ocean
ocean.remove() ?
海洋對(duì)象釋放
Kind: instance method of Ocean