From 8c3a0a92002e3d03d0d2f1e04c3b95d37796f739 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Leclercq?= Date: Sun, 14 Nov 2021 19:54:30 +0100 Subject: [PATCH] Graphics/Camera: Update default values (according to projecting type) --- include/Nazara/Graphics/Camera.inl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/Nazara/Graphics/Camera.inl b/include/Nazara/Graphics/Camera.inl index 3ab53ff10..212c83384 100644 --- a/include/Nazara/Graphics/Camera.inl +++ b/include/Nazara/Graphics/Camera.inl @@ -11,14 +11,14 @@ namespace Nz inline Camera::Camera(const RenderTarget* renderTarget, ProjectionType projectionType) : m_renderTarget(nullptr), m_clearColor(Color::Black), - m_fov(70.f), + m_fov(90.f), m_projectionType(projectionType), m_targetRegion(0.f, 0.f, 1.f, 1.f), m_viewport(0, 0, 0, 0), m_renderMask(0xFFFFFFFF), m_size(-1.f, -1.f), - m_zFar(1000.f), - m_zNear(1.f) + m_zFar((projectionType == ProjectionType::Perspective) ? 1000.f : 1.f), + m_zNear((projectionType == ProjectionType::Perspective) ? 1.f : -1.f) { UpdateTarget(renderTarget); }