diff options
| author | 0undefined <oscar@nelin.dk> | 2025-11-10 23:21:42 +0000 |
|---|---|---|
| committer | 0undefined <oscar@nelin.dk> | 2025-11-10 23:21:42 +0000 |
| commit | 07442b35158cd7de03315a17694f3f3026207960 (patch) | |
| tree | ae9571bc4edf620028859274f646e48591e5164d /resources/quad.vert | |
| parent | b92c9d17efff6340dad64bd920900a130166ae11 (diff) | |
Quad & IBO tests
Diffstat (limited to 'resources/quad.vert')
| -rw-r--r-- | resources/quad.vert | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/resources/quad.vert b/resources/quad.vert index f73ad12..3365748 100644 --- a/resources/quad.vert +++ b/resources/quad.vert @@ -1,18 +1,21 @@ #version 330 core layout(location = 0) in vec2 pos; +layout(location = 1) in vec2 uv; -out vec3 fragColor; +out vec2 UV; uniform mat4 MVP; void main() { gl_Position = - MVP * vec4( pos.x, 1, pos.y, 1); + MVP * + vec4( pos.x, 1, pos.y, 1); + UV = uv; //vec4(pos.x, 1.0, pos.y, 1.0); - fragColor.x = gl_Position.x; - fragColor.y = gl_Position.y; - fragColor.z = gl_Position.z; + //fragColor.x = gl_Position.x; + //fragColor.y = gl_Position.y; + //fragColor.z = gl_Position.z; } |
