summaryrefslogtreecommitdiffstats
path: root/examples/gltf/basic.frag
diff options
context:
space:
mode:
Diffstat (limited to 'examples/gltf/basic.frag')
-rw-r--r--examples/gltf/basic.frag12
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/gltf/basic.frag b/examples/gltf/basic.frag
new file mode 100644
index 000000000..6f83f6b90
--- /dev/null
+++ b/examples/gltf/basic.frag
@@ -0,0 +1,12 @@
+#version 330
+
+in vec3 color;
+
+out vec4 fragColor;
+
+void main()
+{
+ // The color variable is interpolated to this fragment's position
+ // for us by OpenGL.
+ fragColor = vec4( color, 1.0 );
+}