aboutsummaryrefslogtreecommitdiff
path: root/examples/render-quad/src/data/shader.frag
diff options
context:
space:
mode:
Diffstat (limited to 'examples/render-quad/src/data/shader.frag')
-rw-r--r--examples/render-quad/src/data/shader.frag11
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/render-quad/src/data/shader.frag b/examples/render-quad/src/data/shader.frag
new file mode 100644
index 0000000..929073f
--- /dev/null
+++ b/examples/render-quad/src/data/shader.frag
@@ -0,0 +1,11 @@
+#version 450
+
+layout (location = 0) in vec2 frag_pos;
+layout (location = 1) in vec3 frag_color;
+
+layout (location = 0) out vec4 color;
+
+void main()
+{
+ color = vec4(frag_color, 1.0);
+} \ No newline at end of file