Enabled instanced rendering

This commit is contained in:
2017-04-06 15:04:41 -04:00
parent 330b243779
commit 5663331abf
3 changed files with 64 additions and 61 deletions

View File

@@ -2,7 +2,12 @@
in vec3 v;
in vec3 pos;
uniform mat4 proj;
uniform mat4 view;
void main ()
{
gl_Position = vec4(v, 1);
gl_Position = proj * view * vec4(pos + v, 1);
}