Fixes return value for box collision

This commit is contained in:
Maximilian Giller 2022-11-17 16:49:04 +01:00
parent 1531a0f2c7
commit 4458492a42

View file

@ -87,7 +87,7 @@ bool Box::intersect(Ray &ray) const
ray.length = t;
ray.primitive = this;
return false;
return true;
}
// Bounding box ////////////////////////////////////////////////////////////////