Fixes box collision condition to fix mirror effect
This commit is contained in:
parent
4458492a42
commit
53966ad869
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ bool Box::intersect(Ray &ray) const
|
|||
float t = tIn;
|
||||
|
||||
// Test whether this is the foremost primitive in front of the camera
|
||||
if (t >= ray.length)
|
||||
if (t >= ray.length || t < EPSILON)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue