Add new PreIntegratedGF with 80% smaller but more accurate data

Update old generation code, use R16G16_UNorm format instead of R11G11B10, skip mips and reduce Y axis to 32 pixels.

#1492
This commit is contained in:
Wojtek Figat
2025-09-25 17:35:10 +02:00
parent d57eec3403
commit 41e851298d
5 changed files with 110 additions and 198 deletions

View File

@@ -707,6 +707,8 @@ bool TextureTool::ImportTextureDirectXTex(ImageType type, const StringView& path
PixelFormat targetFormat = TextureTool::ToPixelFormat(options.Type, width, height, options.Compress);
if (options.sRGB)
targetFormat = PixelFormatExtensions::TosRGB(targetFormat);
if (options.InternalFormat != PixelFormat::Unknown)
targetFormat = options.InternalFormat;
DXGI_FORMAT targetDxgiFormat = ToDxgiFormat(targetFormat);
// Check mip levels