Adjust near/far clipping value.

This commit is contained in:
Syoyo Fujita
2016-05-12 02:57:41 +09:00
parent 48839e3b07
commit bbb6aeff6a
2 changed files with 6 additions and 2 deletions

View File

@@ -40,11 +40,15 @@ What's new
Example
-------
![Rungholt](https://github.com/syoyo/tinyobjloader/blob/master/images/rungholt.jpg?raw=true)
![Rungholt](images/rungholt.jpg)
tinyobjloader can successfully load 6M triangles Rungholt scene.
http://graphics.cs.williams.edu/data/meshes.xml
![](images/sanmugel.png)
* [examples/viewer/](examples/viewer) OpenGL .obj viewer
Use case
--------

View File

@@ -198,7 +198,7 @@ void reshapeFunc(GLFWwindow* window, int w, int h)
glViewport(0, 0, w, h);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluPerspective(45.0, (float)w / (float)h, 0.1f, 1000.0f);
gluPerspective(45.0, (float)w / (float)h, 0.01f, 100.0f);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();