Sebastien Vandenberghe 8 lat temu
rodzic
commit
3e51f0065f

+ 17 - 3
src/Materials/babylon.imageProcessingConfiguration.ts

@@ -117,11 +117,25 @@ module BABYLON {
             this._updateParameters();
         }
 
+        @serialize()
+        public _exposure = 1.0;
         /**
-         * Exposure used in the effect.
+         * Gets the Exposure used in the effect.
          */
-        @serialize()
-        public exposure = 1.0;
+        public get exposure(): number {
+            return this._exposure;
+        }
+        /**
+         * Sets the Exposure used in the effect.
+         */
+        public set exposure(value: number) {
+            if (this._exposure === value) {
+                return;
+            }
+
+            this._exposure = value;
+            this._updateParameters();
+        }
 
         @serialize()
         private _toneMappingEnabled = false;