1
0
mirror of https://github.com/Swordfish90/cool-retro-term.git synced 2025-11-01 15:42:12 +00:00

Fix a couple of issues with burnIn.

This commit is contained in:
Filippo Scognamiglio
2018-11-21 18:18:18 +01:00
parent cc7c13e17f
commit 82f2bd6231
2 changed files with 8 additions and 4 deletions

View File

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