Explorar o código

Fix default LOD Scale Offset on HDR Texture

sebastien %!s(int64=7) %!d(string=hai) anos
pai
achega
5c68457e3b
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/Materials/Textures/babylon.hdrCubeTexture.ts

+ 4 - 0
src/Materials/Textures/babylon.hdrCubeTexture.ts

@@ -137,6 +137,10 @@ module BABYLON {
          */
         private loadTexture() {
             var callback = (buffer: ArrayBuffer): Nullable<ArrayBufferView[]> => {
+
+                this.lodGenerationOffset = 0.0;
+                this.lodGenerationScale = 0.8;
+
                 let scene = this.getScene();
 
                 if (!scene) {