diff options
| author | Hunter Kvalevog <hunter@kvog.sh> | 2025-11-20 15:37:28 -0600 |
|---|---|---|
| committer | Hunter Kvalevog <hunter@kvog.sh> | 2025-11-21 20:49:11 -0600 |
| commit | 2890cf45c1ad62bf8496f15dfb4796f9c71c02eb (patch) | |
| tree | 1b677376e962fb446588858f2a24cd3196b6bd3c /shaders/vert_quad.glsl | |
| parent | 8a077ca7c421dcea92c9485aa284c6e636f2ddad (diff) | |
shaders
Diffstat (limited to 'shaders/vert_quad.glsl')
| -rw-r--r-- | shaders/vert_quad.glsl | 23 |
1 files changed, 23 insertions, 0 deletions
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); +} |