mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
Produce a saner turbulence.
I'm not quite sure it's right. Need to watch sw's turb a bit more.
This commit is contained in:
parent
3508972d66
commit
d2dae4cc58
1 changed files with 2 additions and 2 deletions
|
@ -14,9 +14,9 @@ main (void)
|
|||
{
|
||||
float pix;
|
||||
vec2 rt = vec2 (realtime, realtime);
|
||||
vec2 st;
|
||||
vec2 st = tst;
|
||||
|
||||
st = tst + sin ((tst.ts * 64.0 + rt * SPEED) * FACTOR);
|
||||
st = st + sin ((tst.ts * 64.0 + rt * SPEED) * FACTOR) / 64.0;
|
||||
pix = texture2D (texture, st).r;
|
||||
gl_FragColor = texture2D (palette, vec2 (pix, 0.5));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue