still trying to draw instanced
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user