From 5b5ee8bc0d8bd47717ab48ea7a5652101cb33a6e Mon Sep 17 00:00:00 2001 From: Yoel <s73017@beuth-hochschule.de> Date: Fri, 16 Oct 2020 16:07:09 +0200 Subject: [PATCH] Light now has a function that determines the amount of light emitted by the Light in direction d --- RayTracer/shape/Light.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RayTracer/shape/Light.h b/RayTracer/shape/Light.h index 8c44897..63af141 100644 --- a/RayTracer/shape/Light.h +++ b/RayTracer/shape/Light.h @@ -5,5 +5,7 @@ namespace shapes { class Light { public: virtual util::SurfacePoint sampleLight() const = 0; + virtual util::Vec3 calculateLightEmission(const util::SurfacePoint& p, + const util::Vec3& d) const = 0; }; } // namespace shapes \ No newline at end of file -- GitLab