1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-04-20 11:47:46 +00:00

Oops, half4 positions should not be written as single4

This commit is contained in:
Joshua Goins 2024-01-29 17:18:13 -05:00
parent 5629cc5551
commit e26c70221e

View file

@ -672,7 +672,7 @@ impl MDL {
VertexUsage::Position => { VertexUsage::Position => {
match element.vertex_type { match element.vertex_type {
VertexType::Half4 => { VertexType::Half4 => {
MDL::write_single4(&mut cursor, &MDL::pad_slice(&vert.position, 1.0)).ok()?; MDL::write_half4(&mut cursor, &MDL::pad_slice(&vert.position, 1.0)).ok()?;
} }
VertexType::Single3 => { VertexType::Single3 => {
MDL::write_single3(&mut cursor, &vert.position).ok()?; MDL::write_single3(&mut cursor, &vert.position).ok()?;