kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #26067
[PATCH] Use a symmetrical clip plane for the orthographic projection
---
3d-viewer/3d_rendering/ccamera.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/3d-viewer/3d_rendering/ccamera.cpp b/3d-viewer/3d_rendering/ccamera.cpp
index 084c601..3124757 100644
--- a/3d-viewer/3d_rendering/ccamera.cpp
+++ b/3d-viewer/3d_rendering/ccamera.cpp
@@ -176,7 +176,7 @@ void CCAMERA::rebuildProjection()
case PROJECTION_ORTHO:
- m_frustum.nearD = 0.01f;
+ m_frustum.nearD = -m_frustum.farD; // Use a symmetrical clip plane for ortho projection
const float orthoReductionFactor = m_zoom / 75.0f;
Follow ups