rayimg 0.1.2

Renders image of some scene using ray tracing.
Documentation
1
2
3
4
5
6
use crate::{math::Ray, hit::HitRecord, rgb::RGB};

/// Describes material scattering properties.
pub trait Scatter {
    fn scatter(&self, ray: &Ray, hit_record: &HitRecord) -> Option<(Ray, RGB)>;
}