Skip to content

prominly/moontrace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌚 moontrace

Experimental ray tracer written in Luau with Lute. Early stage.

moontrace

Quick Start

Clone the repository:

git clone https://github.com/prominly/moontrace.git
cd moontrace

This project requires the Lute runtime. You can find the local setup instructions on this Page.

Before rendering the scene, you may want to adjust the sample count. This can be done by passing it as a positional numeric argument when launching the program.

Performance depends on your hardware, but 10 samples per pixel shouldn't take more than a minute at the moment.

the render above took 100 samples per pixel.

Launch:

lute run src/main.luau 10

Note: the final image will be in .ppm format.

References

Resources

General:

Bounding Volume Hierarchies:

Monte Carlo:

Textures:

Assets

Textures:

About

Experimental ray tracer written in Luau with Lute

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages