|
@@ -1590,6 +1590,11 @@ export abstract class PBRBaseMaterial extends PushMaterial {
|
|
|
ubo.addUniform("vSphericalYZ", 3);
|
|
|
ubo.addUniform("vSphericalZX", 3);
|
|
|
|
|
|
+ if (this.getScene().getEngine().isWebGPU) {
|
|
|
+ ubo.addUniform("exposureLinear", 1);
|
|
|
+ ubo.addUniform("contrast", 1);
|
|
|
+ }
|
|
|
+
|
|
|
ubo.create();
|
|
|
}
|
|
|
|
|
@@ -1897,7 +1902,13 @@ export abstract class PBRBaseMaterial extends PushMaterial {
|
|
|
}
|
|
|
|
|
|
// image processing
|
|
|
- this._imageProcessingConfiguration!.bind(this._activeEffect);
|
|
|
+ if (scene.getEngine().isWebGPU) {
|
|
|
+ ubo.updateFloat("exposureLinear", this._imageProcessingConfiguration.exposure);
|
|
|
+ ubo.updateFloat("contrast", this._imageProcessingConfiguration.contrast);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this._imageProcessingConfiguration!.bind(this._activeEffect);
|
|
|
+ }
|
|
|
|
|
|
// Log. depth
|
|
|
MaterialHelper.BindLogDepth(defines, this._activeEffect, scene);
|