15 lines
365 B
GLSL
15 lines
365 B
GLSL
#version 330 core
|
|
// Fullscreen triangle vertex shader for Verbatim 5.129.0 My Vibe Shader (OpenGL 3.3 Core)
|
|
|
|
out vec2 v_uv;
|
|
|
|
void main() {
|
|
vec2 positions[3] = vec2[3](
|
|
vec2(-1.0, -1.0),
|
|
vec2( 3.0, -1.0),
|
|
vec2(-1.0, 3.0)
|
|
);
|
|
vec2 p = positions[gl_VertexID];
|
|
gl_Position = vec4(p, 0.0, 1.0);
|
|
v_uv = p * 0.5 + vec2(0.5);
|
|
}
|