diff --git a/app/ShaderManager.qml b/app/ShaderManager.qml index 6b8cb82..ce3dedd 100644 --- a/app/ShaderManager.qml +++ b/app/ShaderManager.qml @@ -159,7 +159,7 @@ ShaderEffect { noise += horizontal_distortion;" : "") : "") + - "float color = texture2D(source, coords).r;" + + "float color = texture2D(source, coords).a;" + (noise_strength !== 0 ? " color += stepNoise(coords) * noise * (1.0 - distance * distance * 2.0);" : "") + @@ -172,7 +172,7 @@ ShaderEffect { "vec3 finalColor = mix(background_color, font_color, color).rgb;" + "finalColor = mix(finalColor * 1.1, vec3(0.0), 1.2 * distance * distance);" + - "finalColor *= texture2D(rasterizationSource, coords).r;" + + "finalColor *= texture2D(rasterizationSource, coords).a;" + (brightness_flickering !== 0 ? " finalColor *= brightness;" : "") + diff --git a/app/Terminal.qml b/app/Terminal.qml index 5946f07..38686a1 100644 --- a/app/Terminal.qml +++ b/app/Terminal.qml @@ -73,7 +73,6 @@ Item{ kterminal.copyClipboard(); } - KTerminal { id: kterminal anchors.fill: parent @@ -218,6 +217,7 @@ Item{ id: finalSource sourceItem: blurredterminal sourceRect: frame.sourceRect + format: ShaderEffectSource.Alpha } ShaderEffect { id: blurredterminal @@ -252,13 +252,13 @@ Item{ "float color = texture2D(source, coords + delta).r * 256.0;" + (mBlur !== 0 ? - "float blurredSourceColor = texture2D(blurredSource, qt_TexCoord0).r * 256.0;" + + "float blurredSourceColor = texture2D(blurredSource, qt_TexCoord0).a * 256.0;" + "blurredSourceColor = blurredSourceColor - blurredSourceColor * " + (1.0 - motionBlurCoefficient) * fpsAttenuation+ ";" + "color = step(1.0, color) * color + step(color, 1.0) * blurredSourceColor;" : "") + - "gl_FragColor = vec4(vec3(floor(color) / 256.0), 1.0);" + + "gl_FragColor.a = vec4(floor(color) / 256.0);" + "}" } ////////////////////////////////////////////////////////////////////// @@ -308,7 +308,7 @@ Item{ }" + "void main() {" + - "gl_FragColor = vec4(getScanlineIntensity(qt_TexCoord0));" + + "gl_FragColor.a = getScanlineIntensity(qt_TexCoord0);" + "}" } ShaderEffectSource{ @@ -317,5 +317,6 @@ Item{ sourceRect: frame.sourceRect hideSource: true smooth: true + format: ShaderEffectSource.Alpha } } diff --git a/app/app.qmlproject.user b/app/app.qmlproject.user index 1b7131c..82a8fa2 100644 --- a/app/app.qmlproject.user +++ b/app/app.qmlproject.user @@ -1,6 +1,6 @@ - + ProjectExplorer.Project.ActiveTarget