Skip to content

bobbywyx/rust_ray_tracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ray Tracer In Rust

This is a ray tracer written in Rust. It is based on the book Ray Tracing in One Weekend

Dependencies

  • Rust
  • Nothing else
  • Maybe a powerful computer

Usage

cargo run --release

Then you can find the output image in output.ppm, you may need a special software to open it. Fortunately, ubuntu image viewer can directly open this file and there is a vscode extension. If you want to change the output image size, you can change the WIDTH and HEIGHT constants (or anything else) in src/main.rs.

Output

output

About

A ray tracer written in rust.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages