From 2890cf45c1ad62bf8496f15dfb4796f9c71c02eb Mon Sep 17 00:00:00 2001 From: Hunter Kvalevog Date: Thu, 20 Nov 2025 15:37:28 -0600 Subject: shaders --- shaders/vert_quad.glsl | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 shaders/vert_quad.glsl (limited to 'shaders/vert_quad.glsl') diff --git a/shaders/vert_quad.glsl b/shaders/vert_quad.glsl new file mode 100644 index 0000000..611ae61 --- /dev/null +++ b/shaders/vert_quad.glsl @@ -0,0 +1,23 @@ +#version 330 core + +// -------------------------------------------------------------------------------- +// Vertex inputs +// -------------------------------------------------------------------------------- +layout (location = 0) in vec2 v_in_p; +layout (location = 1) in vec2 v_in_t; + +// -------------------------------------------------------------------------------- +// Vertex outputs +// -------------------------------------------------------------------------------- +out vec2 v_p; +out vec2 v_t; + +// -------------------------------------------------------------------------------- +// Main +// -------------------------------------------------------------------------------- +void main() +{ + v_p = v_in_p; + v_t = v_in_t; + gl_Position = vec4(v_p.x, v_p.y, -1.0f, 1.0f); +} -- cgit v1.2.3