浏览代码

Fix Shadow going back to CubeMap.

Sebastien Vandenberghe 8 年之前
父节点
当前提交
9692af5598

文件差异内容过多而无法显示
+ 2646 - 2646
dist/preview release/babylon.d.ts


文件差异内容过多而无法显示
+ 1 - 1
dist/preview release/babylon.js


+ 4 - 2
dist/preview release/babylon.max.js

@@ -44333,8 +44333,10 @@ var BABYLON;
             this._disposeRTTandPostProcesses();
             // Reinitializes.
             this._initializeGenerator(this.blurBoxOffset);
-            // Reaffect the blur to ensure a correct fallback if necessary.
-            this.useBlurExponentialShadowMap = this.useBlurExponentialShadowMap;
+            // Reaffect the blur ESM to ensure a correct fallback if necessary.
+            if (this.useBlurExponentialShadowMap) {
+                this.useBlurExponentialShadowMap = true;
+            }
             // Reaffect the filter.
             this._applyFilterValues();
             // Reaffect Render List.

文件差异内容过多而无法显示
+ 2646 - 2646
dist/preview release/babylon.module.d.ts


文件差异内容过多而无法显示
+ 1 - 1
dist/preview release/babylon.worker.js


文件差异内容过多而无法显示
+ 4760 - 4760
dist/preview release/customConfigurations/minimalViewer/babylon.d.ts


文件差异内容过多而无法显示
+ 4760 - 4760
dist/preview release/customConfigurations/minimalViewer/babylon.module.d.ts


+ 4 - 2
src/Lights/Shadows/babylon.shadowGenerator.ts

@@ -351,8 +351,10 @@
             this._disposeRTTandPostProcesses();
             // Reinitializes.
             this._initializeGenerator(this.blurBoxOffset);
-            // Reaffect the blur to ensure a correct fallback if necessary.
-            this.useBlurExponentialShadowMap = this.useBlurExponentialShadowMap;
+            // Reaffect the blur ESM to ensure a correct fallback if necessary.
+            if (this.useBlurExponentialShadowMap) {
+                this.useBlurExponentialShadowMap = true;
+            }
             // Reaffect the filter.
             this._applyFilterValues();
             // Reaffect Render List.