Browse Source

Fix bad encoding space for the texture

Popov72 5 năm trước cách đây
mục cha
commit
070e7d6c4c
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      loaders/src/glTF/2.0/Extensions/KHR_texture_basisu.ts

+ 0 - 1
loaders/src/glTF/2.0/Extensions/KHR_texture_basisu.ts

@@ -37,7 +37,6 @@ export class KHR_texture_basisu implements IGLTFLoaderExtension {
             const sampler = (texture.sampler == undefined ? GLTFLoader.DefaultSampler : ArrayItem.Get(`${context}/sampler`, this._loader.gltf.samplers, texture.sampler));
             const image = ArrayItem.Get(`${extensionContext}/source`, this._loader.gltf.images, extension.source);
             return this._loader._createTextureAsync(context, sampler, image, (babylonTexture) => {
-                babylonTexture.gammaSpace = false;
                 assign(babylonTexture);
             });
         });