mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 02:37:49 -06:00
Fixed compatibility mode active extruder. CURA-3321
This commit is contained in:
parent
d372e73eda
commit
c54d5ce707
5 changed files with 3 additions and 4 deletions
4
plugins/LayerView/layers3d.shader
Normal file → Executable file
4
plugins/LayerView/layers3d.shader
Normal file → Executable file
|
@ -16,7 +16,7 @@ vertex41core =
|
|||
in lowp vec4 a_material_color;
|
||||
in highp vec4 a_normal;
|
||||
in highp vec2 a_line_dim; // line width and thickness
|
||||
in highp int a_extruder; // Note: cannot use this in compatibility, int is only available in newer OpenGL.
|
||||
in highp float a_extruder;
|
||||
in highp float a_line_type;
|
||||
|
||||
out lowp vec4 v_color;
|
||||
|
@ -53,7 +53,7 @@ vertex41core =
|
|||
v_vertex = world_space_vert.xyz;
|
||||
v_normal = (u_normalMatrix * normalize(a_normal)).xyz;
|
||||
v_line_dim = a_line_dim;
|
||||
v_extruder = a_extruder;
|
||||
v_extruder = int(a_extruder);
|
||||
v_line_type = a_line_type;
|
||||
v_extruder_opacity = u_extruder_opacity;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue