From c24d1e52b3f173ba5f4cc04f5a6a449a011a60c7 Mon Sep 17 00:00:00 2001 From: Julian T Date: Sun, 7 Feb 2021 17:52:30 +0100 Subject: Add reflecting material --- src/core/spectrum.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/spectrum.rs') diff --git a/src/core/spectrum.rs b/src/core/spectrum.rs index 9cca7dc..c33d3af 100644 --- a/src/core/spectrum.rs +++ b/src/core/spectrum.rs @@ -12,6 +12,8 @@ pub struct Spectrum { } impl Spectrum { + pub const ZERO: Self = Spectrum { c: [0.0; 3] }; + pub fn new_rgb(r: Float, g: Float, b: Float) -> Spectrum { Spectrum { c: [r, g, b] } } -- cgit v1.2.3