remove line thickness from the grid, add ambient light, fix lightmap texture resize
This commit is contained in:
@@ -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, ¤t_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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user