kitty/kitty/graphics_vertex.glsl
Hector Martin 84aebae6a8 Downgrade OpenGL version requirement to 3.1
There are only a few features required from newer versions, and they
can be achieved via extensions. This significantly improves compatibility.
2022-12-20 16:22:05 +09:00

11 lines
313 B
GLSL

#version GLSL_VERSION
#extension GL_ARB_explicit_attrib_location : require
// Have to use fixed locations here as all variants of the program share the same VAO
layout(location=0) in vec4 src;
out vec2 texcoord;
void main() {
texcoord = vec2(src[0], src[1]);
gl_Position = vec4(src[2], src[3], 0, 1);
}