summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/instanced.vert13
1 files changed, 13 insertions, 0 deletions
diff --git a/data/instanced.vert b/data/instanced.vert
new file mode 100644
index 0000000..52a9713
--- /dev/null
+++ b/data/instanced.vert
@@ -0,0 +1,13 @@
+#extension GL_ARB_draw_instanced : enable
+
+uniform mat4 mvp[5];
+
+attribute vec4 vert_color;
+
+varying vec4 color;
+
+void main(void)
+{
+ gl_Position = mvp[gl_InstanceID] * gl_Vertex;
+ color = abs(vert_color);
+}