Browse Source

Fix bad encoding space for the texture

Popov72 5 years ago
parent
commit
070e7d6c4c
1 changed files with 0 additions and 1 deletions
  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 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);
             const image = ArrayItem.Get(`${extensionContext}/source`, this._loader.gltf.images, extension.source);
             return this._loader._createTextureAsync(context, sampler, image, (babylonTexture) => {
             return this._loader._createTextureAsync(context, sampler, image, (babylonTexture) => {
-                babylonTexture.gammaSpace = false;
                 assign(babylonTexture);
                 assign(babylonTexture);
             });
             });
         });
         });