mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-29 15:32:57 +00:00
Fix linear skies
This commit is contained in:
parent
c62ee28726
commit
1c2dcad36e
1 changed files with 9 additions and 1 deletions
|
@ -1098,7 +1098,15 @@ static void R_DrawSkyColumnStripe(int start_x, int y1, int y2, int columns, doub
|
||||||
|
|
||||||
DWORD ang, angle1, angle2;
|
DWORD ang, angle1, angle2;
|
||||||
|
|
||||||
ang = (skyangle + xtoviewangle[x]) ^ skyflip;
|
if (r_linearsky)
|
||||||
|
{
|
||||||
|
angle_t xangle = (angle_t)((0.5 - x / (double)viewwidth) * FocalTangent * ANGLE_90);
|
||||||
|
ang = (skyangle + xangle) ^ skyflip;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ang = (skyangle + xtoviewangle[x]) ^ skyflip;
|
||||||
|
}
|
||||||
angle1 = (DWORD)((UMulScale16(ang, frontcyl) + frontpos) >> FRACBITS);
|
angle1 = (DWORD)((UMulScale16(ang, frontcyl) + frontpos) >> FRACBITS);
|
||||||
angle2 = (DWORD)((UMulScale16(ang, backcyl) + backpos) >> FRACBITS);
|
angle2 = (DWORD)((UMulScale16(ang, backcyl) + backpos) >> FRACBITS);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue