设置后处理参数
输入
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
paramName | string | 是 | — | 生效的属性名 自动曝光,最小曝光,最大曝光,全局着色 |
paramValue | string | 是 | — | — |
motionBlurs | string | 是 | 0.5 | 运动模糊 |
saturation | string | 是 | 1.0 | 饱和度 |
contrast | string | 是 | 1.0 | 对比度 |
exposure | string | 是 | 1.0 | 自动曝光 |
minBrightness | string | 是 | -1.0 | 最小曝光 |
maxBrightness | string | 是 | 1.0 | 最大曝光 |
whiteBalance | string | 是 | 6500 | 白平衡 |
vignette | string | 是 | 0.4 | 暗角强度 |
colorGain | string | 是 | 1.0 | 全局着色 |
shadowContrast | string | 是 | 1.0 | 暗部对比度 |
lensFlare | string | 是 | 1.0 | 镜头光晕 |
LUT | string | 是 | FFFFFFFF | LUT |
ambientOcclusion | string | 是 | 0.5 | 环境光遮蔽 |
调用
typescript
piclient.emit("environment.setPostProcessParam",{
paramName: "", // 生效的属性名 自动曝光,最小曝光,最大曝光,全局着色
paramValue: "",
motionBlurs: "0.5", //运动模糊
saturation: "1.0", //饱和度
contrast: "1.0", //对比度
exposure: "1.0", //自动曝光
minBrightness: "-1.0", //最小曝光
maxBrightness: "1.0", //最大曝光
whiteBalance: "6500", //白平衡
vignette: "0.4", //暗角强度
colorGain: "1.0", //全局着色
shadowContrast: "1.0", //暗部对比度
lensFlare: "1.0", //镜头光晕
LUT: "FFFFFFFF", //LUT
ambientOcclusion: "0.5", //环境光遮蔽
})