TODO: what does this (apparently) random conditional do?
This commit is contained in:
parent
8ea832c090
commit
5390600cdd
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue