File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11project (' galaxy_visualization_raylib' , ' c' ,
2- version : ' 0.5.0 ' ,
2+ version : ' 0.5.1 ' ,
33 default_options : [
44 ' c_std=c99' ,
55
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ out vec4 finalColor;
1010
1111const float THRESHOLD = 0.2 ;
1212const float SOFT_KNEE = 0.5 ;
13- const float INTENSITY = 3 .5 ;
14- const float KERNEL_SCALE = 24 .0 ;
13+ const float INTENSITY = 4 .5 ;
14+ const float KERNEL_SCALE = 32 .0 ;
1515
1616vec3 sampleBright(vec2 uv)
1717{
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ app_update(app_state_t *app_state, f64 dt)
6262 CloseWindow ();
6363 }
6464
65+ draw_data_t prev_data = app_state -> data_to_draw ;
6566 if (IsKeyPressed (KEY_ONE ))
6667 {
6768 app_state -> data_to_draw = DRAW_DATA_A ;
@@ -82,6 +83,18 @@ app_update(app_state_t *app_state, f64 dt)
8283 app_state -> data_to_draw = DRAW_DATA_REDSHIFT ;
8384 }
8485
86+ if (app_state -> data_to_draw != prev_data )
87+ {
88+ bool prev_course = (prev_data == DRAW_DATA_A || prev_data == DRAW_DATA_B || prev_data == DRAW_DATA_ALL );
89+ bool next_course = (app_state -> data_to_draw == DRAW_DATA_A || app_state -> data_to_draw == DRAW_DATA_B || app_state -> data_to_draw == DRAW_DATA_ALL );
90+ if (prev_course != next_course )
91+ {
92+ app_state -> is_paused = false;
93+ app_state -> main_camera .fovy = CAMERA_FOV ;
94+ app_state -> camera_zoom = CAMERA_INITIAL_ZOOM ;
95+ }
96+ }
97+
8598 if (IsKeyPressed (KEY_R ))
8699 {
87100 app_state -> is_paused = !app_state -> is_paused ;
You can’t perform that action at this time.
0 commit comments