light: remove some unused vis-testing stuff
This commit is contained in:
parent
f7091c27f8
commit
722f753d8d
|
|
@ -65,8 +65,6 @@ public:
|
|||
|
||||
qboolean generated; // if true, don't write to the bsp
|
||||
|
||||
const bsp2_dleaf_t *leaf; // for vis testing
|
||||
|
||||
const char *classname() const;
|
||||
|
||||
vec3_t mins, maxs;
|
||||
|
|
@ -91,7 +89,6 @@ public:
|
|||
epairs {nullptr},
|
||||
targetent {nullptr},
|
||||
generated {false},
|
||||
leaf {nullptr},
|
||||
|
||||
// settings
|
||||
|
||||
|
|
|
|||
|
|
@ -174,7 +174,6 @@ typedef struct {
|
|||
vec3_t color;
|
||||
vec3_t surfnormal;
|
||||
vec_t area;
|
||||
const bsp2_dleaf_t *leaf;
|
||||
|
||||
/* estimated visible AABB culling */
|
||||
vec3_t mins;
|
||||
|
|
|
|||
|
|
@ -814,14 +814,6 @@ static miptex_t *FindProjectionTexture(const bsp2_t *bsp, const char *texname)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
SetupLightLeafnums(const bsp2_t *bsp)
|
||||
{
|
||||
for (light_t &entity : all_lights) {
|
||||
entity.leaf = Light_PointInLeaf(bsp, *entity.origin.vec3Value());
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* ==================
|
||||
* EntData_Parse
|
||||
|
|
@ -1253,7 +1245,6 @@ SetupLights(const globalconfig_t &cfg, const bsp2_t *bsp)
|
|||
SetupSuns(cfg);
|
||||
SetupSkyDome(cfg);
|
||||
FixLightsOnFaces(bsp);
|
||||
SetupLightLeafnums(bsp);
|
||||
EstimateLightVisibility();
|
||||
|
||||
logprint("Final count: %d lights %d suns in use.\n",
|
||||
|
|
|
|||
|
|
@ -924,7 +924,6 @@ AddBounceLight(const vec3_t pos, const vec3_t color, const vec3_t surfnormal, ve
|
|||
VectorCopy(color, l.color);
|
||||
VectorCopy(surfnormal, l.surfnormal);
|
||||
l.area = area;
|
||||
l.leaf = Light_PointInLeaf(bsp, pos);
|
||||
|
||||
if (!novisapprox) {
|
||||
EstimateVisibleBoundsAtPoint(pos, l.mins, l.maxs);
|
||||
|
|
|
|||
Loading…
Reference in New Issue