aboutsummaryrefslogtreecommitdiff
path: root/src/core/spectrum.rs
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2021-07-31 14:02:52 +0200
committerJulian T <julian@jtle.dk>2021-07-31 14:02:52 +0200
commitcee9bcf4a2c8ffbfe6487f7886b2247eaba1c92c (patch)
tree7fd405d9a3f6351d6341706fba50a8616d6c3a84 /src/core/spectrum.rs
parent55044e56304c8484b8ff52f362ab1c66c9c5ca93 (diff)
Better documentation and cleanup
Diffstat (limited to 'src/core/spectrum.rs')
-rw-r--r--src/core/spectrum.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/spectrum.rs b/src/core/spectrum.rs
index bea056e..ed3505b 100644
--- a/src/core/spectrum.rs
+++ b/src/core/spectrum.rs
@@ -12,6 +12,7 @@ pub struct Spectrum {
impl Spectrum {
pub const ZERO: Self = Spectrum { c: [0.0; 3] };
+ pub const WHITE: Self = Spectrum { c: [1.0; 3] };
pub fn new_rgb(r: Float, g: Float, b: Float) -> Spectrum {
Spectrum { c: [r, g, b] }