diff --git a/plugins/LayerView/layers.shader b/plugins/LayerView/layers.shader index 81d5c94dff..1b1c62e21f 100644 --- a/plugins/LayerView/layers.shader +++ b/plugins/LayerView/layers.shader @@ -17,6 +17,7 @@ vertex = void main() { gl_Position = u_modelViewProjectionMatrix * a_vertex; + // shade the color depending on the extruder index v_color = a_color; 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);