[Fix] Then Allanis Fixeth Frustum, then the Earth appeared! And it was gooood!

This commit is contained in:
Allanis 2017-11-17 21:03:49 +00:00
parent 7ef8b7dd51
commit 7b58a4c76c

View File

@ -61,9 +61,8 @@ void WorldView::Draw3D(void) {
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
/* Wth did I give these functions large names for.. :/ */
float fracH = L3D::GetScrHeight() * 0.5f / L3D::GetScrWidth();
glFrustum(-0.5, 0.5, -fracH, fracH, 1.0f, 1000.0f);
//glDepthRange(-10, -100000); /* Uh, What?! */
float fracH = L3D::GetScrHeight() / (float)L3D::GetScrWidth();
glFrustum(-1, 1, -fracH, fracH, 1.0f, 10000.0f);
glMatrixMode(GL_MODELVIEW);
glClearColor(0, 0, 0, 0);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);