increased range of GLRenderer bounds

Thu, 04 Jan 2018 19:24:40 +0200

author
Santeri Piippo
date
Thu, 04 Jan 2018 19:24:40 +0200
changeset 1214
fed9aacd1fab
parent 1213
f2827b16f941
child 1215
77a0270352a3

increased range of GLRenderer bounds

src/glRenderer.cpp file | annotate | diff | comparison | revisions
--- a/src/glRenderer.cpp	Thu Jan 04 19:21:46 2018 +0200
+++ b/src/glRenderer.cpp	Thu Jan 04 19:24:40 2018 +0200
@@ -375,7 +375,7 @@
 	glViewport (0, 0, w, h);
 	glMatrixMode (GL_PROJECTION);
 	glLoadIdentity();
-	gluPerspective (45.0f, (double) w / (double) h, 1.0f, 10000.0f);
+	gluPerspective (45.0f, (double) w / (double) h, 1.0f, 40000.0f);
 	glMatrixMode (GL_MODELVIEW);
 }
 
@@ -404,7 +404,7 @@
 		glPushMatrix();
 
 		glLoadIdentity();
-		glOrtho (-m_virtualWidth, m_virtualWidth, -m_virtualHeight, m_virtualHeight, -100.0f, 100.0f);
+		glOrtho (-m_virtualWidth, m_virtualWidth, -m_virtualHeight, m_virtualHeight, -200.0f, 200.0f);
 		glTranslatef (panning (X), panning (Y), 0.0f);
 
 		if (camera() != EFrontCamera and camera() != EBackCamera)

mercurial