new AmbientOcclusion(map, opt)
环境光遮蔽效果
Parameters:
| Name | Type | Description | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
map |
Glodon.CIMCube | CIMCube实例 | |||||||||||||||||||||
opt |
Object | 环境光遮蔽参数
Properties
|
Methods
-
dispose()
-
释放资源
-
hide()
-
隐藏
-
show()
-
显示
-
updateOption(opt)
-
更新参数
Parameters:
Name Type Description optObject 环境光遮蔽参数 Properties
Name Type Description intensityNumber 环境光遮蔽强度, 取值范围为[0, +∞),默认值为1.0(建议取值范围0~1) rangeNumber 环境光遮蔽范围,取值范围为[0, +∞),默认值为1.0,(建议取值范围0~1) blurStepSizeNumber 环境光遮蔽模糊,取值范围为[0, +∞),默认值为1.0,(建议取值范围0~2) biasNumber 环境光遮蔽模糊,取值范围为[0, +∞),默认值为1.0,(建议取值范围0~1) debugShowAmbientOcclusionBoolean 是否只显示AO图,默认值为false debugShowNormalBoolean 是否只显示法线图,默认值为false