|
@@ -203,6 +203,32 @@ export class Scene extends AbstractScene implements IAnimatable {
|
|
|
}
|
|
|
|
|
|
/** @hidden */
|
|
|
+ protected _environmentIntensity: number = 1;
|
|
|
+ /**
|
|
|
+ * Intensity of the environment in all pbr material.
|
|
|
+ * This dims or reinforces the IBL lighting overall (reflection and diffuse).
|
|
|
+ * As in the majority of the scene they are the same (exception for multi room and so on),
|
|
|
+ * this is easier to reference from here than from all the materials.
|
|
|
+ */
|
|
|
+ public get environmentIntensity(): number {
|
|
|
+ return this._environmentIntensity;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * Intensity of the environment in all pbr material.
|
|
|
+ * This dims or reinforces the IBL lighting overall (reflection and diffuse).
|
|
|
+ * As in the majority of the scene they are the same (exception for multi room and so on),
|
|
|
+ * this is easier to set here than in all the materials.
|
|
|
+ */
|
|
|
+ public set environmentIntensity(value: number) {
|
|
|
+ if (this._environmentIntensity === value) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ this._environmentIntensity = value;
|
|
|
+ this.markAllMaterialsAsDirty(Constants.MATERIAL_TextureDirtyFlag);
|
|
|
+ }
|
|
|
+
|
|
|
+ /** @hidden */
|
|
|
protected _imageProcessingConfiguration: ImageProcessingConfiguration;
|
|
|
/**
|
|
|
* Default image processing configuration used either in the rendering
|