Skip to content
On this page

ocean

Ocean

Kind: global class

new Ocean(viewer, opts)

海洋材质

ParamTypeDescription
viewerViewerviewer 对象
optsobject动态水面参数设置
opts.texturenumber反射分辨率
opts.sunDirectionArray太阳光方位
opts.alphanumber透明度
opts.sunColorstring太阳光颜色
opts.waterColorstring水面颜色
opts.distortionScalenumber波浪深度
opts.sizenumber波浪密度
opts.flowSpeednumber水流速度
opts.directionnumber水流方向

ocean.remove()

海洋对象释放

Kind: instance method of Ocean

ocean.remove()

海洋对象释放

Kind: instance method of Ocean