cull water side surfaces

This commit is contained in:
Ivan 'provod' Avdeev 2021-06-14 09:44:35 -07:00 committed by Ivan Avdeev
parent 531fcd9393
commit 4e599b4070
1 changed files with 5 additions and 0 deletions

View File

@ -225,6 +225,11 @@ void XVK_DrawWaterSurfaces( const cl_entity_t *ent )
if( !FBitSet( surf->flags, SURF_DRAWTURB ) && !FBitSet( surf->flags, SURF_DRAWTURB_QUADS) )
continue;
if( surf->plane->type != PLANE_Z && !FBitSet( ent->curstate.effects, EF_WATERSIDES ))
continue;
// TODO better culling for bottom water brush plane
// Iterate through all glpolys
// generate geometries
EmitWaterPolys( ent, surf, false );