mirror of
https://github.com/Q3Rally-Team/rallyunlimited-engine.git
synced 2024-11-28 06:53:42 +00:00
26 lines
434 B
GLSL
26 lines
434 B
GLSL
#version 450
|
|
|
|
layout(location = 0) out vec2 frag_tex_coord;
|
|
|
|
const vec2 v[4] = vec2[4](
|
|
vec2(-1.0f, 1.0f),
|
|
vec2(-1.0f,-1.0f),
|
|
vec2( 1.0f, 1.0f),
|
|
vec2( 1.0f,-1.0f)
|
|
);
|
|
|
|
const vec2 t[4] = vec2[4](
|
|
vec2( 0.0f, 1.0f),
|
|
vec2( 0.0f, 0.0f),
|
|
vec2( 1.0f, 1.0f),
|
|
vec2( 1.0f, 0.0f)
|
|
);
|
|
|
|
out gl_PerVertex {
|
|
vec4 gl_Position;
|
|
};
|
|
|
|
void main() {
|
|
gl_Position = vec4( v[ gl_VertexIndex ], 0.0f, 1.0f );
|
|
frag_tex_coord = t[ gl_VertexIndex ];
|
|
}
|