Skip to content

Commit

Permalink
Fixed vsg::orthogaphic(..) depth range
Browse files Browse the repository at this point in the history
  • Loading branch information
robertosfield committed Oct 3, 2023
1 parent b79a2e0 commit becb279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/vsg/maths/transform.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ namespace vsg
return t_mat4<T>(2.0 / (right - left), 0.0, 0.0, 0.0,
0.0, 2.0 / (bottom - top), 0.0, 0.0,
0.0, 0.0, 1.0 / (zFar - zNear), 0.0,
-(right + left) / (right - left), -(bottom + top) / (bottom - top), zFar / (zFar - zNear), 1.0);
-(right + left) / (right - left), -(bottom + top) / (bottom - top), 0.5 - (zNear+zFar) / (2.0*(zFar - zNear)), 1.0);
}

template<typename T>
Expand Down

0 comments on commit becb279

Please sign in to comment.