Skip to content

Commit d2ad397

Browse files
committed
Closes #830
1 parent 18c67fe commit d2ad397

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Interface/Modules/Render/ES/SRCamera.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class SRCamera
8383
/// Default camera settings
8484
/// @{
8585
static float getDefaultFOVY() {return 32.0f * (glm::pi<float>() / 180.0f);}
86-
static float getDefaultZNear() {return 0.1f;}
86+
static float getDefaultZNear() {return 0.001f;}
8787
static float getDefaultZFar() {return 100000.0f;}
8888
/// @}
8989

src/Interface/Modules/Render/ES/SRInterface.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ namespace SCIRun {
180180
float aspect = static_cast<float>(width) / static_cast<float>(height);
181181

182182
float perspFOVY = 0.59f;
183-
float perspZNear = 1.0f;
184-
float perspZFar = 2000.0f;
183+
float perspZNear = 0.01f;
184+
float perspZFar = 20000.0f;
185185
glm::mat4 proj = glm::perspective(perspFOVY, aspect, perspZNear, perspZFar);
186186
cam->data.setProjection(proj, perspFOVY, aspect, perspZNear, perspZFar);
187187

0 commit comments

Comments
 (0)