Skip to content

Commit

Permalink
Test tweaked version of tall sprite sky clipping fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dashodanger committed Nov 21, 2024
1 parent 4f37647 commit 22ee5ba
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions source_files/edge/r_sky.cc
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,12 @@ void ComputeSkyHeights(void)
if (!EDGE_IMAGE_IS_SKY(sec->ceiling))
continue;

// leave some room for tall sprites
static const float SPR_H_MAX = 256.0f;

rings[i].group = (i + 1);
rings[i].next = rings[i].previous = rings + i;
rings[i].maximum_height = sec->ceiling_height;
rings[i].maximum_height = sec->ceiling_height + SPR_H_MAX;
}

// --- make the pass over linedefs ---
Expand Down Expand Up @@ -762,7 +765,7 @@ void FinishSky(void)
global_render_state->Disable(GL_DEPTH_TEST);

if (!renderer_dumb_sky.d_)
global_render_state->DepthFunction(GL_ALWAYS);
global_render_state->DepthFunction(GL_GREATER);
else
global_render_state->DepthMask(false);

Expand Down

0 comments on commit 22ee5ba

Please sign in to comment.