You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
r_turb_turb = sintable + ((int)(cl.timeSPEED)&(CYCLE-1));
see, sin.
sintable[i] = AMP + sin(i3.14159*2/CYCLE)AMP;
(also AMP is 80x10000, and i ranges up to CYCLE=128(with extra slop for wrapping) so the table's validity is from 0 to 2PI radians aka the full 360 degree range in 128 levels)
which I suppose means it technically ranges from 0-16 instead of +/-8
so feel free to add ((8.0/64)=0.125) to match that small bias, but cos is wrong.
defaultwarp.glsl
has the following code:but should use
cos
for one of them to more closely match the original Quake water warp.The text was updated successfully, but these errors were encountered: