ENH: adjust the black color for the thumbnail rendering

(cherry picked from commit 2319ad511ff8d9dcbe0ac7060e098ed921fff40e)

Change-Id: I13512d1bac78c46257ceb907d5c2233976552a18
This commit is contained in:
lane.wei 2023-05-26 19:53:49 +08:00 committed by Lane.Wei
parent a4eaf65b77
commit 4bd1ab4e3c

View file

@ -5654,7 +5654,8 @@ void GLCanvas3D::render_thumbnail_internal(ThumbnailData& thumbnail_data, const
curr_color[2] = vol->color[2];
curr_color[3] = vol->color[3];
shader->set_uniform("uniform_color", curr_color);
std::array<float, 4> new_color = adjust_color_for_rendering(curr_color);
shader->set_uniform("uniform_color", new_color);
shader->set_uniform("volume_world_matrix", vol->world_matrix());
//BBS set all volume to orange
//shader->set_uniform("uniform_color", orange);