1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-04-26 06:07:45 +00:00

When writing half4 normals, fill it with 0.0 instead of 1.0

This commit is contained in:
Joshua Goins 2024-01-29 17:06:24 -05:00
parent afe809f33c
commit 5629cc5551

View file

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