Commit b5d1387d authored by Steve Lhomme's avatar Steve Lhomme Committed by Thomas Guillem

opengl: better projection near/far values

Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent 4438dabb
......@@ -1070,8 +1070,8 @@ static void getZoomMatrix(float zoom, GLfloat matrix[static 16]) {
/* perspective matrix see https://www.opengl.org/sdk/docs/man2/xhtml/gluPerspective.xml */
static void getProjectionMatrix(float sar, GLfloat matrix[static 16]) {
float zFar = 10;
float zNear = 0.1;
float zFar = 1000;
float zNear = 0.01;
float fovy = (float) M_PI / 3;
float f = 1 / tan(fovy / 2);
......
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