diff options
author | Sebastian Park <51029066+Seb-Park@users.noreply.github.com> | 2024-04-22 00:59:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-22 00:59:29 -0400 |
commit | cd7c76017a12bb548036571c1ff13e551369d06d (patch) | |
tree | 03cd022c7625c5c5682d21c20b0a8b8532e57140 /src/arap.h | |
parent | 5233a708a165ba8a3153e054ce74eb11084c0158 (diff) | |
parent | 28d74097815a8d52b8f47f6eae6464005a6bc552 (diff) |
Merge pull request #2 from Seb-Park/shaders
Shaders
Diffstat (limited to 'src/arap.h')
-rw-r--r-- | src/arap.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1,6 +1,7 @@ #pragma once #include "graphics/shape.h" +//#include "graphics/oceanshape.h" #include "Eigen/StdList" #include "Eigen/StdVector" #include "ocean/ocean.h" @@ -17,6 +18,7 @@ class ARAP { private: Shape m_shape; +// OceanShape m_oceanShape; public: ARAP(); @@ -38,6 +40,10 @@ public: m_shape.draw(shader, mode); } + void initGroundPlane(std::string texturePath, float depth, Shader* shader) { + m_shape.initGroundPlane(texturePath, depth, shader); + } + SelectMode select(Shader *shader, int vertex) { return m_shape.select(shader, vertex); @@ -72,5 +78,7 @@ public: ocean m_ocean; double m_time = 0.00; double m_timestep = 0.001; + + Eigen::Vector3f minCorner, maxCorner; }; |