still trying to draw instanced

This commit is contained in:
Anakin
2016-11-07 12:06:55 +01:00
parent 8a36fe10b1
commit ed66d77b69
4 changed files with 22 additions and 17 deletions

View File

@@ -12,12 +12,12 @@ layout(location = 2) in mat4 mvp;
out vec2 UV;
// Values that stay constant for the whole mesh.
//uniform mat4 MVP;
uniform mat4 MVP;
void main(){
// Output position of the vertex, in clip space : MVP * position
gl_Position = mvp * vec4(vertexPosition_modelspace, 1);
gl_Position = MVP * vec4(vertexPosition_modelspace, 1);
UV = vertexUV;