diff options
author | Matt Turner <mattst88@gmail.com> | 2012-10-24 21:29:35 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2012-10-24 21:40:43 -0700 |
commit | af06cc8002215c50cc07f4a40b643d3b1978450f (patch) | |
tree | f5730cf56cb4cd4b403180116124c8f80b9bce3f /data/instanced.vert | |
parent | 7ed93eee2116d7d38b1281e339c8d4c183dcb775 (diff) |
Note: calling glDrawElementsInstanced (non-ARB) causes a segfault.
Diffstat (limited to 'data/instanced.vert')
-rw-r--r-- | data/instanced.vert | 13 |
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); +} |