aboutsummaryrefslogtreecommitdiff
path: root/src/material/mod.rs
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2021-02-07 17:52:30 +0100
committerJulian T <julian@jtle.dk>2021-02-07 17:52:46 +0100
commitc24d1e52b3f173ba5f4cc04f5a6a449a011a60c7 (patch)
treeff39abb0473a78aa15fbd2ab4c7f5c82660fe3ab /src/material/mod.rs
parent33e747fa1c0957546c10e4d7b490ac7fbb0fd2d2 (diff)
Add reflecting material
Diffstat (limited to 'src/material/mod.rs')
-rw-r--r--src/material/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/material/mod.rs b/src/material/mod.rs
index 62cbf9a..c939385 100644
--- a/src/material/mod.rs
+++ b/src/material/mod.rs
@@ -2,8 +2,10 @@ use crate::core::{Ray, Intersection, Spectrum};
use crate::sample::Sampler;
mod lambertian;
+mod reflectant;
pub use lambertian::Lambertian;
+pub use reflectant::Reflectant;
pub trait Material {
fn scatter(&self, ray: &Ray, i: &Intersection, sampler: &mut dyn Sampler) -> Option<(Spectrum, Ray)>;