Skip to content
Permalink
Browse files

Sky: Fix sunrisebg texture motion (#4199)

Top of texture no longer shows above horizon during night and day
  • Loading branch information...
paramat authored and Zeno- committed Jun 8, 2016
1 parent c7297e5 commit 3ef71edd818b15ed2ba2f184b8a2dc4ee6198042
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);

0 comments on commit 3ef71ed

Please sign in to comment.
You can’t perform that action at this time.