diff --git a/plugins/XRayView/xray_composite.shader b/plugins/XRayView/xray_composite.shader index 7ea5287f96..8bb0f83e9b 100644 --- a/plugins/XRayView/xray_composite.shader +++ b/plugins/XRayView/xray_composite.shader @@ -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; }