修改水材质属性
输入
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
target | string | 是 | ObjectId | — |
PropertyFractionIn | string | 是 | 0.04 | 透明浑浊度 |
PropertyWaterRoughness | string | 是 | 0.05 | 水面反射 |
PropertyWaterSpecular | string | 是 | 0.22 | 水面高光度 |
PropertycColor | string | 是 | FFFFFFFF | 水面颜色 |
PropertyDirectionOffset | string | 是 | 0.5 | 水流方向 |
PropertyFoamOffset | string | 是 | 1 | 泡沫流动方向 |
PropertyGlobalSpeed | string | 是 | 1 | 泡沫流动速率 |
PropertySize | string | 是 | 6 | 水面波浪大小 |
PropertyWaveLength | string | 是 | 16384 | 水面波浪强度 |
调用
typescript
piclient.emit("object.setWaterMaterialProperty",{
target: "ObjectId",
PropertyFractionIn: "0.04", //透明浑浊度
PropertyWaterRoughness: "0.05", //水面反射
PropertyWaterSpecular: "0.22", //水面高光度
PropertycColor: "FFFFFFFF", //水面颜色
PropertyDirectionOffset: "0.5", //水流方向
PropertyFoamOffset: "1", //泡沫流动方向
PropertyGlobalSpeed: "1", //泡沫流动速率
PropertySize: "6", //水面波浪大小
PropertyWaveLength: "16384", //水面波浪强度
})