Gave back to suns their coronas.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1619 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Nikos Barkas 2008-05-06 16:18:56 +00:00
parent 293e4693aa
commit 1a04936501

View File

@ -158,6 +158,7 @@ OOMatrix OOMatrixForBillboard(Vector bbPos, Vector eyePos)
Vector v0, v1, v2, arbv;
v0 = vector_subtract(bbPos, eyePos);
v0 = vector_normal_or_fallback(v0, kBasisZVector);
// arbitrary axis - not aligned with v0
if (EXPECT_NOT(v0.x == 0.0 && v0.y == 0.0)) arbv = kBasisXVector;