Tracing rays with Swift
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
CLI
Metal Playground
Photon.playground
Photon.xcodeproj
Photon.xcworkspace
Photon
Sample Files
Tests
.gitignore
.swiftlint.yml
.travis.yml
LICENSE
README.md
circle.yml

README.md

Photon

A very early work-in-progress ray tracer, implemented in Swift.

TravisCI Build Status


Building

Any of Photon's targets can be built in Photon.xcworkspace. This includes the playground, core framework, unit test suite, and command-line tool.

Swift package manager support may be included later for easy building of Photon.framework.


Roadmap

Features implemented and planned for Photon:

Shapes

  • Planes
  • Spheres
  • Rectangles
  • Cylinders
  • Triangles

Materials

  • Diffuse material
  • Reflections
  • Transparency

Cameras

  • Orthogonal
  • Perspective

Miscellaneous

  • Proper lighting
  • OBJ file parsing
  • SIMD support
  • A command-line tool for rendering OBJ files
  • SwiftPM support

Resources