Skip to content
/ rust_rt Public

Rust experimentation. My first raytracer in rust.

Notifications You must be signed in to change notification settings

guibou/rust_rt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is my first attempt at working with rust.

So I'm writing a ray tracer, as usual.

Right now, the thing I like with rust are:

  • I don't know what I'm doing at all. But I'm following the compiler. I've put lifetime annotation without any idea about what I'm doing. I've put Copy / Clone / PartialEq traits without any idea either. I do suspect that there may be some ugly copy happening in the background...

The things which annoys me, or that I don't understand:

  • Who had the idea that Foo::new is a good idea? I'm a C++ developer, so I want to write new Foo. (But there may be a semantic I don't understand yet).
  • No polymorphic numbers! It sucks so much to have to write "0." when I want a 0.
  • No repl?

How the hell does it work

cargo build && ./target/debug/rust_rt && eog output.ppm

Should display something ugly such as:

Ugly image

That's raytracing of sphere, with lighting, and everything is crappy.

About

Rust experimentation. My first raytracer in rust.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published