Commit af2520f5 authored by Nicolas P. Rougier's avatar Nicolas P. Rougier

Merge pull request #34 from kelden/master

Fixed mat4_set_frustum clipping issue.
parents c19c0090 6bc83d5e
......@@ -161,14 +161,14 @@ mat4_set_frustum( mat4 *self,
mat4_set_zero( self );
self->m00 = +2.0*znear/(right-left);
self->m00 = (2.0*znear)/(right-left);
self->m20 = (right+left)/(right-left);
self->m11 = +2.0*znear/(top-bottom);
self->m31 = (top+bottom)/(top-bottom);
self->m11 = (2.0*znear)/(top-bottom);
self->m21 = (top+bottom)/(top-bottom);
self->m22 = -(zfar+znear)/(zfar-znear);
self->m32 = -2.0*znear/(zfar-znear);
self->m32 = -(2.0*zfar*znear)/(zfar-znear);
self->m23 = -1.0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment