Skip to content

P3N9U1N/TheRaytracerChallenge

Repository files navigation

The Raytracer Challenge

This is my code for the book "The Ray Tracer Challenge" from Jamis Buck. The raytracer is completely written in Typescript, unit tests have been implemented with JEST.

Chapter 11 (Reflection and Refraction)

https://p3n9u1n.github.io/TheRaytracerChallenge/raytracer-gui/chapter11.html

Chapter 10 (Patterns)

https://p3n9u1n.github.io/TheRaytracerChallenge/raytracer-gui/chapter10.html

Chapter 9 (Planes)

https://p3n9u1n.github.io/TheRaytracerChallenge/raytracer-gui/chapter9.html

Chapter 8 (Shadows)

https://p3n9u1n.github.io/TheRaytracerChallenge/raytracer-gui/chapter8.html

Chapter 7 (Making a Scene)

https://p3n9u1n.github.io/TheRaytracerChallenge/raytracer-gui/chapter7.html

Chapter 6 (Light and Shading)

https://p3n9u1n.github.io/TheRaytracerChallenge/raytracer-gui/chapter6.html

Chapter 1-5

Chapter 1-5 code is in the spikes/ directory, written for NodeJS.

Project setup

After cloning the repo, run "npm install" from the TheRaytracerChallenge and the TheRaytracerChallenge/test directory. Then you can open the workspace file workspace.code-workspace with VS Code. There are launch configurations for Chrome and Firefox for starting the website. For the unit tests, it is convenient to have an extension for Jest installed (for example "JEST Runner"), but it also works by running "npm test" from the test directory.

About

A web raytracer based on the book "The Ray Tracer Challenge"

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published