Skip to content

Commit

Permalink
Sky drawing updates
Browse files Browse the repository at this point in the history
  • Loading branch information
dashodanger committed Oct 24, 2024
1 parent e090562 commit 7bb7461
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source_files/edge/r_sky.cc
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,11 @@ static void SetupSkyMatrices(void)
glLoadIdentity();

if (fliplevels.d_)
glFrustum(-view_x_slope * renderer_near_clip.f_, view_x_slope * renderer_near_clip.f_,
glFrustum(view_x_slope * renderer_near_clip.f_, -view_x_slope * renderer_near_clip.f_,
-view_y_slope * renderer_near_clip.f_, view_y_slope * renderer_near_clip.f_, renderer_near_clip.f_,
renderer_far_clip.f_ * 4.0);
else
glFrustum(view_x_slope * renderer_near_clip.f_, -view_x_slope * renderer_near_clip.f_,
glFrustum(-view_x_slope * renderer_near_clip.f_, view_x_slope * renderer_near_clip.f_,
-view_y_slope * renderer_near_clip.f_, view_y_slope * renderer_near_clip.f_, renderer_near_clip.f_,
renderer_far_clip.f_ * 4.0);

Expand All @@ -272,7 +272,7 @@ static void SetupSkyMatrices(void)
glLoadIdentity();

glRotatef(270.0f - epi::DegreesFromBAM(view_vertical_angle), 1.0f, 0.0f, 0.0f);
glRotatef(epi::DegreesFromBAM(view_angle), 0.0f, 0.0f, 1.0f);
glRotatef(-epi::DegreesFromBAM(view_angle), 0.0f, 0.0f, 1.0f);

if (current_sky_stretch == kSkyStretchStretch)
glTranslatef(0.0f, 0.0f,
Expand Down

0 comments on commit 7bb7461

Please sign in to comment.