Constructor
new Glodon.Bimface.Plugins.IBL.IBLManager(iblManagerConfig)
Parameters:
Name | Type | Description |
---|---|---|
iblManagerConfig | Glodon.Bimface.Plugins.IBL.IBLManagerConfig | IBL管理器的配置项 |
Methods
enableIBL(enable)
设置是否开启天空盒效果
Parameters:
Name | Type | Description |
---|---|---|
enable | Boolean | 启用或关闭天空盒效果 |
getCustomizedImage()
获取当前 IBL 环境图是否可见
Returns:
Type | Description |
---|---|
Object |
描述自定义天空盒背景图片的对象 |
getLightIntensity()
获取IBL光强度
Returns:
Type | Description |
---|---|
Number |
IBL光强度 |
getMetalness()
获取IBL材质金属度
Returns:
Type | Description |
---|---|
Number |
材质金属度 |
getRoughness()
获取IBL材质粗糙度
Returns:
Type | Description |
---|---|
Number |
IBL材质粗糙度 |
getStyle()
获取当前天空盒效果
Returns:
Type | Description |
---|---|
String |
天空盒效果选项 |
setImageVisible(imageVisible)
设置 IBL 环境贴图是否可见(当 enableIBL 为 true 时设置有效),背景、IBL 环境图片、天空盒显示优先级依次升高
Parameters:
Name | Type | Description |
---|---|---|
imageVisible | Boolean | IBL 环境图可见性 |
setLightIntensity(lightIntensity)
设置IBL光强度
Parameters:
Name | Type | Description |
---|---|---|
lightIntensity | Number | IBL光强度 |
setMetalness(metalness)
设置IBL材质金属度
Parameters:
Name | Type | Description |
---|---|---|
metalness | Number | IBL材质金属度 |
setRoughness(roughness)
设置IBL材质粗糙度
Parameters:
Name | Type | Description |
---|---|---|
roughness | Number | IBL材质粗糙度 |
setStyle(IBLStyle)
设置IBL样式
Parameters:
Name | Type | Description |
---|---|---|
IBLStyle | Glodon.Bimface.Plugins.IBL.IBLStyle | IBL样式选项 |