FIX: improve brightness for the slice of black model
jira:https://jira.bambooolab.com/browse/STUDIO-3992 Change-Id: Ib25112af68bb9a86b13f9b0c6f4a8229e6d2a15f
This commit is contained in:
parent
fee6bb098a
commit
6f8005c306
|
@ -98,7 +98,15 @@ std::array<float, 4> adjust_color_for_rendering(const std::array<float, 4> &colo
|
|||
new_color[2] = 1;
|
||||
new_color[3] = FullTransparentModdifiedToFixAlpha;
|
||||
return new_color;
|
||||
}
|
||||
}
|
||||
else if ((colors[0] < 0.1) && (colors[1] < 0.1) && (colors[2] < 0.1)) {//black filament deal
|
||||
std::array<float, 4> new_color;
|
||||
new_color[0] = 0.1;
|
||||
new_color[1] = 0.1;
|
||||
new_color[2] = 0.1;
|
||||
new_color[3] = colors[3];
|
||||
return new_color;
|
||||
}
|
||||
return colors;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue