Browse Source

mtxLookAt: Fixed up.

Бранимир Караџић 2 years ago
parent
commit
e65bb28033
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/math.cpp

+ 1 - 1
src/math.cpp

@@ -260,7 +260,7 @@ namespace bx
 			right = normalize(uxv);
 		}
 
-		up = cross(right, view);
+		up = cross(view, right);
 
 		_result[ 0] = right.x;
 		_result[ 1] = up.x;