aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2021-02-07 14:25:06 +0100
committerJulian T <julian@jtle.dk>2021-02-07 14:26:20 +0100
commit33e747fa1c0957546c10e4d7b490ac7fbb0fd2d2 (patch)
tree515b2b2e017329cbcada60e898fb5795fbceb5cd /src/lib.rs
parenta43ab40a75e9d4c6ee3fbdd583bc93574db19124 (diff)
Abstracted lambertian into material
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 2 insertions, 0 deletions
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;