This project is a C implementation of the Ray Tracing in One Weekend book by Peter Shirley. It aims to provide a simple and straightforward implementation of a ray tracer using C programming language. It outputs images in the ppm format. It's inefficient but easy to implement.
In this project, we explore the fundamentals of ray tracing and implement a basic ray tracer in C. Ray tracing is a technique used in computer graphics to generate realistic images by simulating the behavior of light rays in a scene.
To get started with this project, follow these steps:
- Clone the repository:
git clone https://github.com/xAndreMCx/raytracing_in_a_weekend.git
- Build the project:
make
- To run the executalble:
make run
To use the ray tracer, you can modify the scene description in the code and adjust the rendering settings according to your preferences. You can also add new objects or materials to the scene to experiment with different effects.
Here are some example images rendered using this ray tracer:
Contributions to this project are welcome. If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License.