Do not generate mipmaps for textures loaded from KTX files.
PiperOrigin-RevId: 830874812 Change-Id: Ie9dccc52acd5ffd26e5d4f3597f3834f81ebebcb
This commit is contained in:
committed by
Copybara-Service
parent
2261733aa4
commit
1b2206fc50
@@ -354,11 +354,6 @@ filament::IndirectLight* ObjectManager::LoadFallbackIndirectLight(
|
|||||||
filament::math::float3 spherical_harmonics[9];
|
filament::math::float3 spherical_harmonics[9];
|
||||||
filament::Texture* tex =
|
filament::Texture* tex =
|
||||||
CreateKtxTexture(engine_, asset.payload, asset.size, spherical_harmonics);
|
CreateKtxTexture(engine_, asset.payload, asset.size, spherical_harmonics);
|
||||||
// TODO: Revisit this to make it this work in WebGL
|
|
||||||
#ifndef __EMSCRIPTEN__
|
|
||||||
tex->generateMipmaps(*engine_);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return CreateIndirectLight(tex, &spherical_harmonics, intensity);
|
return CreateIndirectLight(tex, &spherical_harmonics, intensity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user