]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
added leaf culling using the shadow-caster frustum, this got a very small gain
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 19 Mar 2007 14:10:19 +0000 (14:10 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 19 Mar 2007 14:10:19 +0000 (14:10 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6999 d7cf8633-e32d-0410-b094-e92efae38249

gl_rsurf.c

index 1510ffe8b18edbb2ec8de2ff85b467200758f1f4..b507c46a8542d53cac67137855655512e2885f7c 100644 (file)
@@ -601,6 +601,8 @@ void R_Q1BSP_RecursiveGetLightInfo(r_q1bsp_getlightinfo_t *info, mnode_t *node)
                                node = node->children[sides - 1];
                }
        }
+       if (!r_shadow_compilingrtlight && R_CullBoxCustomPlanes(node->mins, node->maxs, r_shadow_rtlight_numfrustumplanes, r_shadow_rtlight_frustumplanes))
+               return;
        leaf = (mleaf_t *)node;
        if (info->svbsp_active)
        {