mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-24 04:29:34 -04:00
Use more accurate light index (#1520)
This commit is contained in:
parent
cfc207f108
commit
0c2e248f8b
@ -290,7 +290,7 @@ static void R_InitTextureMapping(void)
|
|||||||
fov = FIELDOFVIEW;
|
fov = FIELDOFVIEW;
|
||||||
slopefrac = finetangent[FINEANGLES / 4 + fov / 2];
|
slopefrac = finetangent[FINEANGLES / 4 + fov / 2];
|
||||||
focallength = FixedDiv(centerxfrac_nonwide, slopefrac);
|
focallength = FixedDiv(centerxfrac_nonwide, slopefrac);
|
||||||
lightfocallength = focallength;
|
lightfocallength = centerxfrac_nonwide;
|
||||||
projection = centerxfrac_nonwide;
|
projection = centerxfrac_nonwide;
|
||||||
|
|
||||||
if (centerxfrac != centerxfrac_nonwide)
|
if (centerxfrac != centerxfrac_nonwide)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user