summaryrefslogtreecommitdiff
path: root/src/particlesystem.h
diff options
context:
space:
mode:
authorSebastian Park <SebPark03@gmail.com>2024-05-10 04:47:49 -0400
committerSebastian Park <SebPark03@gmail.com>2024-05-10 04:47:49 -0400
commitbfcca5c60c45c7ae099e3c4d46782fb1c515e680 (patch)
tree83b5ba7ef08fba2ebac9e106314536a99618a4e8 /src/particlesystem.h
parentbe4550c9e22aada0fcadbb57d3a0f03ac919c524 (diff)
parent2cff8e109965307a4265f43d01f4c365f09977e7 (diff)
Merge branch 'main' of https://github.com/Seb-Park/ocean-simulation
Diffstat (limited to 'src/particlesystem.h')
-rw-r--r--src/particlesystem.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/particlesystem.h b/src/particlesystem.h
index d3b0b8f..608e229 100644
--- a/src/particlesystem.h
+++ b/src/particlesystem.h
@@ -29,8 +29,7 @@ public:
particlesystem();
void update(double deltaTime);
- void draw(Shader *skybox_shader, Camera m_camera);
- void draw(Shader *shader, Camera m_camera, std::vector<Eigen::Vector3f> verts, Eigen::Matrix4f model);
+ void draw(Shader *shader, Camera m_camera, GLuint texture);
void init(std::vector<OceanSpray> verts);
@@ -60,12 +59,14 @@ private:
float d = 2.f;
std::vector<float> m_vertices = {
- -d, d,
- d,d,
- -d, -d,
- d, d,
- d, -d,
- -d, -d
+ -d, d, 0,1,
+ -d, -d, 0, 0,
+ d,d, 1,1,
+ //
+ d,d, 1,1,
+ -d, -d, 0, 0,
+
+ d, -d, 1, 0
};
GLuint VAO, VBO; // holds quad shape