mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-31 18:06:41 +00:00
removing this part was a mistake, made the ripples more repetitive
This commit is contained in:
parent
838fc634c6
commit
9b030e174f
1 changed files with 2 additions and 0 deletions
|
@ -67,6 +67,8 @@ float scramble(float x, float z)
|
|||
vec2 randOffset(vec2 c, float time)
|
||||
{
|
||||
time = fract(time/1000.0);
|
||||
c = vec2(c.x * c.y / 8.0 + c.y * 0.3 + c.x * 0.2,
|
||||
c.x * c.y / 14.0 + c.y * 0.5 + c.x * 0.7);
|
||||
c.x *= scramble(scramble(time + c.x/1000.0, 4.0), 3.0) + 1.0;
|
||||
c.y *= scramble(scramble(time + c.y/1000.0, 3.5), 3.0) + 1.0;
|
||||
return fract(c);
|
||||
|
|
Loading…
Reference in a new issue