Class: AmbientOcclusion

Glodon.CIMCube.Animation.Effect. AmbientOcclusion

环境光遮蔽效果

new AmbientOcclusion(map, opt)

环境光遮蔽效果
Parameters:
Name Type Description
map Glodon.CIMCube CIMCube实例
opt Object 环境光遮蔽参数
Properties
Name Type Description
intensity Number 环境光遮蔽强度, 取值范围为[0, +∞),默认值为1.0(建议取值范围0~1)
range Number 环境光遮蔽范围,取值范围为[0, +∞),默认值为1.0,(建议取值范围0~1)
blurStepSize Number 模糊处理步长,取值范围为[0, +∞),默认值为1.0,(建议取值范围0~1)
bias Number 环境光遮蔽模糊,取值范围为[0, +∞),默认值为1.0,(建议取值范围0~1)
debugShowAmbientOcclusion Boolean 是否只显示AO图,默认值为false
debugShowNormal Boolean 是否只显示法线图,默认值为false

Methods


dispose()

释放资源

hide()

隐藏

show()

显示

updateOption(opt)

更新参数
Parameters:
Name Type Description
opt Object 环境光遮蔽参数
Properties
Name Type Description
intensity Number 环境光遮蔽强度, 取值范围为[0, +∞),默认值为1.0(建议取值范围0~1)
range Number 环境光遮蔽范围,取值范围为[0, +∞),默认值为1.0,(建议取值范围0~1)
blurStepSize Number 环境光遮蔽模糊,取值范围为[0, +∞),默认值为1.0,(建议取值范围0~2)
bias Number 环境光遮蔽模糊,取值范围为[0, +∞),默认值为1.0,(建议取值范围0~1)
debugShowAmbientOcclusion Boolean 是否只显示AO图,默认值为false
debugShowNormal Boolean 是否只显示法线图,默认值为false