[grits] Update depth buffer resolution



commit 8a508b43a6c1498cdfb181cc8580fafa1e07ff89
Author: Andy Spencer <andy753421 gmail com>
Date:   Mon Feb 11 06:05:46 2013 +0000

    Update depth buffer resolution

 src/grits-opengl.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/grits-opengl.c b/src/grits-opengl.c
index 2bd0082..9fbe461 100644
--- a/src/grits-opengl.c
+++ b/src/grits-opengl.c
@@ -73,9 +73,9 @@ static void _set_projection(GritsOpenGL *opengl)
        double width  = alloc.width;
        double height = alloc.height;
        double ang    = atan((height/2)/FOV_DIST)*2;
-       double atmos  = 100000;
-       double near   = MAX(elev*0.75 - atmos, 50); // View 100km of atmosphere
-       double far    = elev + 2*EARTH_R + atmos;   // on both sides of the earth
+       double atmos  = 10000;
+       double near   = MAX(elev*0.75 - atmos, 50);  // View 100km of atmosphere
+       double far    = elev + EARTH_R*1.25 + atmos; // a bit past the cenrt of the earth
 
        glViewport(0, 0, width, height);
        gluPerspective(rad2deg(ang), width/height, near, far);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]