From 712be0b162237c21546119bf70fad3f191f0d4a7 Mon Sep 17 00:00:00 2001 From: Antoine Pilote Date: Mon, 17 Jul 2023 10:33:28 -0400 Subject: [PATCH] Fixed shadows --- Editor/Editor.cpp | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/Editor/Editor.cpp b/Editor/Editor.cpp index db9a8176..3d15e8d1 100644 --- a/Editor/Editor.cpp +++ b/Editor/Editor.cpp @@ -1,3 +1,5 @@ +#include + #include #include @@ -28,6 +30,9 @@ #include "src/Windows/FileSystemUI.h" #include +#include + + const std::string WindowTitle = "Nuake Editor"; @@ -184,9 +189,19 @@ int main(int argc, char* argv[]) camera = currentScene->m_EditorCamera; } - if (currentScene && !Nuake::Engine::IsPlayMode() && editor.ShouldDrawAxis()) + if (currentScene && !Nuake::Engine::IsPlayMode()) { - gizmoDrawer.DrawGizmos(currentScene); + glEnable(GL_LINE_SMOOTH); + + if (editor.ShouldDrawAxis()) + { + //gizmoDrawer.DrawAxis(currentScene); + } + + if (editor.ShouldDrawCollision()) + { + gizmoDrawer.DrawGizmos(currentScene); + } } } sceneFramebuffer->Unbind();