diff options
author | jjesswan <jessica_wan@brown.edu> | 2024-05-06 00:01:04 -0400 |
---|---|---|
committer | jjesswan <jessica_wan@brown.edu> | 2024-05-06 00:01:04 -0400 |
commit | 2ba27898535e01298ef8f0d0b9ffd4e69ce13458 (patch) | |
tree | 18dac0a37704ba9c2271f185d62ea4a6d4873b61 /src/graphics/shape.h | |
parent | 72bcf6a346dfcaeaac9520d8c524711192e77c3d (diff) |
uv mapping onto water good
Diffstat (limited to 'src/graphics/shape.h')
-rw-r--r-- | src/graphics/shape.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/graphics/shape.h b/src/graphics/shape.h index 2915190..ef1c532 100644 --- a/src/graphics/shape.h +++ b/src/graphics/shape.h @@ -31,6 +31,15 @@ public: void init(const std::vector<Eigen::Vector3f> &vertices, const std::vector<Eigen::Vector3i> &triangles); void setVertices(const std::vector<Eigen::Vector3f> &vertices); void setVertices_and_Normals(const std::vector<Eigen::Vector3f> &vertices, const std::vector<Eigen::Vector3f> &normals); + void setFoamInputs(const std::vector<Eigen::Vector3f> &verts, const std::vector<float> &wavelengths, + const std::vector<Eigen::Vector2f> &waveDirs, const std::vector<Eigen::Vector2f> &textureCoords); + void updateFoam(const std::vector<Eigen::Vector3i> &faces, + const std::vector<Eigen::Vector3f> &vertices, + const std::vector<Eigen::Vector2f> &texCoords, + + std::vector<Eigen::Vector3f>& verts, + std::vector<Eigen::Vector2f>& tex, + std::vector<Eigen::Vector3f>& colors); void setModelMatrix(const Eigen::Affine3f &model); |