kitty/kitty/graphics_vertex.glsl
Kovid Goyal 444d9536a7
Graphics programs should generate pre-multipled colors in interleaved mode
Also fix a few OpenGL state initialization issues.
2017-12-01 12:16:15 +05:30

11 lines
260 B
GLSL

#version GLSL_VERSION
// 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);
}