Implementation of the Ray Tracing in One Weekend book series by Peter Shirley.
-
Multicore rendering using Goroutines.
-
Multiple scene presets and randomized seed control.
-
Realtime display of render progress using Simple DirectMedia Layer (SDL).
- Build the binary with
go build .
- Run the
Install mage with Homebrew using brew install mage
.
build
- Runsgo mod download
, installs SDL and the OS bindings, and then builds theraytracer
binary.clean
- Removes the generated PNG image from disk.install:deps
- Installs all system and Go dependencies.run
- Runs theraytracer
binary, building it first if necessary.test
- Runs the unit tests.view
- Displays the generated image, generating it first if necessary.