Skip to content

Commit 17af6ff

Browse files
authored
Merge pull request #761 from twpol/bugfix/persistent-clouds
fix: Allow 100% cloud-free skys by making 0% overcast = 0% clouds
2 parents 0db4bb3 + f6a3aca commit 17af6ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/RunActivity/Viewer3D/Shaders.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ public float Overcast
384384
set
385385
{
386386
if (value < 0.2f)
387-
overcast.SetValue(new Vector4(4 * value + 0.2f, 0.0f, 0.0f, 0.0f));
387+
overcast.SetValue(new Vector4(5 * value, 0.0f, 0.0f, 0.0f));
388388
else
389389
// Coefficients selected by author to achieve the desired appearance
390390
overcast.SetValue(new Vector4(MathHelper.Clamp(2 * value - 0.4f, 0, 1), 1.25f - 1.125f * value, 1.15f - 0.75f * value, 1f));

0 commit comments

Comments
 (0)