Topic was automatically imported from the old Question2Answer platform.
Asked By
findaeden
Hello. I’ve been working on a procedurally generated visual shader to use on the background of my game, but I discovered that there are parts of it that are really easy to remember, and since the effect looks the same way every time the game opens, it looks very clearly repetitive.
Is there a way to prevent this? I wanted to fix it by simply getting the system time and adding that to the shader’s coordinates, but I couldn’t find a way to do it. Any help is appreciated.
I recommend these exact magic numbers as they avoid constructive and disruptive wave interference (which makes non-random patterns) as far as possible.
Or if you want “hilly noise” for a landscape you can make OpenSimplexNoise in the editor and just pick it up in the shader. This is also possible to compute in the shader but you have to loop your hashes. Best just to google an optimum solution, no need to reinvent the wheel.