dasom 0.1.1

A toy ray tracing engine based on Ray Tracing In One Weekend in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::{ Color, Ray, HitRecord };

pub trait Material {
    fn scatter(&self, ray: Ray, hr: &HitRecord) -> Option< (Ray, Color) >;
}

pub mod lambertian;
pub mod metal;
pub mod dielectric;

pub use lambertian::*;
pub use metal::*;
pub use dielectric::*;