From 8fd79c04ab2a189d26775b98ac2fb6c559e1bf40 Mon Sep 17 00:00:00 2001 From: Maximilian Giller Date: Thu, 17 Nov 2022 17:07:18 +0100 Subject: [PATCH] Implements shadow shader --- shader/simpleshadowshader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shader/simpleshadowshader.cpp b/shader/simpleshadowshader.cpp index ee456c5..8bd1cb7 100644 --- a/shader/simpleshadowshader.cpp +++ b/shader/simpleshadowshader.cpp @@ -8,5 +8,5 @@ Color SimpleShadowShader::shade(Scene const &scene, Ray const &ray) const { // IMPLEMENT ME // loop over all light sources to check for visibility and multiply "light // strength" with this objects albedo (color) - return Color(0, 1, 0); + return this->objectColor; }