diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-05-16 19:31:31 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-05-16 19:31:31 +0200 |
commit | 68081ef4f1f51b5753e25a1be6f870eb2e84f76e (patch) | |
tree | d251806a4c05543a1262ecd3b86d00e33708a506 /fill.vert | |
parent | fe2d38b584e814ae6bb44e122ecec3d546976c8a (diff) |
experiment with vertex shader
Diffstat (limited to 'fill.vert')
-rw-r--r-- | fill.vert | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fill.vert b/fill.vert new file mode 100644 index 0000000..5633fd5 --- /dev/null +++ b/fill.vert @@ -0,0 +1,10 @@ +#version 330 core +layout (location = 0) in vec3 vert; + +void main() { + // Setting w to 0 has the effect of an infinitely large zoom, which makes the + // single triangle fill the viewport completely. This is okay since I only + // care about the fragment shader. + gl_Position = vec4(vert.xyz, 0.0); +} + |