summaryrefslogtreecommitdiff
path: root/public/shader/simple.vert
diff options
context:
space:
mode:
authorTyler Murphy <tylermurphy534@gmail.com>2023-01-18 09:30:41 -0500
committerTyler Murphy <tylermurphy534@gmail.com>2023-01-18 09:30:41 -0500
commita28e995202c4469c0c91d23e272b5c4bf1b0010e (patch)
treea36af861f9757a3185f284ba10a68b73b188f516 /public/shader/simple.vert
downloadwebgl-a28e995202c4469c0c91d23e272b5c4bf1b0010e.tar.gz
webgl-a28e995202c4469c0c91d23e272b5c4bf1b0010e.tar.bz2
webgl-a28e995202c4469c0c91d23e272b5c4bf1b0010e.zip
initial
Diffstat (limited to 'public/shader/simple.vert')
-rw-r--r--public/shader/simple.vert11
1 files changed, 11 insertions, 0 deletions
diff --git a/public/shader/simple.vert b/public/shader/simple.vert
new file mode 100644
index 0000000..801b91d
--- /dev/null
+++ b/public/shader/simple.vert
@@ -0,0 +1,11 @@
+precision mediump float;
+
+attribute vec2 position;
+attribute vec3 color;
+
+varying vec3 color_pass;
+
+void main() {
+ color_pass = color;
+ gl_Position = vec4(position, 0.0, 1.0);
+} \ No newline at end of file