summaryrefslogtreecommitdiffstats
path: root/tests/playground/color.frag
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2019-04-04 19:47:41 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2019-04-09 18:53:22 +0000
commit0fde097e31e908b18db68f05e2122c5280d36304 (patch)
treefef45d90f164983dd49130a2d14e86055f84f1da /tests/playground/color.frag
parent8c10e6cb759f8d4acdcf54a25b70530d4c936bf6 (diff)
Import the Qt Shader Tools module
...from https://git.qt.io/laagocs/qtshadertools/ Change-Id: I3aa655da81978e13016f8150634e278448015709 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'tests/playground/color.frag')
-rw-r--r--tests/playground/color.frag10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/playground/color.frag b/tests/playground/color.frag
new file mode 100644
index 0000000..3755876
--- /dev/null
+++ b/tests/playground/color.frag
@@ -0,0 +1,10 @@
+#version 440
+
+layout(location = 0) in vec3 v_color;
+
+layout(location = 0) out vec4 fragColor;
+
+void main()
+{
+ fragColor = vec4(v_color, 1.0);
+}