A C++ ray tracer inspired by the Ray Tracing in One Weekend series by Peter Shirley.
-
Clone the repository:
git clone https://github.com/16ajbm/rayban.git
-
Navigate to the project directory:
cd rayban -
Make sure you have the required dependencies:
- CMake (3.15 or higher)
- C++ compiler with C++17 support
- Boost libraries (1.55 or higher)
-
Build and run:
make run
If you want to format the code, you can install clang-format:
# For macOS using Homebrew
brew install clang-formatThen, you can format the code using:
make formatThe Makefile provides simple commands for common tasks:
# Build the project
make build
# Run tests
make test
# Build and run the application
make run
# Clean build files
make clean
# View all available commands
make helpIf you prefer to use CMake directly:
mkdir build
cd build
cmake ..
make
./rayban