493afb05e6
This is working repository now. I had to clean this up due to my f_ups, that made this simple repo around 200MB large. Signed-off-by: Piotr Krygier <piotrkrygier@everyonecancode@xyz>
14 lines
270 B
GLSL
14 lines
270 B
GLSL
#version 450
|
|
|
|
layout(location = 0) out vec2 uv;
|
|
vec2 positions[3] = vec2[](
|
|
vec2(-1.0, -1.0),
|
|
vec2(3.0, -1.0),
|
|
vec2(-1.0, 3.0)
|
|
);
|
|
void main() {
|
|
uv = (positions[gl_VertexIndex] + 1.0) * 0.5;
|
|
gl_Position = vec4(positions[gl_VertexIndex], 0.0, 1.0);
|
|
}
|
|
|