mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-06 01:05:48 +02:00
...
This commit is contained in:
@@ -7,7 +7,7 @@ uniform sampler2D image;
|
||||
uniform vec3 amask_fg;
|
||||
uniform vec4 amask_bg_premult;
|
||||
#else
|
||||
uniform float inactive_text_alpha;
|
||||
uniform float extra_alpha;
|
||||
#endif
|
||||
|
||||
in vec2 texcoord;
|
||||
@@ -20,7 +20,7 @@ void main() {
|
||||
color = vec4_premul(color);
|
||||
color = alpha_blend_premul(color, amask_bg_premult);
|
||||
#else
|
||||
color.a *= inactive_text_alpha;
|
||||
color.a *= extra_alpha;
|
||||
color = vec4_premul(color);
|
||||
#endif
|
||||
output_color = color;
|
||||
|
||||
@@ -564,9 +564,9 @@ cell_prepare_to_render(ssize_t vao_idx, Screen *screen, FONTS_DATA_HANDLE fonts_
|
||||
}
|
||||
|
||||
static void
|
||||
draw_graphics(int program, ImageRenderData *data, GLuint start, GLuint count, float inactive_text_alpha) {
|
||||
draw_graphics(int program, ImageRenderData *data, GLuint start, GLuint count, float extra_alpha) {
|
||||
bind_program(program);
|
||||
glUniform1f(graphics_program_layouts[program].uniforms.inactive_text_alpha, inactive_text_alpha);
|
||||
if (program == GRAPHICS_PROGRAM) glUniform1f(graphics_program_layouts[program].uniforms.extra_alpha, extra_alpha);
|
||||
glActiveTexture(GL_TEXTURE0 + GRAPHICS_UNIT);
|
||||
GraphicsUniforms *u = &graphics_program_layouts[program].uniforms;
|
||||
for (GLuint i=0; i < count;) {
|
||||
|
||||
Reference in New Issue
Block a user