Enabled instanced rendering
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user