improve grid panel

This commit is contained in:
2019-01-19 15:21:37 +01:00
parent 886ab1f29b
commit d8c8a4b7ed
7 changed files with 100 additions and 30 deletions

View File

@@ -73,10 +73,13 @@ void NodeBorder::draw()
if (m_thinkness > 0 && m_border_color.a > 0.f)
{
float current_width = 1;
glGetFloatv(GL_LINE_WIDTH, &current_width);
glLineWidth(m_thinkness);
ShaderManager::u_vec4(kShaderUniform::Col, m_border_color);
m_border_color.a < 1.f ? glEnable(GL_BLEND) : glDisable(GL_BLEND);
m_plane.draw_stroke();
glLineWidth(current_width);
glDisable(GL_BLEND);
}
}