diff options
Diffstat (limited to 'desktop/modules/appearance/burn.frag')
| -rw-r--r-- | desktop/modules/appearance/burn.frag | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/desktop/modules/appearance/burn.frag b/desktop/modules/appearance/burn.frag index a5cb9c3..4f91a81 100644 --- a/desktop/modules/appearance/burn.frag +++ b/desktop/modules/appearance/burn.frag @@ -45,7 +45,9 @@ void main() { vec2 asp = vec2(aspect, 1.0); float d = length((qt_TexCoord0 - origin) * asp) / length(max(origin, 1.0 - origin) * asp); float t = mix(d, fbm(qt_TexCoord0 * asp * 5.0), 0.5); - float e = t - progress; + // Starts behind the char band, so no pixel starts out scorched, and ends + // past 1, since fbm can push a threshold a little over it. + float e = t - (progress * 1.1 - 0.05); if (e <= 0.0) { fragColor = vec4(0.0); return; } // Front to intact paper: flame, then char, then the picture. |
