From 301b578d288794ce75ef525cebfd99574e05da43 Mon Sep 17 00:00:00 2001 From: Antoine Pilote Date: Sun, 16 Jul 2023 13:46:58 -0400 Subject: [PATCH] Added smooth line --- Editor/Editor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Editor/Editor.cpp b/Editor/Editor.cpp index 8f12d1d0..8384f656 100644 --- a/Editor/Editor.cpp +++ b/Editor/Editor.cpp @@ -198,6 +198,9 @@ int main(int argc, char* argv[]) float farZ = 1000.0f; gizmoDrawer.GetLineShader().SetUniformTex("u_Depth", depthTexture.get(), 3); gizmoDrawer.GetLineShader().SetUniformVec2("u_Resolution", depthTexture->GetSize()); + glEnable(GL_LINE_SMOOTH); + glEnable(GL_BLEND); + glDepthRange(0.1f, 1000.0f); if (editor.ShouldDrawAxis()) { gizmoDrawer.DrawAxis(currentScene);