diff --git a/app/qml/PreprocessedTerminal.qml b/app/qml/PreprocessedTerminal.qml index b60c932..19b6f5f 100644 --- a/app/qml/PreprocessedTerminal.qml +++ b/app/qml/PreprocessedTerminal.qml @@ -278,6 +278,8 @@ Item{ hideSource: true smooth: false wrapMode: ShaderEffectSource.ClampToEdge + //sourceRect is needed because FastBlur expands slightly outside the rectangle + sourceRect: Qt.rect(-1, -1, sourceItem.width + 2, sourceItem.height + 2) } } diff --git a/app/qml/ShaderTerminal.qml b/app/qml/ShaderTerminal.qml index 7f00af7..1392dd4 100644 --- a/app/qml/ShaderTerminal.qml +++ b/app/qml/ShaderTerminal.qml @@ -224,12 +224,14 @@ ShaderEffect { "finalColor *= texture2D(rasterizationSource, coords).a;" + (bloom_strength !== 0 ? - "vec3 bloomColor = texture2D(bloomSource, coords).rgb;" + + "vec4 bloomFullColor = texture2D(bloomSource, coords); + vec3 bloomColor = bloomFullColor.rgb; + float bloomAlpha = bloomFullColor.a;" + (chroma_color !== 0 ? "bloomColor = font_color.rgb * mix(vec3(rgb2grey(bloomColor)), bloomColor, chroma_color);" : "bloomColor = font_color.rgb * rgb2grey(bloomColor);") + - "finalColor += bloomColor * bloom_strength;" + "finalColor += bloomColor * bloom_strength * bloomAlpha;" : "") + (brightness_flickering !== 0 ? "