Skip to content
Snippets Groups Projects
Commit 7e1c2cf4 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Change mix of sky combined haze to remove a second sqrt for smoother gradient

parent 82412dbb
Branches
Tags
No related merge requests found
...@@ -150,7 +150,7 @@ void main() ...@@ -150,7 +150,7 @@ void main()
combined_haze = sqrt(combined_haze); // less atmos opacity (more transparency) below clouds combined_haze = sqrt(combined_haze); // less atmos opacity (more transparency) below clouds
// At horizon, blend high altitude sky color towards the darker color below the clouds // At horizon, blend high altitude sky color towards the darker color below the clouds
color += (add_below_cloud - color) * (1. - sqrt(combined_haze)); color += (add_below_cloud - color) * (1. - combined_haze);
// Haze color above cloud // Haze color above cloud
vary_HazeColor = color; vary_HazeColor = color;
......
...@@ -142,7 +142,7 @@ void main() ...@@ -142,7 +142,7 @@ void main()
combined_haze = sqrt(combined_haze); // less atmos opacity (more transparency) below clouds combined_haze = sqrt(combined_haze); // less atmos opacity (more transparency) below clouds
// At horizon, blend high altitude sky color towards the darker color below the clouds // At horizon, blend high altitude sky color towards the darker color below the clouds
color += (additiveColorBelowCloud - color) * (1. - sqrt(combined_haze)); color += (additiveColorBelowCloud - color) * (1. - combined_haze);
// Haze color above cloud // Haze color above cloud
vary_HazeColor = color; vary_HazeColor = color;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment