mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 06:23:59 -06:00
Also change color _on_ the buildplate.
This commit is contained in:
parent
a579d66fbd
commit
d7325be39f
2 changed files with 4 additions and 4 deletions
|
@ -65,7 +65,7 @@ fragment =
|
|||
|
||||
highp vec3 grid = vec3(f_vertex.x - floor(f_vertex.x - 0.5), f_vertex.y - floor(f_vertex.y - 0.5), f_vertex.z - floor(f_vertex.z - 0.5));
|
||||
finalColor.a = (u_renderError > 0.5) && dot(grid, grid) < 0.245 ? 0.667 : 1.0;
|
||||
if (f_vertex.y < 0.0)
|
||||
if (f_vertex.y <= 0.0)
|
||||
{
|
||||
finalColor.rgb = vec3(1.0, 1.0, 1.0) - finalColor.rgb;
|
||||
}
|
||||
|
@ -141,7 +141,7 @@ fragment41core =
|
|||
finalColor = (u_faceId != gl_PrimitiveID) ? ((-normal.y > u_overhangAngle) ? u_overhangColor : finalColor) : u_faceColor;
|
||||
|
||||
frag_color = finalColor;
|
||||
if (f_vertex.y < 0.0)
|
||||
if (f_vertex.y <= 0.0)
|
||||
{
|
||||
frag_color.rgb = vec3(1.0, 1.0, 1.0) - frag_color.rgb;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue