Skip to content

Commit

Permalink
opengl: better projection near/far values
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Guillem <[email protected]>
  • Loading branch information
robUx4 authored and tguillem committed Nov 10, 2016
1 parent 4438dab commit b5d1387
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/video_output/opengl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b5d1387

Please sign in to comment.