diff options
Diffstat (limited to 'src/fw/shader.vert')
| -rw-r--r-- | src/fw/shader.vert | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/fw/shader.vert b/src/fw/shader.vert new file mode 100644 index 0000000..6bf4e24 --- /dev/null +++ b/src/fw/shader.vert @@ -0,0 +1,18 @@ +#version 430 core + +layout (location = 0) in vec3 v_pos; +layout (location = 1) in vec2 v_uv; +layout (location = 2) in vec4 v_col; + +out vec2 f_uv; +out vec4 f_col; + +uniform mat4 projection; +uniform mat4 view; + +void main() { + gl_Position = projection * view * vec4(v_pos, 1.0); + + f_uv = v_uv; + f_col = v_col; +} |
