Skip to content

Commit

Permalink
Set alpha as alpha mult and only if actually required
Browse files Browse the repository at this point in the history
  • Loading branch information
BMagnu committed Apr 10, 2024
1 parent aa12ec7 commit c2d1b69
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 c2d1b69

Please sign in to comment.