Adjust near/far clipping value.
This commit is contained in:
@@ -40,11 +40,15 @@ What's new
|
||||
Example
|
||||
-------
|
||||
|
||||

|
||||

|
||||
|
||||
tinyobjloader can successfully load 6M triangles Rungholt scene.
|
||||
http://graphics.cs.williams.edu/data/meshes.xml
|
||||
|
||||

|
||||
|
||||
* [examples/viewer/](examples/viewer) OpenGL .obj viewer
|
||||
|
||||
Use case
|
||||
--------
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user