]> Pileus Git - grits/blobdiff - src/grits-opengl.c
Increase camera angle to 60 degrees
[grits] / src / grits-opengl.c
index 5bf1710b9f172d1f0b55e6b6e7979e58d4eac401..1b2cce95e362c4fc6c08978f298a3b27b61e2b35 100644 (file)
@@ -67,7 +67,7 @@ static void _set_visuals(GritsOpenGL *opengl)
 
        double width  = GTK_WIDGET(opengl)->allocation.width;
        double height = GTK_WIDGET(opengl)->allocation.height;
-       double ang    = atan(height/FOV_DIST);
+       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