Ver código fonte

Fixing skybox size for sandbox

David Catuhe 8 anos atrás
pai
commit
943aa3345a

BIN
Playground/scenes/BoomBox.glb


BIN
Playground/textures/environment.dds


BIN
assets/textures/environment.dds


Diferenças do arquivo suprimidas por serem muito extensas
+ 3258 - 3258
dist/preview release/babylon.d.ts


Diferenças do arquivo suprimidas por serem muito extensas
+ 3258 - 3258
dist/preview release/babylon.module.d.ts


Diferenças do arquivo suprimidas por serem muito extensas
+ 1074 - 1074
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.d.ts


Diferenças do arquivo suprimidas por serem muito extensas
+ 1074 - 1074
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.module.d.ts


BIN
sandbox/Assets/environment.dds


+ 8 - 8
sandbox/index.css

@@ -12,7 +12,7 @@
 }
 
     #DebugLayerLogs > div:first-child {
-        background-color: #988DB5 !important;
+        background-color: #3B789A !important;
     }
 
 #DebugLayerStats {
@@ -24,7 +24,7 @@
 }
 
     #DebugLayerStats > div:first-child {
-        background-color: #988DB5 !important;
+        background-color: #3B789A !important;
     }
 
 #DebugLayerOptions {
@@ -32,11 +32,11 @@
 }
 
 #DebugLayerOptions > div:first-child {
-    background-color: #988DB5 !important;
+    background-color: #3B789A !important;
 }
 
 #DebugLayerTree > div:first-child {
-    background-color: #988DB5 !important;
+    background-color: #3B789A !important;
 }
 
 a {
@@ -64,7 +64,7 @@ a {
 .help {
     display: none;
     position: absolute;
-    background-color: #988DB5;
+    background-color: #3B789A;
     right: 0;
     bottom: 70px;
     color: white;
@@ -87,7 +87,7 @@ a {
  .help2 {
     display: none;
     position: absolute;
-    background-color: #988DB5;
+    background-color: #3B789A;
     right: 0;
     bottom: 70px;
     color: white;
@@ -137,7 +137,7 @@ a {
     width: 100%;
     height: 60px;
     bottom: 0px;
-    background-color: #988DB5;
+    background-color: #3B789A;
     padding-top: 5px;
     padding-left: 15px;
         transition: all 0.5s ease;
@@ -245,7 +245,7 @@ li {
     -webkit-transition: -webkit-transform 0.25s ease-in-out;
     z-index: 3;
     cursor: default;
-    background-color: #988DB5;
+    background-color: #3B789A;
 }
 
 .loadingText {

+ 1 - 1
sandbox/index.js

@@ -57,7 +57,7 @@
             var hdrTexture = BABYLON.CubeTexture.CreateFromPrefilteredData("Assets/environment.dds", currentScene);
             hdrTexture.gammaSpace = false;
                         
-            currentScene.createDefaultSkybox(hdrTexture, true, 100, 0.3);
+            currentScene.createDefaultSkybox(hdrTexture, true, (currentScene.activeCamera.maxZ - currentScene.activeCamera.minZ) / 2, 0.3);
         }
 
         // In case of error during loading, meshes will be empty and clearColor is set to red