]> git.lizzy.rs Git - dragonblocks_alpha.git/blob - shaders/sky/sun/vertex.glsl
f6bf7cefc18a022e9c71fcfb19f3eeb157fb3deb
[dragonblocks_alpha.git] / shaders / sky / sun / vertex.glsl
1 layout(location = 0) in vec3 vertexPosition;
2 layout(location = 1) in vec2 vertexTextureCoords;
3
4 out vec2 fragmentTextureCoords;
5
6 uniform mat4 MVP;
7
8 void main()
9 {
10         gl_Position = MVP * vec4(vertexPosition, 1.0);
11         gl_Position.z = gl_Position.w;
12         fragmentTextureCoords = vertexTextureCoords;
13 }