FIX:delete is_out_print_limit == false

jira: none
Change-Id: I54c3d3a673595dd349d6ef17b9bbb24ae2115f3e
This commit is contained in:
zhou.xu 2024-11-25 09:51:11 +08:00 committed by lane.wei
parent 78eea0a36f
commit 302c461842
1 changed files with 2 additions and 2 deletions

View File

@ -88,9 +88,9 @@ void main()
pv_check_max = vec3(0.0, 0.0, world_pos.z - print_volume.z_data.y); pv_check_max = vec3(0.0, 0.0, world_pos.z - print_volume.z_data.y);
color = (any(lessThan(pv_check_min, ZERO)) || any(greaterThan(pv_check_max, ZERO))) ? mix(color, ZERO, 0.3333) : color; color = (any(lessThan(pv_check_min, ZERO)) || any(greaterThan(pv_check_max, ZERO))) ? mix(color, ZERO, 0.3333) : color;
} }
if(is_out_print_limit == false && extruder_printable_heights.x >= 1.0 ){ if(extruder_printable_heights.x >= 1.0 ){
pv_check_min = world_pos.xyz - vec3(print_volume.xy_data.x, print_volume.xy_data.y, extruder_printable_heights.y); pv_check_min = world_pos.xyz - vec3(print_volume.xy_data.x, print_volume.xy_data.y, extruder_printable_heights.y);
pv_check_max = world_pos.xyz - vec3(print_volume.xy_data.z, print_volume.xy_data.w, extruder_printable_heights.z); pv_check_max = world_pos.xyz - vec3(print_volume.xy_data.z, print_volume.xy_data.w, extruder_printable_heights.z -0.01);
bool is_out_printable_height = (all(greaterThan(pv_check_min, ZERO)) && all(lessThan(pv_check_max, ZERO))) ; bool is_out_printable_height = (all(greaterThan(pv_check_min, ZERO)) && all(lessThan(pv_check_max, ZERO))) ;
color = is_out_printable_height ? mix(color, ZERO, 0.7) : color; color = is_out_printable_height ? mix(color, ZERO, 0.7) : color;
} }