Added smooth line

This commit is contained in:
Antoine Pilote
2023-07-16 13:46:58 -04:00
parent eef733aece
commit 301b578d28

View File

@@ -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);