From 1c752af2259f5ad9de6d57ae795e6a88f021aa07 Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 21 Sep 2003 23:23:27 +0000 Subject: [PATCH] removed RSurf_LightCheck because nothing used it anymore git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3499 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rsurf.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/gl_rsurf.c b/gl_rsurf.c index 5eb98d31..e4f37671 100644 --- a/gl_rsurf.c +++ b/gl_rsurf.c @@ -700,27 +700,6 @@ static int RSurf_LightSeparate_Vertex3f_Color4f(const matrix4x4_t *matrix, const return lit; } -// note: this untransforms lights to do the checking -static int RSurf_LightCheck(const matrix4x4_t *matrix, const int *dlightbits, const surfmesh_t *mesh) -{ - int i, l; - const rdlight_t *rd; - vec3_t lightorigin; - const float *v; - for (l = 0;l < r_numdlights;l++) - { - if (dlightbits[l >> 5] & (1 << (l & 31))) - { - rd = &r_dlight[l]; - Matrix4x4_Transform(matrix, rd->origin, lightorigin); - for (i = 0, v = mesh->vertex3f;i < mesh->numverts;i++, v += 3) - if (VectorDistance2(v, lightorigin) < rd->cullradius2) - return true; - } - } - return false; -} - static void RSurfShader_Sky(const entity_render_t *ent, const texture_t *texture, msurface_t **surfchain) { const msurface_t *surf; -- 2.39.2