Skip to content

Commit 3ef71ed

Browse files
paramatZeno-
authored andcommittedJun 8, 2016
Sky: Fix sunrisebg texture motion (#4199)
Top of texture no longer shows above horizon during night and day
1 parent c7297e5 commit 3ef71ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎src/sky.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ void Sky::render()
239239
float a = easeCurve(MYMAX(0, MYMIN(1, a_)));
240240
//std::cerr<<"a_="<<a_<<" a="<<a<<std::endl;
241241
video::SColor c(255,255,255,255);
242-
float y = -(1.0 - a) * 0.2;
242+
float y = -(1.0 - a) * 0.22;
243243
vertices[0] = video::S3DVertex(-1,-0.05+y,-1, 0,0,1, c, t, t);
244244
vertices[1] = video::S3DVertex( 1,-0.05+y,-1, 0,0,1, c, o, t);
245245
vertices[2] = video::S3DVertex( 1, 0.2+y,-1, 0,0,1, c, o, o);

0 commit comments

Comments
 (0)
Please sign in to comment.