From b3761c454bba281517f1cd21d3fa4d669c7e39ba Mon Sep 17 00:00:00 2001 From: Tim Kuipers Date: Mon, 21 Oct 2019 17:30:21 +0200 Subject: [PATCH] fix xray error visualization missing red faces --- plugins/XRayView/xray_composite.shader | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }