diff options
author | jjesswan <90643397+jjesswan@users.noreply.github.com> | 2024-05-09 15:13:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-09 15:13:41 -0400 |
commit | f846ddba00aee29675f0bd4f5dbc87a94a422368 (patch) | |
tree | 65a857125b91502974bceb40e24c1c7eff4bad59 /src/graphics/shape.h | |
parent | 72bcf6a346dfcaeaac9520d8c524711192e77c3d (diff) | |
parent | 675391d07f50d0067e7bab983433c6d86f5f8256 (diff) |
Merge pull request #3 from Seb-Park/foam2
Foam2 merge -- foam, skybox
Diffstat (limited to 'src/graphics/shape.h')
-rw-r--r-- | src/graphics/shape.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/graphics/shape.h b/src/graphics/shape.h index 2915190..ab3c27a 100644 --- a/src/graphics/shape.h +++ b/src/graphics/shape.h @@ -31,6 +31,25 @@ 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 updateMeshFoam(const std::vector<Eigen::Vector3i> &faces, + const std::vector<Eigen::Vector3f> &vertices, + const std::vector<float> &wavelengths, + const std::vector<Eigen::Vector2f> &waveDirs, + + std::vector<Eigen::Vector3f>& verts, + std::vector<Eigen::Vector3f>& normals, + std::vector<Eigen::Vector3f>& colors); + void setModelMatrix(const Eigen::Affine3f &model); |