diff options
| author | 0undefined <oscar@nelin.dk> | 2025-03-25 20:13:54 +0000 |
|---|---|---|
| committer | 0undefined <oscar@nelin.dk> | 2025-03-25 20:15:37 +0000 |
| commit | a2dbad8da8e6ada46e7e31440ead412c52ab3e08 (patch) | |
| tree | 86a0e2502f29a027e589872b6f48bf372742f9af /resources/quad.vert | |
| parent | 3ee2b1865e6d3f01140a74bf5ac2f48f46744450 (diff) | |
Add quad shaders
Diffstat (limited to 'resources/quad.vert')
| -rw-r--r-- | resources/quad.vert | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/resources/quad.vert b/resources/quad.vert new file mode 100644 index 0000000..4aaf59c --- /dev/null +++ b/resources/quad.vert @@ -0,0 +1,18 @@ +#version 330 core + +layout(location = 0) in vec3 pos; + +out vec3 fragColor; + +uniform mat4 MVP; + +void main() { + + gl_Position = + //MVP * vec4( pos.x, 1, pos.y, 1); + vec4(pos.x, 1.0, pos.y, 1.0); + + fragColor.x = gl_Position.x; + fragColor.y = gl_Position.y; + fragColor.z = gl_Position.z; +} |
