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

View File

@ -302,6 +302,7 @@ fn queue_outline(
let pipeline = pipelines let pipeline = pipelines
.specialize(&mut pipeline_cache, &outline_pipeline, key, &mesh.layout) .specialize(&mut pipeline_cache, &outline_pipeline, key, &mesh.layout)
.unwrap(); .unwrap();
// Increase distance to just behind the non-outline mesh
let distance = nextafterf( let distance = nextafterf(
inverse_view_row_2.dot(mesh_uniform.transform.col(3)), inverse_view_row_2.dot(mesh_uniform.transform.col(3)),
f32::NEG_INFINITY, f32::NEG_INFINITY,