ft: normal mapping

This commit is contained in:
2026-05-02 13:58:46 +02:00
parent ae73e626b9
commit bf980a28ec
6 changed files with 14 additions and 12 deletions

View File

@@ -2,5 +2,5 @@ use crate::{objects::hit::Hit, ray::Ray, vec3::Colour};
use std::fmt::Debug;
pub trait Material: Debug + Send + Sync{
fn scatter(&self, hit: &Hit, ray: &Ray) -> Option<(Ray, Colour)>;
fn scatter(&self, hit: &Hit, ray: &Ray) -> Option<(Option<Ray>, Colour)>;
}