fix xray error visualization missing red faces

This commit is contained in:
Tim Kuipers 2019-10-21 17:30:21 +02:00
parent 7e2177a8cd
commit b3761c454b

View file

@ -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;
}