diff options
author | Tim Kuipers <t.kuipers@ultimaker.com> | 2019-10-21 18:30:21 +0300 |
---|---|---|
committer | Tim Kuipers <t.kuipers@ultimaker.com> | 2020-02-26 18:24:27 +0300 |
commit | b3761c454bba281517f1cd21d3fa4d669c7e39ba (patch) | |
tree | 36e2e695c0834e3028b4c7cb6e21b6376687712c /plugins/XRayView | |
parent | 7e2177a8cd080aff0ea0815d410d41aa0cb554ba (diff) |
fix xray error visualization missing red faces
Diffstat (limited to 'plugins/XRayView')
-rw-r--r-- | plugins/XRayView/xray_composite.shader | 4 |
1 files 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; } |