fix normals in smooth crown gear

This commit is contained in:
numzero 2026-10-19 23:57:50 +03:00
parent be3ef2e4bd
commit daa7f413de

View File

@ -49,7 +49,7 @@ pub fn make_mesh_smooth(
let vertex = |x, z, n| Vertex { let vertex = |x, z, n| Vertex {
position: rot * vec3(x, 0.0, z), position: rot * vec3(x, 0.0, z),
normal: n, normal: rot * n,
}; };
mesh.vertices.extend([ mesh.vertices.extend([
// top // top