]> git.lizzy.rs Git - minetest.git/commitdiff
Increase star count to 1000 and decrease radius slightly (#9307)
authorlhofhansl <larsh@apache.org>
Thu, 16 Jan 2020 16:12:34 +0000 (08:12 -0800)
committerSmallJoker <SmallJoker@users.noreply.github.com>
Thu, 16 Jan 2020 16:12:34 +0000 (17:12 +0100)
* Increase star count to 1000 and decrease radius slightly.
* Adjust star width.

src/client/sky.cpp
src/client/sky.h

index 346cd0642cecbb4d6422483476cad2e9d9b0f5d4..b7f0b4c337e3f09963e427bdf5fb8936b699a578 100644 (file)
@@ -269,7 +269,7 @@ void Sky::render()
                                (0.25 - fabs(wicked_time_of_day < 0.5 ?
                                wicked_time_of_day : (1.0 - wicked_time_of_day))) * 20));
                        float f = starbrightness;
-                       float d = 0.007 / 2;
+                       float d = 0.006f / 2.0f;
                        video::SColor starcolor(255, f * 90, f * 90, f * 90);
                        // Stars are only drawn when brighter than skycolor
                        if (starcolor.getBlue() < m_skycolor.getBlue())
index 9cff20e0870e72f740c59222903984645f21d14c..2ab9a767c8b0b623420bb8ed22505bb2944b7992 100644 (file)
@@ -25,7 +25,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #pragma once
 
 #define SKY_MATERIAL_COUNT 5
-#define SKY_STAR_COUNT 200
+#define SKY_STAR_COUNT 1000
 
 class ITextureSource;