mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-17 06:30:44 +01:00
cull water side surfaces
This commit is contained in:
parent
531fcd9393
commit
4e599b4070
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user