mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix sky texture scaling wrong with fov changes
This commit is contained in:
parent
3d432b4c60
commit
a5976b09ec
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…
Add table
Reference in a new issue