combobox selected element alignment, brush preview
This commit is contained in:
@@ -378,7 +378,7 @@ void NodeStrokePreview::draw_stroke()
|
||||
|
||||
// copy background color to tex2
|
||||
ShaderManager::use(kShader::Checkerboard);
|
||||
ShaderManager::u_int(kShaderUniform::Colorize, b->m_tip_mix > 0.f);
|
||||
ShaderManager::u_int(kShaderUniform::Colorize, b->m_tip_mix > 0.f || b->m_blend_mode != 0);
|
||||
float aspect = size.x / size.y;
|
||||
ShaderManager::u_mat4(kShaderUniform::MVP, glm::ortho(-.5f, .5f, -.5f / aspect, .5f / aspect, -1.f, 1.f));
|
||||
m_plane.draw_fill();
|
||||
|
||||
Reference in New Issue
Block a user