diff options
author | jjesswan <90643397+jjesswan@users.noreply.github.com> | 2024-05-10 04:26:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-10 04:26:01 -0400 |
commit | 2cff8e109965307a4265f43d01f4c365f09977e7 (patch) | |
tree | 4915de3e338ee965502289f05f12dc07ef3a717f /src/particlesystem.h | |
parent | d158de5abe6ddbc8546a7fafd797e9f7c74fe768 (diff) | |
parent | 690670c920549828733fddc12e45bae34271aff4 (diff) |
Merge pull request #5 from Seb-Park/new_parti
texture particles
Diffstat (limited to 'src/particlesystem.h')
-rw-r--r-- | src/particlesystem.h | 17 |
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 |