Skip to content

A basic raytracer implementation in Rust based on the Ray Tracing in One Weekend book.

License

Notifications You must be signed in to change notification settings

navin-mohan/raytracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raytracer

A basic raytracer implementation in Rust based on the Ray Tracing in One Weekend book.

Live Demo

Result

output

How to Run

Standalone Binary

$ cargo run

The above command will produce a test.ppm file in the same directory containing the rendered image.

WASM port for the Web

Install wasm-pack. Then run the following commands.

$ wasm-pack build
$ cd www
$ npm run start

It is hosted on GitHub Pages available at http://navinmohan.com/raytracer/

Adjusting the objects or camera

At this point, any changes to the scene has to be made directly inside the code. If you wish to modify the scene start with bin.rs and lib.rs.

About

A basic raytracer implementation in Rust based on the Ray Tracing in One Weekend book.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published