FogEffect

FogEffect

场景雾效果
原理:根据深度图的深度值,对片元进行不同程度的模糊

Constructor

new FogEffect(viewer, optionsopt)

创建一个模型编辑对象

Parameters:
Name Type Attributes Description
viewer *

视图viewer

options Object <optional>

带有以下属性的对象:

Properties
Name Type Attributes Default Description
_show Boolean <optional>
true

是否开启效果

_maxHeight Number <optional>
9000

高度

Classes

FogEffect

Members

show :Boolean

是否开启效果

Type:
  • Boolean

Methods

destroy()

销毁

init()

初始化方法,构造时调用