mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-12-03 17:42:40 +00:00
don't fudge the maxdist by 0.75. no clue why that was done, but it was the
cause of the bogusly lit surfaces (not sure why, though. imaginary numbers, maybe?). timedemo runs are a little more variable :/
This commit is contained in:
parent
ff5b215c13
commit
6c1c39c4d2
1 changed files with 2 additions and 4 deletions
|
@ -146,8 +146,7 @@ R_AddDynamicLights_1 (msurface_t *surf)
|
|||
surf->texinfo->vecs[1][3] - surf->texturemins[1];
|
||||
|
||||
// for comparisons to minimum acceptable light
|
||||
maxdist = (int) ((r_dlights[lnum].radius * r_dlights[lnum].radius) *
|
||||
0.75);
|
||||
maxdist = (int) (r_dlights[lnum].radius * r_dlights[lnum].radius);
|
||||
|
||||
// clamp radius to avoid exceeding 8192 entry division table
|
||||
if (maxdist > 1048576)
|
||||
|
@ -211,8 +210,7 @@ R_AddDynamicLights_3 (msurface_t *surf)
|
|||
surf->texinfo->vecs[1][3] - surf->texturemins[1];
|
||||
|
||||
// for comparisons to minimum acceptable light
|
||||
maxdist = (int) ((r_dlights[lnum].radius * r_dlights[lnum].radius) *
|
||||
0.75);
|
||||
maxdist = (int) (r_dlights[lnum].radius * r_dlights[lnum].radius);
|
||||
|
||||
// clamp radius to avoid exceeding 8192 entry division table
|
||||
if (maxdist > 1048576)
|
||||
|
|
Loading…
Reference in a new issue