Robert Garrett 515f5b866a Fix: hit record selection mechanism
Because of the mutable record being used in the loop, the previous
version had a somewhat obscured way to track the nearest collision.

Switching to an optional (so I can have a non-optional Material in it)
means I'm not interrogating that value.... So it gets to be explicit
again.

I'll refactor the entire for-loop into an iterator with the min()
adapter at some point. For now: Material lifetimes!
2023-09-23 09:27:21 -07:00
2023-09-23 09:27:21 -07:00
Description
No description provided
AGPL-3.0 15 MiB
Languages
Rust 100%