Browse Source

Set the right gammaSpace value of the created texture

Popov72 5 years ago
parent
commit
ce1889b8e6
1 changed files with 2 additions and 0 deletions
  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];