added metals and dielectrics
This commit is contained in:
@@ -12,7 +12,7 @@ pub struct HitRecord<'a> {
|
||||
}
|
||||
|
||||
impl HitRecord<'_> {
|
||||
pub fn new_empty<T: Material>(material: &T) -> Self {
|
||||
pub fn new_empty<T: Material>(material: &'static T) -> Self {
|
||||
HitRecord { p: Point3::new(0.0, 0.0, 0.0), normal: Vec3::new(0.0, 0.0, 0.0), t: 0.0, front_face: false, mat_ptr: material }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user