فهرست منبع

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];