diff options
Diffstat (limited to 'data/shaders/mesh.vert')
-rw-r--r-- | data/shaders/mesh.vert | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/data/shaders/mesh.vert b/data/shaders/mesh.vert new file mode 100644 index 0000000..c53f508 --- /dev/null +++ b/data/shaders/mesh.vert @@ -0,0 +1,17 @@ +#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); +} |