pass data (xyz, uv) with 1 buffer to shader,

bugs:
2 triangles are not painted, one is wrong positioned
This commit is contained in:
Anakin
2016-11-01 11:51:04 +01:00
parent a875820f48
commit 9d35634c0c
3 changed files with 50 additions and 52 deletions

View File

@@ -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;