]> git.localhorst.tv Git - tacos-assets.git/commitdiff
simple cursor shader master
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Tue, 8 Mar 2016 16:46:19 +0000 (17:46 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Tue, 8 Mar 2016 16:46:19 +0000 (17:46 +0100)
shader/cursor.fragment.glsl [new file with mode: 0644]
shader/cursor.vertex.glsl [new file with mode: 0644]

diff --git a/shader/cursor.fragment.glsl b/shader/cursor.fragment.glsl
new file mode 100644 (file)
index 0000000..153c58c
--- /dev/null
@@ -0,0 +1,5 @@
+#version 330 core
+
+void main() {
+       gl_FragColor = vec4(0.8, 0.0, 0.0, 1.0);
+}
diff --git a/shader/cursor.vertex.glsl b/shader/cursor.vertex.glsl
new file mode 100644 (file)
index 0000000..85c68b6
--- /dev/null
@@ -0,0 +1,9 @@
+#version 330 core
+
+layout(location = 0) in vec3 vert_position;
+
+uniform mat4 VP;
+
+void main() {
+       gl_Position = VP * vec4(vert_position, 1.0);
+}