Browse Source

Update src/Loading/Plugins/babylon.babylonFileLoader.ts

Co-Authored-By: Palmer-JC <Palmer-JC@users.noreply.github.com>
David Catuhe 6 years ago
parent
commit
69bb1d71eb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Loading/Plugins/babylon.babylonFileLoader.ts

+ 1 - 1
src/Loading/Plugins/babylon.babylonFileLoader.ts

@@ -649,7 +649,7 @@ module BABYLON {
                     if (parsedData.createDefaultSkybox === true) {
                         var skyboxScale = (scene.activeCamera !== undefined && scene.activeCamera !== null) ? (scene.activeCamera.maxZ - scene.activeCamera.minZ) / 2 : 1000;
                         var skyboxBlurLevel = parsedData.skyboxBlurLevel || 0;
-                        var skyboxIsPBR = parsedData.skyboxIsPBR;
+                        var skyboxIsPBR = parsedData.skyboxIsPBR !== undefined ? parsedData.skyboxIsPBR : true;
                         scene.createDefaultSkybox(scene.environmentTexture, skyboxIsPBR, skyboxScale, skyboxBlurLevel);
                     }
                 }