ENH: rendering: refine the rendering logic of GLVolume

1. set the unprintable volume to black even if it is mmu painted
2. add the bounding check logic when the object is partly inside of current plate

Change-Id: I69ce25eb85a71398ed8fb1d275136c5d943796d6
This commit is contained in:
lane.wei 2022-08-23 15:28:59 +08:00 committed by Lane.Wei
parent 3911344495
commit 5a2b0e845e
4 changed files with 41 additions and 12 deletions

View file

@ -371,6 +371,7 @@ public:
bool shader_outside_printer_detection_enabled : 1;
// Wheter or not this volume is outside print volume.
bool is_outside : 1;
bool partly_inside : 1;
// Wheter or not this volume has been generated from a modifier
bool is_modifier : 1;
// Wheter or not this volume has been generated from the wipe tower