kitty/kitty/blit_fragment.glsl
Kovid Goyal a5aca35f1c
Simplify and document the operation of the cell fragment shader
Also get rid of the unneccessary double bg_alpha followed by divide by
alpha step when rendering interleaved and premult
2019-06-12 10:22:47 +05:30

12 lines
176 B
GLSL

#version GLSL_VERSION
uniform sampler2D image;
in vec2 texcoord;
out vec4 color;
void main() {
color = texture(image, texcoord);
color = vec4(color.rgb, color.a);
}