Replace Dec3N vertex format with RGBA8 SNorm

The game uses DXGI_FORMAT_R8G8B8A8_SNORM when building the D3D11
input-layout for what CW called Dec3N.

Updated XML import/export to correctly read these values.
This commit is contained in:
alexguirre
2024-08-03 15:07:41 +02:00
Unverified
parent 3d22e9b2a4
commit 43c3567803
3 changed files with 22 additions and 37 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ namespace CodeWalker.Rendering
case VertexComponentType.Float4: return Format.R32G32B32A32_Float;
case VertexComponentType.UByte4: return Format.R8G8B8A8_UInt;
case VertexComponentType.Colour: return Format.R8G8B8A8_UNorm;
case VertexComponentType.Dec3N: return Format.R10G10B10A2_UNorm;
case VertexComponentType.RGBA8SNorm: return Format.R8G8B8A8_SNorm;
default: return Format.Unknown;
}
}