mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 23:46:24 -06:00
ENH: adjust the black color for the thumbnail rendering
(cherry picked from commit 2319ad511ff8d9dcbe0ac7060e098ed921fff40e) Change-Id: I13512d1bac78c46257ceb907d5c2233976552a18
This commit is contained in:
parent
a4eaf65b77
commit
4bd1ab4e3c
1 changed files with 2 additions and 1 deletions
|
@ -5654,7 +5654,8 @@ void GLCanvas3D::render_thumbnail_internal(ThumbnailData& thumbnail_data, const
|
||||||
curr_color[2] = vol->color[2];
|
curr_color[2] = vol->color[2];
|
||||||
curr_color[3] = vol->color[3];
|
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());
|
shader->set_uniform("volume_world_matrix", vol->world_matrix());
|
||||||
//BBS set all volume to orange
|
//BBS set all volume to orange
|
||||||
//shader->set_uniform("uniform_color", orange);
|
//shader->set_uniform("uniform_color", orange);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue