From 5b3297f916acfc905260ca283515615dda92bf02 Mon Sep 17 00:00:00 2001 From: Filippo Scognamiglio Date: Mon, 3 Dec 2018 16:55:44 +0100 Subject: [PATCH] Tweak some shader constants. --- app/qml/ShaderTerminal.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/qml/ShaderTerminal.qml b/app/qml/ShaderTerminal.qml index ada73ef..1d93f59 100644 --- a/app/qml/ShaderTerminal.qml +++ b/app/qml/ShaderTerminal.qml @@ -291,7 +291,7 @@ Item { (burnIn !== 0 ? " vec4 txt_blur = texture2D(burnInSource, staticCoords); float blurDecay = clamp((time - burnInLastUpdate) * burnInTime, 0.0, 1.0); - vec3 burnInColor = 0.5 * (txt_blur.rgb - vec3(blurDecay)); + vec3 burnInColor = 0.65 * (txt_blur.rgb - vec3(blurDecay)); txt_color = max(txt_color, convertWithChroma(burnInColor));" : "") + @@ -307,7 +307,8 @@ Item { "float inShadow = 1.0 - min2(smoothstep(0.0, shadowLength, staticCoords) - smoothstep(1.0 - shadowLength, 1.0, staticCoords)); - finalColor = mix(finalColor, vec3(0.0), 0.45 * inShadow * inShadow); + inShadow = pow(inShadow, 100.0) + 0.35 * inShadow * inShadow; // Inner shadow and antialiasing when screen background is bright. + finalColor = mix(finalColor, vec3(0.0), inShadow); finalColor = mix(origTxtColor, finalColor, staticInScreen); gl_FragColor = vec4(finalColor, qt_Opacity);" +