diff options
Diffstat (limited to 'data/shaders/grid.vert')
-rw-r--r-- | data/shaders/grid.vert | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/data/shaders/grid.vert b/data/shaders/grid.vert new file mode 100644 index 0000000..4cb8948 --- /dev/null +++ b/data/shaders/grid.vert @@ -0,0 +1,18 @@ +#version 330 core + +layout(location = 0) in vec3 aposition; +layout(location = 2) in vec2 atexcoords; + +out VSOUT { + vec2 texcoords; +} vsout; + +uniform mat4 projection; +uniform mat4 view; +uniform mat4 world; + +void main(void) +{ + vsout.texcoords = atexcoords; + gl_Position = projection*view*world*vec4(aposition, 1.0); +} |