MiniLight minimal global illumination renderer, Scala translation.