projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7297e5
)
Sky: Fix sunrisebg texture motion (#4199)
author
Paramat
<paramat@users.noreply.github.com>
Wed, 8 Jun 2016 06:43:27 +0000
(07:43 +0100)
committer
Zeno-
<kde.psych@gmail.com>
Wed, 8 Jun 2016 06:43:27 +0000
(16:43 +1000)
Top of texture no longer shows above horizon during night and day
src/sky.cpp
patch
|
blob
|
history
diff --git
a/src/sky.cpp
b/src/sky.cpp
index 682ff05e3f425a6a25f2d19513fbe1d5d9d70ea7..4ee750c556c551d268ff7f982a511a65fbb44b6e 100644
(file)
--- 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.2
2
;
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);