1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-04-25 22:07:44 +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 => {
match element.vertex_type {
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 => {
MDL::write_single3(&mut cursor, &vert.normal).ok()?;