Skip to content
On this page

title: fogController

fogController

FogController

Kind: global class

new FogController(viewer)

雾控制器

ParamType
viewerViewer

fogController.setFogs(isOpen, color, near, far, disabledHeight, fogBottom, fogTop)

设置雾化效果

Kind: instance method of FogController

ParamTypeDefaultDescription
isOpenboolean雾化是否开启
colorstring雾的颜色
nearnumber开始距离
farnumber结束距离
disabledHeightbooleantrue是否禁用高度雾
fogBottomnumber0开始高度
fogTopnumber300结束高度