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:
lane.wei 2022-08-09 15:35:46 +08:00 committed by Lane.Wei
parent 7dee2d8a80
commit 2f849a86b8
3 changed files with 61 additions and 15 deletions

View file

@ -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);
}
}