mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
fix xray error visualization missing red faces
This commit is contained in:
parent
7e2177a8cd
commit
b3761c454b
1 changed files with 2 additions and 2 deletions
|
@ -51,7 +51,7 @@ fragment =
|
|||
result = layer0 * layer0.a + result * (1.0 - layer0.a);
|
||||
|
||||
float intersection_count = (texture2D(u_layer2, v_uvs).r * 255.0) / 5.0;
|
||||
if(mod(intersection_count, 2.0) == 1.0)
|
||||
if(mod(intersection_count, 2.0) >= 1.0)
|
||||
{
|
||||
result = u_error_color;
|
||||
}
|
||||
|
@ -122,7 +122,7 @@ fragment41core =
|
|||
result = layer0 * layer0.a + result * (1.0 - layer0.a);
|
||||
|
||||
float intersection_count = (texture(u_layer2, v_uvs).r * 255.0) / 5.0;
|
||||
if(mod(intersection_count, 2.0) == 1.0)
|
||||
if(mod(intersection_count, 2.0) >= 1.0)
|
||||
{
|
||||
result = u_error_color;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue