From 949907125f6f05937f3357c5ddc85a2e7380cf91 Mon Sep 17 00:00:00 2001 From: sotech117 Date: Fri, 10 May 2024 06:41:07 -0400 Subject: tile fix and lighting fix --- src/graphics/shape.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/graphics/shape.cpp') diff --git a/src/graphics/shape.cpp b/src/graphics/shape.cpp index e5849fb..874a9e6 100644 --- a/src/graphics/shape.cpp +++ b/src/graphics/shape.cpp @@ -359,10 +359,7 @@ void Shape::updateMeshFoam(const std::vector &faces, verts.reserve(faces.size() * 3); normals.reserve(faces.size() * 3); colors.reserve(faces.size() * 3); - - for (const Eigen::Vector3i& face : faces) { - for (auto& v: {face[0], face[1], face[2]}) { normals.push_back(Eigen::Vector3f(wavelengths[v],0,0)); verts.push_back(vertices[v]); -- cgit v1.2.3-70-g09d2