From 5390600cddb90bc0508b332a0018ec35ed134d0d Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sat, 2 Aug 2014 15:32:27 -0700 Subject: [PATCH] TODO: what does this (apparently) random conditional do? --- src/scene.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/scene.cc b/src/scene.cc index 6f8b8fc..8204635 100644 --- a/src/scene.cc +++ b/src/scene.cc @@ -263,6 +263,10 @@ Scene::trace_ray(const Ray &ray, light_direction = (intersection - l->GetOrigin()).normalize(); ldotn = light_direction.dot(normal); + /* + * TODO: What is this even for? Removing it makes the darker showers + * really bright. + */ if (ldotn < 0) { ldotn = 0.0; }