diff options
Diffstat (limited to 'shaders/sky.vert')
-rw-r--r-- | shaders/sky.vert | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/shaders/sky.vert b/shaders/sky.vert new file mode 100644 index 0000000..87d919b --- /dev/null +++ b/shaders/sky.vert @@ -0,0 +1,18 @@ +#version 150 +#extension GL_ARB_explicit_attrib_location : enable +#extension GL_ARB_explicit_uniform_location : enable + +layout(location = 0) in vec3 in_position ; +layout(location = 2) in vec4 in_color ; +layout(location = 1) in vec3 in_normal ; +layout(location = 3) in vec2 in_texcoord ; + +uniform mat4 mvMatrix ; +uniform mat4 pjMatrix ; + +out vec2 texcoord ; + +void main() { + gl_Position = pjMatrix * mvMatrix * vec4(in_position,1.0); + texcoord = in_texcoord ; +} |