projects
/
grGL.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed zNear, zFar values for gluPerspective.
[grGL.git]
/
src
/
main.c
diff --git
a/src/main.c
b/src/main.c
index 7825a2dca9d796dbb15712fbd664bbc372a6f990..e79ae09266192d8a624d89431eb4da1bc8a290ff 100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-55,7
+55,7
@@
void on_reshape(int w, int h)
// Set up the Projection transformation
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
// Set up the Projection transformation
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
- gluPerspective(90, (GLfloat)w/(GLfloat)h, 0.0
, 5
.0);
+ gluPerspective(90, (GLfloat)w/(GLfloat)h, 0.0
001, 1000
.0);
// Switch to Model/view transformation for drawing objects
glMatrixMode(GL_MODELVIEW);
// Switch to Model/view transformation for drawing objects
glMatrixMode(GL_MODELVIEW);