From cee9bcf4a2c8ffbfe6487f7886b2247eaba1c92c Mon Sep 17 00:00:00 2001 From: Julian T Date: Sat, 31 Jul 2021 14:02:52 +0200 Subject: Better documentation and cleanup --- src/core/spectrum.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/spectrum.rs') 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] } -- cgit v1.2.3