Orange/src/Orange/Render/Shaders/vs_Fullscreen.vert

14 lines
261 B
GLSL
Raw Normal View History

2022-08-13 17:22:19 +01:00
#version 450
2022-08-13 19:09:54 +01:00
layout(location = 0) out vec2 o_texcoord;
2022-08-13 17:22:19 +01:00
void main()
{
vec2 coord = vec2(
float(gl_VertexIndex & 2),
float(gl_VertexIndex & 1) * 2.0f);
o_texcoord = coord;
gl_Position = vec4(-1.0f + 2.0f * coord, 0.0f, 1.0f);
}