Skip to content

Implementation of the ray-tracing in one weekend book series by Peter Shirley

License

Notifications You must be signed in to change notification settings

lucasmelin/raytracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raytracer

Implementation of the Ray Tracing in One Weekend book series by Peter Shirley.


Built with Mage GitHub Workflow Status

Features

  • Multicore rendering using Goroutines.

  • Multiple scene presets and randomized seed control.

  • Realtime display of render progress using Simple DirectMedia Layer (SDL).

    Render realtime

Ray Tracing in One Weekend

Ray Tracing in One Weekend

Final render

Final render

Ray Tracing: The Next Week

Ray Tracing: The Next Week

Final render

Final render

Usage instructions

  • Build the binary with go build .
  • Run the

Development instructions

Install mage with Homebrew using brew install mage.

Targets

  • build - Runs go mod download, installs SDL and the OS bindings, and then builds the raytracer binary.
  • clean - Removes the generated PNG image from disk.
  • install:deps - Installs all system and Go dependencies.
  • run - Runs the raytracer binary, building it first if necessary.
  • test - Runs the unit tests.
  • view - Displays the generated image, generating it first if necessary.

About

Implementation of the ray-tracing in one weekend book series by Peter Shirley

Topics

Resources

License

Stars

Watchers

Forks

Languages