diff options
Diffstat (limited to '')
-rw-r--r-- | res/shaders/triangle.vs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/res/shaders/triangle.vs b/res/shaders/triangle.vs new file mode 100644 index 0000000..57cbc74 --- /dev/null +++ b/res/shaders/triangle.vs @@ -0,0 +1,14 @@ +#version 330 core +layout (location = 0) in vec3 a_pos; +layout (location = 1) in vec3 a_color; +layout (location = 2) in vec2 a_tex_coord; + +out vec3 our_color; +out vec2 TexCoord; + +void main() +{ + gl_Position = vec4(a_pos, 1.0); + our_color = a_color; + TexCoord = vec2(a_tex_coord.x, a_tex_coord.y); +} |