diff options
author | Sebastian Park <SebPark03@gmail.com> | 2024-05-10 04:47:49 -0400 |
---|---|---|
committer | Sebastian Park <SebPark03@gmail.com> | 2024-05-10 04:47:49 -0400 |
commit | bfcca5c60c45c7ae099e3c4d46782fb1c515e680 (patch) | |
tree | 83b5ba7ef08fba2ebac9e106314536a99618a4e8 /resources/shaders/particles.vert | |
parent | be4550c9e22aada0fcadbb57d3a0f03ac919c524 (diff) | |
parent | 2cff8e109965307a4265f43d01f4c365f09977e7 (diff) |
Merge branch 'main' of https://github.com/Seb-Park/ocean-simulation
Diffstat (limited to 'resources/shaders/particles.vert')
-rw-r--r-- | resources/shaders/particles.vert | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/shaders/particles.vert b/resources/shaders/particles.vert index 7b49a46..6e9e388 100644 --- a/resources/shaders/particles.vert +++ b/resources/shaders/particles.vert @@ -1,5 +1,5 @@ #version 330 core -layout (location = 0) in vec2 pos; // <vec2 position, vec2 texCoords> +layout (location = 0) in vec4 pos; // <vec2 position, vec2 texCoords> out vec2 TexCoords; out vec4 ParticleColor; @@ -13,8 +13,8 @@ uniform float alpha; void main() { float scale = 1.f;//2000.0f; - //TexCoords = vertex.zw; - ParticleColor = color; + TexCoords = vec2(pos.x, pos.w); + //ParticleColor = color; // gl_Position = projection *view* vec4((pos * scale) + vec2(offset), 0.0, 1.0); gl_Position = (vec4(pos.x*alpha, pos.y*alpha, 0, 1) + projection*view*vec4(vec3(offset), 1))*scale; |