Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide visible scrolling in background staticNoise #768

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aaronkollasch
Copy link

@aaronkollasch aaronkollasch commented Nov 17, 2022

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.

Randomize vertical position of staticNoise texel and add to
existing scrolling of noise texture (both horizontal and vertical;
faster in vertical direction)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant