simple lua ray tracer built from Ray Tracing In One Weekened
this code generates a sample image similar to the one in the book:
also generates a sequence of images which are then put together into animated GIFs:
-
there are almost no comments in this code. i built it as i followed the book and as such i consider the book to be documentation for the code. that, along with what i consider to be readable code serve as all the documentation for this project.
-
doesnt seem to play nice with luajit. dont know enought about it to even guess as to why.
-
i am by no means an expert at writting efficient lua code so there are probably plenty of ways to optimize and write this code tons better.