Fixed: FLATSPRITES were drawn backwards.

This commit is contained in:
Major Cooke 2016-10-04 10:04:33 -05:00
parent 5d99e7dafe
commit 0e9f808c8a

View file

@ -138,10 +138,10 @@ void GLSprite::CalculateVertices(FVector3 *v)
mat.Rotate(0, 1, 0, - actor->Angles.Roll.Degrees); mat.Rotate(0, 1, 0, - actor->Angles.Roll.Degrees);
mat.Translate(-x, -z, -y); mat.Translate(-x, -z, -y);
} }
v[0] = mat * FVector3(x1, z, y2); v[0] = mat * FVector3(x2, z, y2);
v[1] = mat * FVector3(x2, z, y2); v[1] = mat * FVector3(x1, z, y2);
v[2] = mat * FVector3(x1, z, y1); v[2] = mat * FVector3(x2, z, y1);
v[3] = mat * FVector3(x2, z, y1); v[3] = mat * FVector3(x1, z, y1);
return; return;
} }