aboutsummaryrefslogtreecommitdiff
path: root/src/client/sky.h
diff options
context:
space:
mode:
authornumzero <numzer0@yandex.ru>2020-11-22 16:41:36 +0300
committerlhofhansl <larsh@apache.org>2020-11-26 12:49:10 -0800
commit560627eef8c02f8201e639c75fcd5301d3a33077 (patch)
tree6e65bb2d3891ab2878017c00d0225c4a37750de1 /src/client/sky.h
parent3077afc0a2039cd4c8d64d9df62ed9b2ba6463dc (diff)
downloadminetest-560627eef8c02f8201e639c75fcd5301d3a33077.tar.gz
minetest-560627eef8c02f8201e639c75fcd5301d3a33077.tar.bz2
minetest-560627eef8c02f8201e639c75fcd5301d3a33077.zip
Reuse seed when updating stars
The only currently relevant parameter is scale which can now be changed without resetting stars position
Diffstat (limited to 'src/client/sky.h')
-rw-r--r--src/client/sky.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/sky.h b/src/client/sky.h
index 176545015..9f859f961 100644
--- a/src/client/sky.h
+++ b/src/client/sky.h
@@ -179,6 +179,7 @@ private:
bool m_default_tint = true;
+ u64 m_seed = 0;
irr_ptr<scene::SMeshBuffer> m_stars;
video::ITexture *m_sun_texture;