mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 17:27:51 -06:00
Make LayerView work with "Purge" line type
CURA-3094 In CuraEngine, we created a new line type called "Purge" to make Prime Tower Purge work. This commit makes the LayerView plugin to handle "Purge" lines correctly.
This commit is contained in:
parent
8393a0efb4
commit
81323e555a
7 changed files with 51 additions and 6 deletions
|
@ -35,6 +35,7 @@ fragment =
|
|||
uniform int u_show_helpers;
|
||||
uniform int u_show_skin;
|
||||
uniform int u_show_infill;
|
||||
uniform int u_show_purge;
|
||||
|
||||
void main()
|
||||
{
|
||||
|
@ -62,6 +63,11 @@ fragment =
|
|||
// discard movements
|
||||
discard;
|
||||
}
|
||||
// purge:
|
||||
if ((u_show_purge == 0) && (v_line_type >= 10.5) && (v_line_type <= 11.5)) {
|
||||
// discard movements
|
||||
discard;
|
||||
}
|
||||
|
||||
gl_FragColor = v_color;
|
||||
}
|
||||
|
@ -103,6 +109,7 @@ fragment41core =
|
|||
uniform int u_show_helpers;
|
||||
uniform int u_show_skin;
|
||||
uniform int u_show_infill;
|
||||
uniform int u_show_purge;
|
||||
|
||||
void main()
|
||||
{
|
||||
|
@ -130,6 +137,11 @@ fragment41core =
|
|||
// discard movements
|
||||
discard;
|
||||
}
|
||||
// purge:
|
||||
if ((u_show_purge == 0) && (v_line_type >= 10.5) && (v_line_type <= 11.5)) {
|
||||
// discard movements
|
||||
discard;
|
||||
}
|
||||
|
||||
frag_color = v_color;
|
||||
}
|
||||
|
@ -144,6 +156,7 @@ u_show_travel_moves = 0
|
|||
u_show_helpers = 1
|
||||
u_show_skin = 1
|
||||
u_show_infill = 1
|
||||
u_show_purge = 1
|
||||
|
||||
[bindings]
|
||||
u_modelViewProjectionMatrix = model_view_projection_matrix
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue