This is so horribly unoptimized. You NEED to use turbowarp.org to run this and a decently powerful computer currently working on why it doesn't work when the bounces is even number
Griffpatch for the tutorial Fun to go in and mess with the numbers in it, see how my computer handles it. I tried adding more stuff like accurate reflections but i couldn't find an equation that made sense to me so i didn't.