From: Daniel Karbach Date: Tue, 8 Mar 2016 16:46:19 +0000 (+0100) Subject: simple cursor shader X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=tacos-assets.git simple cursor shader --- diff --git a/shader/cursor.fragment.glsl b/shader/cursor.fragment.glsl new file mode 100644 index 0000000..153c58c --- /dev/null +++ b/shader/cursor.fragment.glsl @@ -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 index 0000000..85c68b6 --- /dev/null +++ b/shader/cursor.vertex.glsl @@ -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); +}