From 33e747fa1c0957546c10e4d7b490ac7fbb0fd2d2 Mon Sep 17 00:00:00 2001 From: Julian T Date: Sun, 7 Feb 2021 14:25:06 +0100 Subject: Abstracted lambertian into material --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 7da6627..a0af705 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,6 +4,7 @@ pub mod render; pub mod scene; pub mod trace; pub mod sample; +pub mod material; use std::ops::{Add, Sub, Mul, DivAssign, Neg}; use std::cmp; @@ -34,3 +35,4 @@ impl Number for f64 {} pub type Float = f64; pub const M_PI: Float = PI; +pub const NEAR_ZERO: Float = 1e-8; -- cgit v1.2.3