Skip to content
Snippets Groups Projects
Commit 21ccefe4 authored by fickleheart's avatar fickleheart
Browse files

Fix sky texture scaling wrong with fov changes

parent 7bd9344d
No related branches found
No related tags found
3 merge requests!848shaders master merge and mipmap fix,!809Fix buffer overrun with players that have no associated node,!690Rolling
......@@ -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);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment