procedural-3d-engine/data/shaders/shadowmapping/quad.vert

15 lines
218 B
GLSL
Raw Normal View History

2016-02-28 22:26:11 +01:00
#version 450
layout (location = 0) out vec2 outUV;
2016-05-14 21:23:09 +02:00
out gl_PerVertex
{
2018-02-20 19:28:44 +01:00
vec4 gl_Position;
2016-05-14 21:23:09 +02:00
};
2016-02-28 22:26:11 +01:00
void main()
{
2018-02-20 19:28:44 +01:00
outUV = vec2((gl_VertexIndex << 1) & 2, gl_VertexIndex & 2);
gl_Position = vec4(outUV, 0.0f, 1.0f);
2016-02-28 22:26:11 +01:00
}