From 6fc7c0b2bf5547159b1d45c2ef9016df1f565dd8 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 17 Jan 2025 17:58:13 +0100 Subject: feat(engine): replace mesh::cube::create vertex cb with face cb --- engine/src/math.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine/src/math.rs') diff --git a/engine/src/math.rs b/engine/src/math.rs index b86e760..0340de8 100644 --- a/engine/src/math.rs +++ b/engine/src/math.rs @@ -13,5 +13,5 @@ pub fn calc_triangle_surface_normal( let v1 = edge_b - egde_a; let v2 = edge_c - egde_a; - v1.cross(&v2) + v1.cross(&v2).normalize() } -- cgit v1.2.3-18-g5258