Sebastien Vandenberghe hace 8 años
padre
commit
3e51f0065f
Se han modificado 1 ficheros con 17 adiciones y 3 borrados
  1. 17 3
      src/Materials/babylon.imageProcessingConfiguration.ts

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

@@ -117,11 +117,25 @@ module BABYLON {
             this._updateParameters();
             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()
         @serialize()
         private _toneMappingEnabled = false;
         private _toneMappingEnabled = false;