diff options
author | sotech117 <michael_foiani@brown.edu> | 2024-05-10 01:48:02 -0400 |
---|---|---|
committer | sotech117 <michael_foiani@brown.edu> | 2024-05-10 01:48:02 -0400 |
commit | 6aab43ffd2c29a66f71b0684974abd5b2685341c (patch) | |
tree | ec1a0df0b1fdd056e70297d2078406553140125b /src/graphics | |
parent | 70ba0f4c20f8dd89f7f922f2177150258a61c546 (diff) |
better sea foam
Diffstat (limited to 'src/graphics')
-rw-r--r-- | src/graphics/shape.cpp | 2 |
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()) { |