summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlhofhansl <larsh@apache.org>2020-01-16 08:12:34 -0800
committerSmallJoker <SmallJoker@users.noreply.github.com>2020-01-16 17:12:34 +0100
commitcea4fd2b27bd266a3dcb8f9ddf9b434ba00c60ad (patch)
tree7b12f52757afc2d1dc30ab8ad125bd7df32333f9 /src
parentc3968006298bcce46e7659d11c6cbee56bbed4f0 (diff)
downloadminetest-cea4fd2b27bd266a3dcb8f9ddf9b434ba00c60ad.tar.gz
minetest-cea4fd2b27bd266a3dcb8f9ddf9b434ba00c60ad.tar.bz2
minetest-cea4fd2b27bd266a3dcb8f9ddf9b434ba00c60ad.zip
Increase star count to 1000 and decrease radius slightly (#9307)
* Increase star count to 1000 and decrease radius slightly. * Adjust star width.
Diffstat (limited to 'src')
-rw-r--r--src/client/sky.cpp2
-rw-r--r--src/client/sky.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/client/sky.cpp b/src/client/sky.cpp
index 346cd0642..b7f0b4c33 100644
--- a/src/client/sky.cpp
+++ b/src/client/sky.cpp
@@ -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())
diff --git a/src/client/sky.h b/src/client/sky.h
index 9cff20e08..2ab9a767c 100644
--- a/src/client/sky.h
+++ b/src/client/sky.h
@@ -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;