added hemispherical scattering, switched to ppm version 6
This commit is contained in:
13
src/material.rs
Normal file
13
src/material.rs
Normal file
@@ -0,0 +1,13 @@
|
||||
use crate::hittable::HitRecord;
|
||||
use crate::ray::Ray;
|
||||
use crate::rtweekend::*;
|
||||
use crate::hittable_list::*;
|
||||
use crate::vec3::Color;
|
||||
|
||||
pub struct Material {
|
||||
|
||||
}
|
||||
|
||||
trait Scatter {
|
||||
fn scatter(r_in: &Ray, rec: HitRecord, attenuation: &Color, scattered: &Ray) -> bool;
|
||||
}
|
||||
Reference in New Issue
Block a user