summaryrefslogtreecommitdiff
path: root/src/graphics/shape.cpp
diff options
context:
space:
mode:
authorsotech117 <michael_foiani@brown.edu>2024-05-10 01:48:02 -0400
committersotech117 <michael_foiani@brown.edu>2024-05-10 01:48:02 -0400
commit6aab43ffd2c29a66f71b0684974abd5b2685341c (patch)
treeec1a0df0b1fdd056e70297d2078406553140125b /src/graphics/shape.cpp
parent70ba0f4c20f8dd89f7f922f2177150258a61c546 (diff)
better sea foam
Diffstat (limited to 'src/graphics/shape.cpp')
-rw-r--r--src/graphics/shape.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graphics/shape.cpp b/src/graphics/shape.cpp
index 1baa233..7073a7f 100644
--- a/src/graphics/shape.cpp
+++ b/src/graphics/shape.cpp
@@ -336,7 +336,7 @@ void Shape::updateMesh(const std::vector<Eigen::Vector3i> &faces,
Vector3f n = getNormal(face);
for (auto& v: {face[0], face[1], face[2]}) {
- normals.push_back(Eigen::Vector3f(1,1,1));
+ normals.push_back(n);
verts.push_back(vertices[v]);
if (m_anchors.find(v) == m_anchors.end()) {