mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-04-14 14:50:57 +01:00
Tweak some shader constants.
This commit is contained in:
parent
41413d4712
commit
5b3297f916
@ -291,7 +291,7 @@ Item {
|
|||||||
(burnIn !== 0 ? "
|
(burnIn !== 0 ? "
|
||||||
vec4 txt_blur = texture2D(burnInSource, staticCoords);
|
vec4 txt_blur = texture2D(burnInSource, staticCoords);
|
||||||
float blurDecay = clamp((time - burnInLastUpdate) * burnInTime, 0.0, 1.0);
|
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));"
|
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));
|
"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);
|
finalColor = mix(origTxtColor, finalColor, staticInScreen);
|
||||||
gl_FragColor = vec4(finalColor, qt_Opacity);" +
|
gl_FragColor = vec4(finalColor, qt_Opacity);" +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user