remove line thickness from the grid, add ambient light, fix lightmap texture resize

This commit is contained in:
2019-01-19 17:32:19 +01:00
parent d8c8a4b7ed
commit 7980fd4c37
8 changed files with 41 additions and 24 deletions

View File

@@ -73,13 +73,10 @@ 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);
//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);
}
}