Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-07-14 13:20:39 +0000
committerStijn Buys <ingar@osirion.org>2008-07-14 13:20:39 +0000
commit4ac9893545982f0de5c16e285a136118199a0a79 (patch)
tree4dfcd1bab0da88841f9c83ee8e402af013031d75 /src/render/camera.cc
parentb75d57ad691c2f1612ee430c2805d541703971de (diff)
better skysphere rendering
Diffstat (limited to 'src/render/camera.cc')
-rw-r--r--src/render/camera.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/render/camera.cc b/src/render/camera.cc
index 6c9a115..a55038d 100644
--- a/src/render/camera.cc
+++ b/src/render/camera.cc
@@ -302,18 +302,7 @@ void Camera::draw(float seconds)
}
}
- // Change to the projection matrix and set our viewing volume.
- gl::matrixmode(GL_PROJECTION);
- gl::loadidentity();
-
- const float frustum_size = 0.5f;
- const float frustum_front = 1.0f;
distance += frustum_front;
- gl::frustum(-frustum_size*aspect(), frustum_size*aspect(), -frustum_size, frustum_size, frustum_front, 1024.0f);
-
- // model view
- gl::matrixmode(GL_MODELVIEW);
- gl::loadidentity();
// map world coordinates to opengl coordinates
gl::rotate(90.0f, 0, 1.0, 0);