]> git.tdb.fi Git - libs/gl.git/commitdiff
Set a sane default value for ground albedo in Sky::Planet
authorMikko Rasa <tdb@tdb.fi>
Sat, 16 Oct 2021 16:09:47 +0000 (19:09 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 16 Oct 2021 16:09:47 +0000 (19:09 +0300)
source/effects/sky.cpp

index 158606f845305dcbef7f206fc706328faf01bfe9..855509d15a3c1affb3dcc61dd41986f4decd3ae4 100644 (file)
@@ -163,7 +163,8 @@ Sky::Planet::Planet():
        ozone_band_center(1e4f),
        ozone_band_extent(1e2f),
        atmosphere_thickness(2e4f),
-       planet_radius(1e6f)
+       planet_radius(1e6f),
+       ground_albedo(0.2f)
 { }
 
 Sky::Planet Sky::Planet::earth()