pass data (xyz, uv) with 1 buffer to shader,
bugs: 2 triangles are not painted, one is wrong positioned
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
// Input vertex data, different for all executions of this shader.
|
||||
layout(location = 0) in vec3 vertexPosition_modelspace;
|
||||
layout(location = 1) in vec2 vertexUV;
|
||||
//layout(location = 2) in mat4 mvp;
|
||||
|
||||
// Output
|
||||
out vec2 UV;
|
||||
|
Reference in New Issue
Block a user