Update name of function parameter

This commit is contained in:
Hanno Braun 2024-11-06 19:40:18 +01:00
parent 1c47574e8c
commit 229be4336e

View File

@ -195,11 +195,11 @@ impl Renderer {
mesh.triangles(&mut mesh_triangles);
for triangle in &mesh_triangles {
let triangle = triangle.map(|index| {
let triangle = triangle.map(|vertex| {
let mut mesh_vertices = Vec::new();
mesh.vertices(&mut mesh_vertices);
Vec3::from(index.point.map(|coord| coord.value() as f32))
Vec3::from(vertex.point.map(|coord| coord.value() as f32))
});
let normal = {
let [a, b, c] = triangle;