summaryrefslogtreecommitdiffstats
path: root/tests/glsl/sascha-willems/instancing/starfield.vert
diff options
context:
space:
mode:
Diffstat (limited to 'tests/glsl/sascha-willems/instancing/starfield.vert')
-rw-r--r--tests/glsl/sascha-willems/instancing/starfield.vert10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/glsl/sascha-willems/instancing/starfield.vert b/tests/glsl/sascha-willems/instancing/starfield.vert
new file mode 100644
index 000000000..82721aefd
--- /dev/null
+++ b/tests/glsl/sascha-willems/instancing/starfield.vert
@@ -0,0 +1,10 @@
+#version 450
+//TEST:COMPARE_GLSL:
+
+layout (location = 0) out vec3 outUVW;
+
+void main()
+{
+ outUVW = vec3((gl_VertexIndex << 1) & 2, gl_VertexIndex & 2, gl_VertexIndex & 2);
+ gl_Position = vec4(outUVW.st * 2.0f - 1.0f, 0.0f, 1.0f);
+} \ No newline at end of file