From 07442b35158cd7de03315a17694f3f3026207960 Mon Sep 17 00:00:00 2001 From: 0undefined Date: Tue, 11 Nov 2025 00:21:42 +0100 Subject: Quad & IBO tests --- resources/quad.vert | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'resources/quad.vert') 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; } -- cgit v1.3