add ComboBox node, add blend modes button in stroke panel, move brush shader code to ShaderManager and avoid the same shader being recompiled many times
This commit is contained in:
@@ -230,9 +230,9 @@ void ui::Canvas::stroke_draw()
|
||||
if (m_use_instanced)
|
||||
{
|
||||
glEnable(GL_BLEND);
|
||||
m_mesh.shader.use();
|
||||
m_mesh.shader.u_vec4(kShaderUniform::Col, m_brush.m_tip_color);
|
||||
m_mesh.shader.u_int(kShaderUniform::Tex, 0);
|
||||
ShaderManager::use(kShader::BrushStroke);
|
||||
ShaderManager::u_vec4(kShaderUniform::Col, m_brush.m_tip_color);
|
||||
ShaderManager::u_int(kShaderUniform::Tex, 0);
|
||||
m_mesh.draw(samples, ortho_proj);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user