summaryrefslogtreecommitdiff
path: root/src/sky.cpp
diff options
context:
space:
mode:
authorParamat <paramat@users.noreply.github.com>2016-06-08 07:43:27 +0100
committerZeno- <kde.psych@gmail.com>2016-06-08 16:43:27 +1000
commit3ef71edd818b15ed2ba2f184b8a2dc4ee6198042 (patch)
treefc6a6e30590879b598872d16944c74214817cb47 /src/sky.cpp
parentc7297e552be9c265eba77e58dbd8f69be23b4131 (diff)
downloadminetest-3ef71edd818b15ed2ba2f184b8a2dc4ee6198042.tar.gz
minetest-3ef71edd818b15ed2ba2f184b8a2dc4ee6198042.tar.bz2
minetest-3ef71edd818b15ed2ba2f184b8a2dc4ee6198042.zip
Sky: Fix sunrisebg texture motion (#4199)
Top of texture no longer shows above horizon during night and day
Diffstat (limited to 'src/sky.cpp')
-rw-r--r--src/sky.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sky.cpp b/src/sky.cpp
index 682ff05e3..4ee750c55 100644
--- a/src/sky.cpp
+++ b/src/sky.cpp
@@ -239,7 +239,7 @@ void Sky::render()
float a = easeCurve(MYMAX(0, MYMIN(1, a_)));
//std::cerr<<"a_="<<a_<<" a="<<a<<std::endl;
video::SColor c(255,255,255,255);
- float y = -(1.0 - a) * 0.2;
+ float y = -(1.0 - a) * 0.22;
vertices[0] = video::S3DVertex(-1,-0.05+y,-1, 0,0,1, c, t, t);
vertices[1] = video::S3DVertex( 1,-0.05+y,-1, 0,0,1, c, o, t);
vertices[2] = video::S3DVertex( 1, 0.2+y,-1, 0,0,1, c, o, o);