From ddc7a64b83c177f01cb1efb3ac2232e9eb5f77fb Mon Sep 17 00:00:00 2001 From: uis Date: Sun, 10 Dec 2023 03:35:15 +0300 Subject: [PATCH] Place drawsurfs only based on surfaces instead of vertices. Without it drawsurfs have annoying tendency to be marked as part of leaf which they only touch with verticies --- tools/quake3/q3map2/surface.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/tools/quake3/q3map2/surface.c b/tools/quake3/q3map2/surface.c index 569fbf08..9b6f706b 100644 --- a/tools/quake3/q3map2/surface.c +++ b/tools/quake3/q3map2/surface.c @@ -2315,10 +2315,6 @@ static int FilterTrianglesIntoTree( mapDrawSurface_t *ds, tree_t *tree ){ refs += FilterWindingIntoTree_r( w, ds, tree->headnode ); } - /* use point filtering as well */ - for ( i = 0; i < ds->numVerts; i++ ) - refs += FilterPointIntoTree_r( ds->verts[ i ].xyz, ds, tree->headnode ); - return refs; } @@ -2361,13 +2357,6 @@ static int FilterFoliageIntoTree( mapDrawSurface_t *ds, tree_t *tree ){ VectorAdd( instance->xyz, ds->verts[ ds->indexes[ i + 2 ] ].xyz, w->p[ 2 ] ); refs += FilterWindingIntoTree_r( w, ds, tree->headnode ); } - - /* use point filtering as well */ - for ( i = 0; i < ( ds->numVerts - ds->numFoliageInstances ); i++ ) - { - VectorAdd( instance->xyz, ds->verts[ i ].xyz, xyz ); - refs += FilterPointIntoTree_r( xyz, ds, tree->headnode ); - } } return refs; -- 2.39.2