From 5629cc55517ece6530914f3f06dd02398c77f479 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Mon, 29 Jan 2024 17:06:24 -0500 Subject: [PATCH] When writing half4 normals, fill it with 0.0 instead of 1.0 --- src/model.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model.rs b/src/model.rs index 08e2539..e7fa17a 100755 --- a/src/model.rs +++ b/src/model.rs @@ -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()?;