Skip to content

Commit 3349641

Browse files
committed
Boost the color of nebula bitmaps to make them visible again
The HDR changes made the nebula bitmaps a lot less visible. This fixes that by boosting the color of the bitmaps when they are rendered. I choose 3 since that gives a similar look to 3.7.4 but that can be further tweaked if desired. I also added two debug scopes to help track down where that stuff was actually rendered. This fixes #712.
1 parent 4321fd3 commit 3349641

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

code/nebula/neb.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -915,6 +915,8 @@ int frame_count = 0;
915915
float frame_avg;
916916
void neb2_render_player()
917917
{
918+
GR_DEBUG_SCOPE("Nebula render player");
919+
918920
vertex p, ptemp;
919921
int idx1, idx2, idx3;
920922
float alpha;
@@ -1075,6 +1077,7 @@ void neb2_render_player()
10751077
//g3_draw_rotated_bitmap(&p, fl_radians(Neb2_cubes[idx1][idx2][idx3].rot), Nd->prad, TMAP_FLAG_TEXTURED);
10761078
material mat_params;
10771079
material_set_unlit(&mat_params, Neb2_cubes[idx1][idx2][idx3].bmap, alpha + Neb2_cubes[idx1][idx2][idx3].flash, true, true);
1080+
mat_params.set_color_scale(3.f);
10781081
g3_render_rect_screen_aligned_rotated(&mat_params, &p, fl_radians(Neb2_cubes[idx1][idx2][idx3].rot), Nd->prad);
10791082
}
10801083
}

code/nebula/neblightning.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,8 @@ void nebl_set_storm(char *name)
322322
// render all lightning bolts
323323
void nebl_render_all()
324324
{
325+
GR_DEBUG_SCOPE("Nebula render all");
326+
325327
l_bolt *b;
326328
bolt_type *bi;
327329

0 commit comments

Comments
 (0)