summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/simplecustommaterial/shaders/gl3/simpleColor.frag
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qt3d/simplecustommaterial/shaders/gl3/simpleColor.frag')
-rw-r--r--examples/qt3d/simplecustommaterial/shaders/gl3/simpleColor.frag11
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/qt3d/simplecustommaterial/shaders/gl3/simpleColor.frag b/examples/qt3d/simplecustommaterial/shaders/gl3/simpleColor.frag
new file mode 100644
index 000000000..c899052d9
--- /dev/null
+++ b/examples/qt3d/simplecustommaterial/shaders/gl3/simpleColor.frag
@@ -0,0 +1,11 @@
+#version 150 core
+
+uniform vec3 maincolor;
+out vec4 fragColor;
+
+void main()
+{
+ //output color from material
+ fragColor = vec4(maincolor,1.0);
+}
+