diff options
author | 3gg <3gg@shellblade.net> | 2025-06-27 10:18:39 -0700 |
---|---|---|
committer | 3gg <3gg@shellblade.net> | 2025-06-27 10:18:39 -0700 |
commit | bd57f345ed9dbed1d81683e48199626de2ea9044 (patch) | |
tree | 4221f2f2a7ad2244d2e93052bd68187ec91b8ea9 /shaders/quad.vert | |
parent | 9a82ce0083437a4f9f58108b2c23b957d2249ad8 (diff) |
Diffstat (limited to 'shaders/quad.vert')
-rw-r--r-- | shaders/quad.vert | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/shaders/quad.vert b/shaders/quad.vert new file mode 100644 index 0000000..ef1834c --- /dev/null +++ b/shaders/quad.vert | |||
@@ -0,0 +1,9 @@ | |||
1 | layout (location = 0) in vec2 Position; // Assuming Position in [-1,1]. | ||
2 | |||
3 | out vec2 Texcoord; | ||
4 | |||
5 | void main() | ||
6 | { | ||
7 | Texcoord = Position * 0.5 + 0.5; | ||
8 | gl_Position = vec4(Position, 0.0, 1.0); | ||
9 | } | ||