浏览代码

Set the right gammaSpace value of the created texture

Popov72 5 年之前
父节点
当前提交
ce1889b8e6
共有 1 个文件被更改,包括 2 次插入0 次删除
  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];