Skip to content

Commit

Permalink
Fix what appears to be a bug in the 'look at' implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig S. Bosma committed Feb 16, 2011
1 parent e350ebc commit 112615a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MC3DMatrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ void mat4SubMatrx(mat4 mr, mat3 *mb, int i, int j) {
}

#pragma mark -
#pragma mark Matrix Transpose
#pragma mark Matrix Projections and Views

mat4 mat4CreateFrustum(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat near, GLfloat far) {
mat4 ret;
Expand Down Expand Up @@ -346,7 +346,7 @@ mat4 mat4LookAt(vec3 position, vec3 target, vec3 up) {
position4.x = position.x;
position4.y = position.y;
position4.z = position.z;
position4.w = 0.f;
position4.w = 1.f;
vec4 positionPrime = mat4MultiplyVec4(ret, position4);
mat4Transpose(&ret);
ret.w = positionPrime;
Expand Down

0 comments on commit 112615a

Please sign in to comment.