Browse Source

Set the right gammaSpace value of the created texture

Popov72 5 năm trước cách đây
mục cha
commit
ce1889b8e6
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/Misc/khronosTextureContainer2.ts

+ 2 - 0
src/Misc/khronosTextureContainer2.ts

@@ -195,6 +195,8 @@ export class KhronosTextureContainer2 {
             throw new Error("KTX2 container - could not transcode the data. " + data.errors);
         }
 
+        internalTexture._gammaSpace = data.isInGammaSpace;
+
         for (let t = 0; t < data.mipmaps.length; ++t) {
             let mipmap = data.mipmaps[t];