From 7ae411b3853cbc75d77e27658ac9cbe292529a10 Mon Sep 17 00:00:00 2001
From: Yoel <s73017@beuth-hochschule.de>
Date: Sat, 17 Oct 2020 17:14:07 +0200
Subject: [PATCH] Defined calcLightMulti-func for SurfacePoint

---
 RayTracer/tools/SurfacePoint.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/RayTracer/tools/SurfacePoint.h b/RayTracer/tools/SurfacePoint.h
index 4a5f376..5c3cbee 100644
--- a/RayTracer/tools/SurfacePoint.h
+++ b/RayTracer/tools/SurfacePoint.h
@@ -15,6 +15,9 @@ class SurfacePoint {
 	bool scatter(const util::Vec3& d, const util::Vec3& n) const;
 	util::Vec3 point() const;
 	util::Vec3 normal() const;
+	float calculateLightMultiplier(const util::Vec3& d_in,
+	                               const util::Vec3& d_out,
+	                               const util::Vec3& n) const;
 	// Attributes
 	// TODO TexelPos
 	std::shared_ptr<material::Material> material;
-- 
GitLab