Sebastien Vandenberghe 7 年之前
父節點
當前提交
d3b4c7704b

文件差異過大導致無法顯示
+ 7111 - 7111
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.d.ts


文件差異過大導致無法顯示
+ 7 - 7
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.js


文件差異過大導致無法顯示
+ 5 - 4
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.max.js


+ 5 - 4
src/Helpers/babylon.environmentHelper.ts

@@ -299,8 +299,8 @@ namespace BABYLON {
         /**
          * Stores the creation options.
          */
-        private readonly _options: IEnvironmentHelperOptions;
         private readonly _scene: Scene;
+        private _options: IEnvironmentHelperOptions;
 
         /**
          * constructor
@@ -363,12 +363,13 @@ namespace BABYLON {
                 this._groundMirror = null;
             }
 
-            this._setupBackground();
-
             if (this._options.environmentTexture && !newOptions.environmentTexture && this._scene.environmentTexture) {
                 this._scene.environmentTexture.dispose();
             }
 
+            this._options = newOptions;
+
+            this._setupBackground();
             this._setupImageProcessing();
         }
 
@@ -436,8 +437,8 @@ namespace BABYLON {
 
                 if (this._options.enableGroundMirror) {
                     this._setupGroundMirrorTexture(sceneSize);
-                    this._setupMirrorInGroundMaterial();
                 }
+                this._setupMirrorInGroundMaterial();
             }
 
             if (this._options.createSkybox) {