Browse Source

ref: gl: enable GL waves with r_ripple

pull/2/head
Alibek Omarov 1 year ago
parent
commit
e481e1d73e
  1. 4
      ref/gl/gl_warp.c

4
ref/gl/gl_warp.c

@ -790,9 +790,7 @@ void EmitWaterPolys( msurface_t *warp, qboolean reverse ) @@ -790,9 +790,7 @@ void EmitWaterPolys( msurface_t *warp, qboolean reverse )
if( !warp->polys ) return;
// set the current waveheight
if( r_ripple.value )
waveHeight = 0;
else if( warp->polys->verts[0][2] >= RI.vieworg[2] )
if( warp->polys->verts[0][2] >= RI.vieworg[2] )
waveHeight = -RI.currententity->curstate.scale;
else waveHeight = RI.currententity->curstate.scale;

Loading…
Cancel
Save