mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-31 23:02:06 +00:00
refine the black color's rendering behavior
let the black color not hard to see at the 3d page Change-Id: Id739a589c2f28781e646fb59e50ed270eb2f0e91
This commit is contained in:
@@ -1064,7 +1064,10 @@ void TriangleSelectorPatch::render(ImGuiWrapper* imgui)
|
||||
size_t color_idx = (size_t)patch.type;
|
||||
color = m_ebt_colors[color_idx];
|
||||
}
|
||||
shader->set_uniform("uniform_color", color);
|
||||
//to make black not too hard too see
|
||||
std::array<float, 4> new_color = adjust_color_for_rendering(color);
|
||||
shader->set_uniform("uniform_color", new_color);
|
||||
//shader->set_uniform("uniform_color", color);
|
||||
this->render(buffer_idx);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user