We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3047a22 + c72e214 commit b929548Copy full SHA for b929548
freespace2/freespace.cpp
@@ -710,7 +710,7 @@ void game_sunspot_process(float frametime)
710
for(idx=0; idx<n_lights; idx++) {
711
bool in_shadow = shipfx_eye_in_shadow(&Eye_position, Viewer_obj, idx);
712
713
- if (gr_lightshafts_enabled() && !in_shadow) {
+ if (!in_shadow) {
714
vec3d light_dir;
715
light_get_global_dir(&light_dir, idx);
716
@@ -719,8 +719,7 @@ void game_sunspot_process(float frametime)
719
float dot = vm_vec_dot( &light_dir, &Eye_matrix.vec.fvec )*0.5f+0.5f;
720
Sun_spot_goal += (float)pow(dot,85.0f);
721
}
722
- }
723
- if ( !in_shadow ) {
+
724
// draw the glow for this sun
725
stars_draw_sun_glow(idx);
726
0 commit comments