Fix small issue with burnin masking.

This commit is contained in:
Filippo Scognamiglio
2018-11-09 21:06:13 +01:00
parent 0a95c5dff3
commit 2b2ae66b8d
2 changed files with 6 additions and 7 deletions

View File

@@ -298,7 +298,7 @@ ShaderEffect {
(burnIn !== 0 ? "
vec4 txt_blur = texture2D(burnInSource, txt_coords);
float blurDecay = clamp((time - burnInLastUpdate) * burnInTime, 0.0, 1.0);
txt_color = max(txt_color, txt_blur.rgb - vec3(blurDecay));"
txt_color = max(txt_color, 0.5 * (txt_blur.rgb - vec3(blurDecay)));"
: "") +
"txt_color += fontColor.rgb * color;" +