4f14a166a690da2593a6ca6dea204a201e5b6dd1
I found the fucker. The rays were bouncing incorrectly because I wasn't holding a value the way I should have. I thought I was being clever and using Rusts's ability to redeclare variables. But, no. That value is meant to be modified when the first conditional passes. The outcomes are 3 possibilities, where one is an early return. Shadowing the value that way meant I was giving back garbage. I don't know why this didn't have any obviously bad effects prior to making the dielectric material.
Languages
Rust
100%