From c82207d54c76d8b66be010bfa63e45f9507891fa Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Wed, 4 Mar 2015 16:05:02 +0100 Subject: Move the examples under a qt3d subdir Modules cannot have their examples in the top-level examples directory because in the pre-built packages all modules' examples are merged together. Change-Id: I80fdbb8f1ec6f3d8fd793e4d856e705000237127 Reviewed-by: Paul Lemire --- examples/qt3d/gltf/basic.frag | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 examples/qt3d/gltf/basic.frag (limited to 'examples/qt3d/gltf/basic.frag') diff --git a/examples/qt3d/gltf/basic.frag b/examples/qt3d/gltf/basic.frag new file mode 100644 index 000000000..6f83f6b90 --- /dev/null +++ b/examples/qt3d/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 ); +} -- cgit v1.2.3