mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-04 11:35:06 +03:00
Added smooth line
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user