This commit is contained in:
Kovid Goyal
2024-12-12 08:51:27 +05:30
parent 4839233676
commit afd0b1f913

View File

@@ -4,6 +4,7 @@ uniform vec4 y_coords;
out vec2 frag_pos;
void main() {
frag_pos = vec2(x_coords[gl_VertexID], y_coords[gl_VertexID]);
gl_Position = vec4(x_coords[gl_VertexID], y_coords[gl_VertexID], 1.0, 1.0);
vec2 pos = vec2(x_coords[gl_VertexID], y_coords[gl_VertexID]);
gl_Position = vec4(pos, 1.0, 1.0);
frag_pos = pos;
}