diff options
Diffstat (limited to 'in_practice/breakout/shaders/shader.vert')
-rw-r--r-- | in_practice/breakout/shaders/shader.vert | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/in_practice/breakout/shaders/shader.vert b/in_practice/breakout/shaders/shader.vert new file mode 100644 index 0000000..043b8c2 --- /dev/null +++ b/in_practice/breakout/shaders/shader.vert @@ -0,0 +1,16 @@ +#version 330 core + +layout (location = 0) in vec4 vertex; + +out vert_t { + vec2 tex_coords; +} vert; + +uniform mat4 model; +uniform mat4 projection; + +void main() +{ + vert.tex_coords = vertex.zw; + gl_Position = projection * model * vec4(vertex.xy, 0.0, 1.0); +} |