summaryrefslogtreecommitdiff
path: root/webhogg/wasm/src/context/main.vs
diff options
context:
space:
mode:
authornatrixaeria <janng@gmx.de>2019-06-14 17:20:01 +0200
committernatrixaeria <janng@gmx.de>2019-06-14 17:20:01 +0200
commit438825a7ce98a0cd455ff0adebd6d3cf8d3209be (patch)
tree30c4290562910c27c3a11a05344c6b236be62fbf /webhogg/wasm/src/context/main.vs
parent4fd207e78452a9e282ef65fc9c3eaf8b19115956 (diff)
Draw a rectangle
Diffstat (limited to 'webhogg/wasm/src/context/main.vs')
-rw-r--r--webhogg/wasm/src/context/main.vs9
1 files changed, 9 insertions, 0 deletions
diff --git a/webhogg/wasm/src/context/main.vs b/webhogg/wasm/src/context/main.vs
new file mode 100644
index 0000000..18df0a0
--- /dev/null
+++ b/webhogg/wasm/src/context/main.vs
@@ -0,0 +1,9 @@
+#version 300 es
+
+precision highp float;
+
+layout(location=0) in vec2 position;
+
+void main() {
+ gl_Position = vec4(position, 0.0, 0.0);
+}