mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-16 09:42:33 +00:00
Internal sky improvement ports
Horizon lines, barrel sky distortion
This commit is contained in:
parent
722e1d570e
commit
2c7082a475
2 changed files with 19 additions and 12 deletions
|
@ -714,6 +714,7 @@ void R_DrawPlanes(void)
|
|||
if (dc_yl <= dc_yh)
|
||||
{
|
||||
angle = (pl->viewangle + xtoviewangle[x])>>ANGLETOSKYSHIFT;
|
||||
dc_iscale = FixedMul(skyscale, FINECOSINE(xtoviewangle[x]>>ANGLETOFINESHIFT));
|
||||
dc_x = x;
|
||||
dc_source =
|
||||
R_GetColumn(skytexture,
|
||||
|
|
|
@ -2674,6 +2674,11 @@ void R_StoreWallRange(INT32 start, INT32 stop)
|
|||
worldbottomslope >>= 4;
|
||||
#endif
|
||||
|
||||
if (linedef->special == 41) { // HORIZON LINES
|
||||
topstep = bottomstep = 0;
|
||||
topfrac = bottomfrac = (centeryfrac>>4);
|
||||
topfrac++; // Prevent 1px HOM
|
||||
} else {
|
||||
topstep = -FixedMul (rw_scalestep, worldtop);
|
||||
topfrac = (centeryfrac>>4) - FixedMul (worldtop, rw_scale);
|
||||
|
||||
|
@ -2690,6 +2695,7 @@ void R_StoreWallRange(INT32 start, INT32 stop)
|
|||
bottomstep = (bottomfracend-bottomfrac)/(range);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
dc_numlights = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue