Skip to content

Commit

Permalink
Merge pull request #1 from BMagnu/skybox_alpha
Browse files Browse the repository at this point in the history
Fix Skybox Alpha Setting
  • Loading branch information
Goober5000 authored Apr 10, 2024
2 parents aa12ec7 + c2d1b69 commit c96f1af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/starfield/starfield.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2307,7 +2307,8 @@ void stars_draw_background()
}

// draw the model at the player's eye with no z-buffering
render_info.set_alpha(Nmodel_alpha);
if (Nmodel_alpha < 1.0f)
render_info.set_alpha_mult(Nmodel_alpha);
render_info.set_flags(Nmodel_flags | MR_SKYBOX);

model_render_immediate(&render_info, Nmodel_num, Nmodel_instance_num, &Nmodel_orient, &Eye_position, MODEL_RENDER_ALL, false);
Expand Down

0 comments on commit c96f1af

Please sign in to comment.