mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-18 04:25:56 +08:00
Added comment. CURA-3273
This commit is contained in:
parent
cc950732b6
commit
8e80593232
@ -19,6 +19,7 @@ vertex =
|
|||||||
gl_Position = u_modelViewProjectionMatrix * a_vertex;
|
gl_Position = u_modelViewProjectionMatrix * a_vertex;
|
||||||
// shade the color depending on the extruder index
|
// shade the color depending on the extruder index
|
||||||
v_color = a_color;
|
v_color = a_color;
|
||||||
|
// 8 and 9 are travel moves
|
||||||
if ((a_line_type != 8.0) && (a_line_type != 9.0)) {
|
if ((a_line_type != 8.0) && (a_line_type != 9.0)) {
|
||||||
v_color = (a_extruder == u_active_extruder) ? v_color : vec4(u_shade_factor * v_color.rgb, v_color.a);
|
v_color = (a_extruder == u_active_extruder) ? v_color : vec4(u_shade_factor * v_color.rgb, v_color.a);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user