]> Pileus Git - grits/commitdiff
Improve Z-range in OpenGL
authorAndy Spencer <andy753421@gmail.com>
Mon, 26 Apr 2010 04:52:47 +0000 (04:52 +0000)
committerAndy Spencer <andy753421@gmail.com>
Mon, 26 Apr 2010 04:52:47 +0000 (04:52 +0000)
This keeps radars of interfering with each other quite so badly

src/gis-opengl.c

index 694a33e44b4a937537c874b6e314be1da15d2784..dc32fa8de4e4f188e77d19399ce0b7dd342a84e2 100644 (file)
@@ -375,7 +375,7 @@ static gboolean on_configure(GisOpenGL *opengl, GdkEventConfigure *event, gpoint
        glMatrixMode(GL_PROJECTION);
        glLoadIdentity();
        double ang = atan(height/FOV_DIST);
-       gluPerspective(rad2deg(ang)*2, width/height, 1, 10*EARTH_R);
+       gluPerspective(rad2deg(ang)*2, width/height, 1000, 10*EARTH_R);
 
 #ifndef ROAM_DEBUG
        g_mutex_lock(opengl->sphere_lock);