mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Add the last line (when time-sim active) as a separate batch instead.
part of CURA-11521
This commit is contained in:
parent
6e75eb34af
commit
d6295171dd
3 changed files with 28 additions and 17 deletions
|
@ -10,10 +10,6 @@ vertex41core =
|
|||
|
||||
uniform highp mat4 u_normalMatrix;
|
||||
|
||||
uniform vec3 u_last_vertex;
|
||||
uniform vec3 u_next_vertex;
|
||||
uniform float u_last_line_ratio;
|
||||
|
||||
in highp vec4 a_vertex;
|
||||
in lowp vec4 a_color;
|
||||
in lowp vec4 a_grayColor;
|
||||
|
@ -39,10 +35,6 @@ vertex41core =
|
|||
void main()
|
||||
{
|
||||
vec4 v1_vertex = a_vertex;
|
||||
if (v1_vertex.xyz == u_next_vertex)
|
||||
{
|
||||
v1_vertex.xyz = mix(u_last_vertex, u_next_vertex, u_last_line_ratio);
|
||||
}
|
||||
v1_vertex.y -= a_line_dim.y / 2; // half layer down
|
||||
|
||||
vec4 world_space_vert = u_modelMatrix * v1_vertex;
|
||||
|
@ -282,8 +274,6 @@ u_viewMatrix = view_matrix
|
|||
u_projectionMatrix = projection_matrix
|
||||
u_normalMatrix = normal_matrix
|
||||
u_lightPosition = light_0_position
|
||||
u_lastVertex = last_vertex
|
||||
u_nextVertex = next_vertex
|
||||
|
||||
[attributes]
|
||||
a_vertex = vertex
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue