Using beam tracing to calculate reflections in JavaScript | Dark Hacker News