From e06fb383a348aa8225f5fab2772494f13bb1a402 Mon Sep 17 00:00:00 2001 From: Robin KAY Date: Tue, 14 Jun 2022 20:26:07 +0100 Subject: [PATCH] Add comment to use of nextafterf. --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index ae79baa..5f2a382 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -302,6 +302,7 @@ fn queue_outline( let pipeline = pipelines .specialize(&mut pipeline_cache, &outline_pipeline, key, &mesh.layout) .unwrap(); + // Increase distance to just behind the non-outline mesh let distance = nextafterf( inverse_view_row_2.dot(mesh_uniform.transform.col(3)), f32::NEG_INFINITY,