From 70ddc5d5562c263fd366ad037b446ba1a521b812 Mon Sep 17 00:00:00 2001 From: Yoel <s73017@beuth-hochschule.de> Date: Sat, 17 Oct 2020 17:04:22 +0200 Subject: [PATCH] Changed scatter function to depend on incoming dir and n --- RayTracer/tools/SurfacePoint.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RayTracer/tools/SurfacePoint.h b/RayTracer/tools/SurfacePoint.h index 65d463d..4a5f376 100644 --- a/RayTracer/tools/SurfacePoint.h +++ b/RayTracer/tools/SurfacePoint.h @@ -12,7 +12,7 @@ class SurfacePoint { cam::Ray scattered_ray(const cam::Ray& inc_ray) const; util::Vec3 albedo() const; // TODO TexelPos util::Vec3 emission() const; // TODO TexelPos - bool scatter() const; + bool scatter(const util::Vec3& d, const util::Vec3& n) const; util::Vec3 point() const; util::Vec3 normal() const; // Attributes -- GitLab