Browse Source

Fix default LOD Scale Offset on HDR Texture

sebastien 7 năm trước cách đây
mục cha
commit
5c68457e3b
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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) {