summaryrefslogtreecommitdiff
path: root/src/graphics
diff options
context:
space:
mode:
authorsotech117 <michael_foiani@brown.edu>2024-05-10 06:41:07 -0400
committersotech117 <michael_foiani@brown.edu>2024-05-10 06:42:45 -0400
commit949907125f6f05937f3357c5ddc85a2e7380cf91 (patch)
treef65548a276314f540265ace695dd74f8ab050a3a /src/graphics
parentbbcfd7f0ff4415e26bf05e0b8660f94bfca94103 (diff)
tile fix and lighting fix
Diffstat (limited to 'src/graphics')
-rw-r--r--src/graphics/shape.cpp3
1 files changed, 0 insertions, 3 deletions
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<Eigen::Vector3i> &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]);