summaryrefslogtreecommitdiff
path: root/src/shaders/wave-vs.glsl
diff options
context:
space:
mode:
authoriamn1ck <iamn1ck@yahoo.com>2020-03-14 12:47:15 -0500
committerGitHub <noreply@github.com>2020-03-14 12:47:15 -0500
commit3d5ce1be0a75c863e3a0bccde823fb802ba7c085 (patch)
tree5749f383d82b1bedb6f3ba8b06987f96136f8462 /src/shaders/wave-vs.glsl
parent9a491d5f7221c23e75268226844bf5ffd4d8f086 (diff)
parente249ab72ad4550a02bdd3081335485e03e4553bc (diff)
Merge pull request #1 from barrettTom/shadersHEADmaster
Added my stuff
Diffstat (limited to 'src/shaders/wave-vs.glsl')
-rw-r--r--src/shaders/wave-vs.glsl11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/shaders/wave-vs.glsl b/src/shaders/wave-vs.glsl
new file mode 100644
index 0000000..c2584f2
--- /dev/null
+++ b/src/shaders/wave-vs.glsl
@@ -0,0 +1,11 @@
+in vec3 pos;
+in vec2 uv;
+out vec2 v_uv;
+
+uniform mat4 projection;
+uniform mat4 view;
+
+void main() {
+ gl_Position = projection * view * vec4(pos, 1.);
+ v_uv = uv;
+}