Refactor shaders

This commit is contained in:
2022-10-22 22:05:24 +02:00
parent 6b7774681f
commit 43e25b2628
23 changed files with 378 additions and 158 deletions

View File

@@ -0,0 +1,12 @@
#version 330 core
out vec2 v_tex_coords;
void main()
{
float x = -1.0 + float((gl_VertexID & 1) << 2);
float y = -1.0 + float((gl_VertexID & 2) << 1);
v_tex_coords.x = (x + 1.0) * 0.5;
v_tex_coords.y = (y + 1.0) * 0.5;
gl_Position = vec4(x, y, 0, 1);
}