Add comment to use of nextafterf.

This commit is contained in:
Robin KAY 2022-06-14 20:26:07 +01:00
parent 824e4bc51f
commit e06fb383a3
1 changed files with 1 additions and 0 deletions

View File

@ -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,