diff options
author | HampusM <hampus@hampusmat.com> | 2025-01-17 17:58:13 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2025-01-17 19:02:33 +0100 |
commit | 6fc7c0b2bf5547159b1d45c2ef9016df1f565dd8 (patch) | |
tree | 673c75bee5499a7887d583d2be3af356958090cc /engine/src/math.rs | |
parent | 99dfc7b3c9f5721dae6a016a1171b451e97a4d7c (diff) |
feat(engine): replace mesh::cube::create vertex cb with face cb
Diffstat (limited to 'engine/src/math.rs')
-rw-r--r-- | engine/src/math.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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() } |