diff options
author | Julian T <julian@jtle.dk> | 2021-02-07 14:25:06 +0100 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2021-02-07 14:26:20 +0100 |
commit | 33e747fa1c0957546c10e4d7b490ac7fbb0fd2d2 (patch) | |
tree | 515b2b2e017329cbcada60e898fb5795fbceb5cd /src/lib.rs | |
parent | a43ab40a75e9d4c6ee3fbdd583bc93574db19124 (diff) |
Abstracted lambertian into material
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |