summaryrefslogtreecommitdiff
path: root/data/instanced.vert
blob: 52a9713f57ab33af853367973970c9407e56864d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);
}