Skip to content

Commit

Permalink
[Rendering] Reduced intensity of space light
Browse files Browse the repository at this point in the history
  • Loading branch information
PanosK92 committed Nov 13, 2023
1 parent fa449e7 commit b6c8fd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data/shaders/atmospheric_scattering.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ struct space

static float3 compute_star_color(float3 view_direction, float3 atmosphere_color, float time)
{
float probability = 8.0f;
float exposure = 200.0f;
float probability = 8.0f;
float exposure = 200.0f;
float flicker_speed = 0.35f;

float stars_noise = pow(clamp(noise(view_direction * 200.0f), 0.0f, 1.0f), probability) * exposure;
Expand All @@ -81,7 +81,7 @@ struct space
const float3 base_starlight_color = float3(0.05f, 0.05f, 0.1f); // soft, cool blue-gray tone
const float3 star_color = compute_star_color(view_direction, atmosphere_color, time);

return base_starlight_color + star_color;
return base_starlight_color * 0.5f + star_color;
};
};

Expand Down

0 comments on commit b6c8fd3

Please sign in to comment.