diff options
author | Joursoir <chat@joursoir.net> | 2021-04-14 11:29:16 +0000 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2021-04-14 11:29:16 +0000 |
commit | 7bfd449c60dcbd9a75073b8e024b11e7b63b01e8 (patch) | |
tree | 2de1d6acc9ae665f364e081d3f74dedbf29762cf /main.vs | |
parent | 107d4ac8dc78c6919169411989fe4ebe41cd6c49 (diff) | |
download | space-simulator-7bfd449c60dcbd9a75073b8e024b11e7b63b01e8.tar.gz space-simulator-7bfd449c60dcbd9a75073b8e024b11e7b63b01e8.tar.bz2 space-simulator-7bfd449c60dcbd9a75073b8e024b11e7b63b01e8.zip |
add main shaders
Diffstat (limited to 'main.vs')
-rw-r--r-- | main.vs | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -0,0 +1,14 @@ +#version 330 core +layout (location = 0) in vec3 position; +layout (location = 2) in vec2 tex_pos; + +out vec2 tex_coords; + +uniform mat4 model; +uniform mat4 proj_view; + +void main() +{ + gl_Position = proj_view * model * vec4(position, 1.0f); + tex_coords = vec2(tex_pos.x, 1.0f - tex_pos.y); +} |