From f44c3a46069c50772fc7a61969145b14598627f2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 12 Jan 2020 10:26:25 +0530 Subject: [PATCH] Forgot to update comment describing render pipeline --- kitty/cell_fragment.glsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kitty/cell_fragment.glsl b/kitty/cell_fragment.glsl index 223421c9c..fb3143652 100644 --- a/kitty/cell_fragment.glsl +++ b/kitty/cell_fragment.glsl @@ -78,8 +78,8 @@ vec4 blend_onto_opaque_premul(vec3 over, float over_alpha, vec3 under) { * 2a) Opaque bg with images under text * There are multiple passes, each pass is blended onto the previous using the opaque blend func (alpha, 1- alpha): * 1) Draw only the default background - * 2) Draw the images that are supposed to be below both the background and text. This happens in the graphics shader - * 3) Draw the background of cells that don't have the default background + * 2) Draw the images that are supposed to be below both the background and text, if any. This happens in the graphics shader + * 3) Draw the background of cells that don't have the default background if any images were drawn in 2 above 4) Draw the images that are supposed to be below text but not background, again in graphics shader. * 5) Draw the special cells (selection/cursor). Output is same as from step 1, with bg_alpha 1 for special cells and 0 otherwise * 6) Draw the foreground -- expected output is color with alpha which is blended using the opaque blend func