Live demo at: https://aleksuo.github.io/angular-ray-tracing/
A small project built following Ray Tracing in One Weekend using Angular and TypeScript. The ray tracer runs in the browser (runs on CPU) and has a simple UI for changing the rendering parameters.
- GUI
- Simple scenes
- Parallelization of rendering using web workers
- Marble textures
- Fixing the camera defocus bug (defocus doesn't currently work correctly)
- GPU rendering
- Lights
- Surface textures
You need to have Node.js and npm installed. Then:
- Install the project dependencies:
npm install
- Start the development server:
npm run start
The application will be available at http://localhost:4200.
To build the production build run:
npm run build
To manually lint the project run:
npm run lint
To automatically fix all fixable linter errors, run:
npm run lint-fix
- The default scene (final image of the Ray Tracing In One Weekend -book)


