Some fixes to slipstream (but slipstream is disabled by default anyway).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/switch_coordinate_system@4983 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
760b47fbae
commit
ce3578d1c1
@ -108,8 +108,8 @@ void SlipStream::createMesh(const video::SMaterial &material)
|
||||
// Offset every 2nd circle by one half segment to increase
|
||||
// the number of planes so it looks better.
|
||||
v.Pos.X = sin((i+(j%2)*0.5f)*f)*radius[j];
|
||||
v.Pos.Y = distance[j];
|
||||
v.Pos.Z = -cos((i+(j%2)*0.5f)*f)*radius[j];
|
||||
v.Pos.Y = -cos((i+(j%2)*0.5f)*f)*radius[j];
|
||||
v.Pos.Z = distance[j];
|
||||
v.Color = video::SColor(alphas[j], alphas[j], alphas[j], alphas[j]);
|
||||
v.TCoords.X = curr_distance/length;
|
||||
v.TCoords.Y = (float)(i-first_segment)/(last_segment-first_segment);
|
||||
|
Loading…
x
Reference in New Issue
Block a user