BC4 texture import: reswizzle to rrr1
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user