Swordfish90 / cool-retro-term

A good looking terminal emulator which mimics the old cathode display...
21.78k stars 837 forks source link

Hide visible scrolling in background staticNoise #768

Open aaronkollasch opened 1 year ago

aaronkollasch commented 1 year ago

The current background staticNoise is generated by scrolling a noise texture. However, I find that this scrolling is visible, most clearly with large window sizes on high-resolution displays. To me, this distracts from the illusion of static noise.

This PR pseudo-randomizes the vertical position of the staticNoise texel and adds that to the pre-existing scrolling of noise texture (both horizontal and vertical; faster in vertical direction). I've found that produces the best balance of hiding visible scrolling while preserving the smoothness of the previous animation. (The pseudo-random function applied to the time variable seems to produce jerky outputs if used on its own, but they aren't visible when scrolling is also applied.)

The static noise still isn't perfect on large windows with this PR applied (mostly due to the fixed 512x512 texture), but the obvious scrolling artifact is removed.