diff options
Diffstat (limited to 'micro/shader.vert')
| -rw-r--r-- | micro/shader.vert | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/micro/shader.vert b/micro/shader.vert new file mode 100644 index 0000000..5fa99ec --- /dev/null +++ b/micro/shader.vert @@ -0,0 +1,18 @@ +#version 320 es + +layout (location = 0) in vec2 v_pos; +layout (location = 1) in vec2 v_uv; +layout (location = 2) in vec4 v_col; +layout (location = 3) in sampler2D v_tex; + +out vec2 f_uv; +out vec4 f_col; +out sampler2D f_tex; + +void main() +{ + gl_Position = vec4(v_pos, 0.0, 1.0); + f_uv = v_uv; + f_col = v_col; + f_tex = v_tex; +} |
