mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-20 18:01:16 +00:00
Fix sky texture scaling wrong with fov changes
This commit is contained in:
parent
7bd9344dd0
commit
21ccefe4eb
2 changed files with 2 additions and 1 deletions
|
@ -26,6 +26,7 @@ extern INT32 centerx, centery;
|
|||
|
||||
extern fixed_t centerxfrac, centeryfrac;
|
||||
extern fixed_t projection, projectiony;
|
||||
extern fixed_t fovtan; // field of view
|
||||
|
||||
extern size_t validcount, linecount, loopcount, framecount;
|
||||
|
||||
|
|
|
@ -76,5 +76,5 @@ void R_SetupSkyDraw(void)
|
|||
void R_SetSkyScale(void)
|
||||
{
|
||||
fixed_t difference = vid.fdupx-(vid.dupx<<FRACBITS);
|
||||
skyscale = FixedDiv(FRACUNIT, vid.fdupx+difference);
|
||||
skyscale = FixedDiv(fovtan, vid.fdupx+difference);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue