BC4 texture import: reswizzle to rrr1

This commit is contained in:
Turánszki János
2025-02-22 12:36:47 +01:00
parent 65081ab9ab
commit bc3cf30824
+8 -1
View File
@@ -703,7 +703,14 @@ namespace wi
break;
}
if (desc.format == Format::BC5_UNORM)
if (desc.format == Format::BC4_UNORM || desc.format == Format::BC4_SNORM)
{
desc.swizzle.r = ComponentSwizzle::R;
desc.swizzle.g = ComponentSwizzle::R;
desc.swizzle.b = ComponentSwizzle::R;
desc.swizzle.a = ComponentSwizzle::ONE;
}
if (desc.format == Format::BC5_UNORM || desc.format == Format::BC5_SNORM)
{
desc.swizzle.r = ComponentSwizzle::R;
desc.swizzle.g = ComponentSwizzle::G;