summaryrefslogtreecommitdiff
path: root/src/arap.h
diff options
context:
space:
mode:
authorjjesswan <90643397+jjesswan@users.noreply.github.com>2024-05-09 15:13:41 -0400
committerGitHub <noreply@github.com>2024-05-09 15:13:41 -0400
commitf846ddba00aee29675f0bd4f5dbc87a94a422368 (patch)
tree65a857125b91502974bceb40e24c1c7eff4bad59 /src/arap.h
parent72bcf6a346dfcaeaac9520d8c524711192e77c3d (diff)
parent675391d07f50d0067e7bab983433c6d86f5f8256 (diff)
Merge pull request #3 from Seb-Park/foam2
Foam2 merge -- foam, skybox
Diffstat (limited to 'src/arap.h')
-rw-r--r--src/arap.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/arap.h b/src/arap.h
index 331cc3d..e5529d9 100644
--- a/src/arap.h
+++ b/src/arap.h
@@ -19,7 +19,8 @@ class ARAP
{
private:
Shape m_shape;
-// OceanShape m_oceanShape;
+ Shape m_foam_shape;
+
public:
ARAP();
@@ -43,6 +44,17 @@ public:
m_shape.draw(shader, mode);
}
+ void drawFoam(Shader *shader, GLenum mode)
+ {
+
+
+ m_foam_shape.draw(shader, mode);
+ }
+
+ double getTime() {
+ return m_time;
+ }
+
void initGroundPlane(std::string texturePath, float depth, Shader* shader) {
m_shape.initGroundPlane(texturePath, depth, shader);
}
@@ -84,7 +96,7 @@ public:
ocean_alt m_ocean;
double m_time = 0.00;
- double m_timestep = 0.03;
+ double m_timestep = 0.3;
Eigen::Vector3f minCorner, maxCorner;
};