Optimize blend weights to use 8-bit per bone (instead of 16-bit)

This commit is contained in:
Wojtek Figat
2025-01-21 11:40:01 +01:00
parent 0b24c50161
commit 9fd98c8e12
2 changed files with 16 additions and 5 deletions

View File

@@ -62,7 +62,7 @@ namespace
vb0elements.Add({ VertexElement::Types::Tangent, 0, 0, 0, PixelFormat::R10G10B10A2_UNorm });
}
vb0elements.Add({ VertexElement::Types::BlendIndices, 0, 0, 0, PixelFormat::R8G8B8A8_UInt });
vb0elements.Add({ VertexElement::Types::BlendWeights, 0, 0, 0, PixelFormat::R16G16B16A16_Float });
vb0elements.Add({ VertexElement::Types::BlendWeights, 0, 0, 0, PixelFormat::R8G8B8A8_UNorm });
if (uvs)
vb0elements.Add({ VertexElement::Types::TexCoord, 0, 0, 0, PixelFormat::R16G16_Float });
if (colors)