David Catuhe 7 tahun lalu
induk
melakukan
2ac153db8e

File diff ditekan karena terlalu besar
+ 5779 - 5774
dist/preview release/babylon.d.ts


File diff ditekan karena terlalu besar
+ 19 - 19
dist/preview release/babylon.js


+ 27 - 8
dist/preview release/babylon.max.js

@@ -21374,11 +21374,7 @@ var BABYLON;
              * exceeding the number allowed of the materials.
              */
             _this.renderPriority = 0;
-            /**
-             * Defines wether or not the shadows are enabled for this light. This can help turning off/on shadow without detaching
-             * the current shadow generator.
-             */
-            _this.shadowEnabled = true;
+            _this._shadowEnabled = true;
             _this._excludeWithLayerMask = 0;
             _this._includeOnlyWithLayerMask = 0;
             _this._lightmapMode = 0;
@@ -21567,6 +21563,28 @@ var BABYLON;
         });
         ;
         ;
+        Object.defineProperty(Light.prototype, "shadowEnabled", {
+            /**
+             * Gets wether or not the shadows are enabled for this light. This can help turning off/on shadow without detaching
+             * the current shadow generator.
+             */
+            get: function () {
+                return this._shadowEnabled;
+            },
+            /**
+             * Sets wether or not the shadows are enabled for this light. This can help turning off/on shadow without detaching
+             * the current shadow generator.
+             */
+            set: function (value) {
+                if (this._shadowEnabled === value) {
+                    return;
+                }
+                this._shadowEnabled = value;
+                this._markMeshesAsLightDirty();
+            },
+            enumerable: true,
+            configurable: true
+        });
         Object.defineProperty(Light.prototype, "includedOnlyMeshes", {
             /**
              * Gets the only meshes impacted by this light.
@@ -22076,8 +22094,8 @@ var BABYLON;
             BABYLON.expandToProperty("_reorderLightsInScene")
         ], Light.prototype, "renderPriority", void 0);
         __decorate([
-            BABYLON.serialize()
-        ], Light.prototype, "shadowEnabled", void 0);
+            BABYLON.serialize("shadowEnabled")
+        ], Light.prototype, "_shadowEnabled", void 0);
         __decorate([
             BABYLON.serialize("excludeWithLayerMask")
         ], Light.prototype, "_excludeWithLayerMask", void 0);
@@ -73734,8 +73752,9 @@ var BABYLON;
         };
         SSAORenderingPipeline.prototype._createSSAOCombinePostProcess = function (ratio) {
             var _this = this;
-            this._ssaoCombinePostProcess = new BABYLON.PostProcess("ssaoCombine", "ssaoCombine", [], ["originalColor"], ratio, null, BABYLON.Texture.BILINEAR_SAMPLINGMODE, this._scene.getEngine(), false);
+            this._ssaoCombinePostProcess = new BABYLON.PostProcess("ssaoCombine", "ssaoCombine", [], ["originalColor", "viewport"], ratio, null, BABYLON.Texture.BILINEAR_SAMPLINGMODE, this._scene.getEngine(), false);
             this._ssaoCombinePostProcess.onApply = function (effect) {
+                effect.setVector4("viewport", BABYLON.Tmp.Vector4[0].copyFromFloats(0, 0, 1.0, 1.0));
                 effect.setTextureFromPostProcess("originalColor", _this._originalColorPostProcess);
             };
         };

+ 27 - 8
dist/preview release/babylon.no-module.max.js

@@ -21341,11 +21341,7 @@ var BABYLON;
              * exceeding the number allowed of the materials.
              */
             _this.renderPriority = 0;
-            /**
-             * Defines wether or not the shadows are enabled for this light. This can help turning off/on shadow without detaching
-             * the current shadow generator.
-             */
-            _this.shadowEnabled = true;
+            _this._shadowEnabled = true;
             _this._excludeWithLayerMask = 0;
             _this._includeOnlyWithLayerMask = 0;
             _this._lightmapMode = 0;
@@ -21534,6 +21530,28 @@ var BABYLON;
         });
         ;
         ;
+        Object.defineProperty(Light.prototype, "shadowEnabled", {
+            /**
+             * Gets wether or not the shadows are enabled for this light. This can help turning off/on shadow without detaching
+             * the current shadow generator.
+             */
+            get: function () {
+                return this._shadowEnabled;
+            },
+            /**
+             * Sets wether or not the shadows are enabled for this light. This can help turning off/on shadow without detaching
+             * the current shadow generator.
+             */
+            set: function (value) {
+                if (this._shadowEnabled === value) {
+                    return;
+                }
+                this._shadowEnabled = value;
+                this._markMeshesAsLightDirty();
+            },
+            enumerable: true,
+            configurable: true
+        });
         Object.defineProperty(Light.prototype, "includedOnlyMeshes", {
             /**
              * Gets the only meshes impacted by this light.
@@ -22043,8 +22061,8 @@ var BABYLON;
             BABYLON.expandToProperty("_reorderLightsInScene")
         ], Light.prototype, "renderPriority", void 0);
         __decorate([
-            BABYLON.serialize()
-        ], Light.prototype, "shadowEnabled", void 0);
+            BABYLON.serialize("shadowEnabled")
+        ], Light.prototype, "_shadowEnabled", void 0);
         __decorate([
             BABYLON.serialize("excludeWithLayerMask")
         ], Light.prototype, "_excludeWithLayerMask", void 0);
@@ -73701,8 +73719,9 @@ var BABYLON;
         };
         SSAORenderingPipeline.prototype._createSSAOCombinePostProcess = function (ratio) {
             var _this = this;
-            this._ssaoCombinePostProcess = new BABYLON.PostProcess("ssaoCombine", "ssaoCombine", [], ["originalColor"], ratio, null, BABYLON.Texture.BILINEAR_SAMPLINGMODE, this._scene.getEngine(), false);
+            this._ssaoCombinePostProcess = new BABYLON.PostProcess("ssaoCombine", "ssaoCombine", [], ["originalColor", "viewport"], ratio, null, BABYLON.Texture.BILINEAR_SAMPLINGMODE, this._scene.getEngine(), false);
             this._ssaoCombinePostProcess.onApply = function (effect) {
+                effect.setVector4("viewport", BABYLON.Tmp.Vector4[0].copyFromFloats(0, 0, 1.0, 1.0));
                 effect.setTextureFromPostProcess("originalColor", _this._originalColorPostProcess);
             };
         };

File diff ditekan karena terlalu besar
+ 19 - 19
dist/preview release/babylon.worker.js


+ 27 - 8
dist/preview release/es6.js

@@ -21341,11 +21341,7 @@ var BABYLON;
              * exceeding the number allowed of the materials.
              */
             _this.renderPriority = 0;
-            /**
-             * Defines wether or not the shadows are enabled for this light. This can help turning off/on shadow without detaching
-             * the current shadow generator.
-             */
-            _this.shadowEnabled = true;
+            _this._shadowEnabled = true;
             _this._excludeWithLayerMask = 0;
             _this._includeOnlyWithLayerMask = 0;
             _this._lightmapMode = 0;
@@ -21534,6 +21530,28 @@ var BABYLON;
         });
         ;
         ;
+        Object.defineProperty(Light.prototype, "shadowEnabled", {
+            /**
+             * Gets wether or not the shadows are enabled for this light. This can help turning off/on shadow without detaching
+             * the current shadow generator.
+             */
+            get: function () {
+                return this._shadowEnabled;
+            },
+            /**
+             * Sets wether or not the shadows are enabled for this light. This can help turning off/on shadow without detaching
+             * the current shadow generator.
+             */
+            set: function (value) {
+                if (this._shadowEnabled === value) {
+                    return;
+                }
+                this._shadowEnabled = value;
+                this._markMeshesAsLightDirty();
+            },
+            enumerable: true,
+            configurable: true
+        });
         Object.defineProperty(Light.prototype, "includedOnlyMeshes", {
             /**
              * Gets the only meshes impacted by this light.
@@ -22043,8 +22061,8 @@ var BABYLON;
             BABYLON.expandToProperty("_reorderLightsInScene")
         ], Light.prototype, "renderPriority", void 0);
         __decorate([
-            BABYLON.serialize()
-        ], Light.prototype, "shadowEnabled", void 0);
+            BABYLON.serialize("shadowEnabled")
+        ], Light.prototype, "_shadowEnabled", void 0);
         __decorate([
             BABYLON.serialize("excludeWithLayerMask")
         ], Light.prototype, "_excludeWithLayerMask", void 0);
@@ -73701,8 +73719,9 @@ var BABYLON;
         };
         SSAORenderingPipeline.prototype._createSSAOCombinePostProcess = function (ratio) {
             var _this = this;
-            this._ssaoCombinePostProcess = new BABYLON.PostProcess("ssaoCombine", "ssaoCombine", [], ["originalColor"], ratio, null, BABYLON.Texture.BILINEAR_SAMPLINGMODE, this._scene.getEngine(), false);
+            this._ssaoCombinePostProcess = new BABYLON.PostProcess("ssaoCombine", "ssaoCombine", [], ["originalColor", "viewport"], ratio, null, BABYLON.Texture.BILINEAR_SAMPLINGMODE, this._scene.getEngine(), false);
             this._ssaoCombinePostProcess.onApply = function (effect) {
+                effect.setVector4("viewport", BABYLON.Tmp.Vector4[0].copyFromFloats(0, 0, 1.0, 1.0));
                 effect.setTextureFromPostProcess("originalColor", _this._originalColorPostProcess);
             };
         };

File diff ditekan karena terlalu besar
+ 45 - 45
dist/preview release/viewer/babylon.viewer.js


+ 27 - 8
dist/preview release/viewer/babylon.viewer.max.js

@@ -21462,11 +21462,7 @@ var BABYLON;
              * exceeding the number allowed of the materials.
              */
             _this.renderPriority = 0;
-            /**
-             * Defines wether or not the shadows are enabled for this light. This can help turning off/on shadow without detaching
-             * the current shadow generator.
-             */
-            _this.shadowEnabled = true;
+            _this._shadowEnabled = true;
             _this._excludeWithLayerMask = 0;
             _this._includeOnlyWithLayerMask = 0;
             _this._lightmapMode = 0;
@@ -21655,6 +21651,28 @@ var BABYLON;
         });
         ;
         ;
+        Object.defineProperty(Light.prototype, "shadowEnabled", {
+            /**
+             * Gets wether or not the shadows are enabled for this light. This can help turning off/on shadow without detaching
+             * the current shadow generator.
+             */
+            get: function () {
+                return this._shadowEnabled;
+            },
+            /**
+             * Sets wether or not the shadows are enabled for this light. This can help turning off/on shadow without detaching
+             * the current shadow generator.
+             */
+            set: function (value) {
+                if (this._shadowEnabled === value) {
+                    return;
+                }
+                this._shadowEnabled = value;
+                this._markMeshesAsLightDirty();
+            },
+            enumerable: true,
+            configurable: true
+        });
         Object.defineProperty(Light.prototype, "includedOnlyMeshes", {
             /**
              * Gets the only meshes impacted by this light.
@@ -22164,8 +22182,8 @@ var BABYLON;
             BABYLON.expandToProperty("_reorderLightsInScene")
         ], Light.prototype, "renderPriority", void 0);
         __decorate([
-            BABYLON.serialize()
-        ], Light.prototype, "shadowEnabled", void 0);
+            BABYLON.serialize("shadowEnabled")
+        ], Light.prototype, "_shadowEnabled", void 0);
         __decorate([
             BABYLON.serialize("excludeWithLayerMask")
         ], Light.prototype, "_excludeWithLayerMask", void 0);
@@ -73822,8 +73840,9 @@ var BABYLON;
         };
         SSAORenderingPipeline.prototype._createSSAOCombinePostProcess = function (ratio) {
             var _this = this;
-            this._ssaoCombinePostProcess = new BABYLON.PostProcess("ssaoCombine", "ssaoCombine", [], ["originalColor"], ratio, null, BABYLON.Texture.BILINEAR_SAMPLINGMODE, this._scene.getEngine(), false);
+            this._ssaoCombinePostProcess = new BABYLON.PostProcess("ssaoCombine", "ssaoCombine", [], ["originalColor", "viewport"], ratio, null, BABYLON.Texture.BILINEAR_SAMPLINGMODE, this._scene.getEngine(), false);
             this._ssaoCombinePostProcess.onApply = function (effect) {
+                effect.setVector4("viewport", BABYLON.Tmp.Vector4[0].copyFromFloats(0, 0, 1.0, 1.0));
                 effect.setTextureFromPostProcess("originalColor", _this._originalColorPostProcess);
             };
         };