mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-24 13:01:48 +00:00
Use GetSkyCapColor to pick the sky solid color
This commit is contained in:
parent
491a4e28c0
commit
b3e4ba13ba
1 changed files with 2 additions and 3 deletions
|
@ -1033,9 +1033,8 @@ static void R_DrawSkyColumn(int start_x, int y1, int y2, int columns)
|
||||||
dc_dest = (ylookup[y1] + start_x) * 4 + dc_destorg;
|
dc_dest = (ylookup[y1] + start_x) * 4 + dc_destorg;
|
||||||
dc_count = y2 - y1;
|
dc_count = y2 - y1;
|
||||||
|
|
||||||
// To do: figure out how GZDoom calculates the solid top and bottom colors
|
uint32_t solid_top = frontskytex->GetSkyCapColor(false);
|
||||||
uint32_t solid_top = 0xff7f7f7f;
|
uint32_t solid_bottom = frontskytex->GetSkyCapColor(true);
|
||||||
uint32_t solid_bottom = 0xff3f3f3f;
|
|
||||||
|
|
||||||
if (columns == 4)
|
if (columns == 4)
|
||||||
if (!backskytex)
|
if (!backskytex)
|
||||||
|
|
Loading…
Reference in a new issue