Sky: Fix sunrisebg texture motion (#4199)

Top of texture no longer shows above horizon during night and day
master
Paramat 2016-06-08 07:43:27 +01:00 committed by Zeno-
parent c7297e552b
commit 3ef71edd81
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ void Sky::render()
float a = easeCurve(MYMAX(0, MYMIN(1, a_))); float a = easeCurve(MYMAX(0, MYMIN(1, a_)));
//std::cerr<<"a_="<<a_<<" a="<<a<<std::endl; //std::cerr<<"a_="<<a_<<" a="<<a<<std::endl;
video::SColor c(255,255,255,255); 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[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[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); vertices[2] = video::S3DVertex( 1, 0.2+y,-1, 0,0,1, c, o, o);