Boundingboxes should be ready.
Next step (later) would be to properly use them other than group to lower the number of intersection calculation per ray.
This commit is contained in:
@@ -42,5 +42,8 @@ BoundingBox Plane::getBounds()
|
||||
ret.min = this->objectToWorld(Point(-INFINITY, 0-getEpsilon(), -INFINITY));
|
||||
ret.max = this->objectToWorld(Point(INFINITY, 0+getEpsilon(), INFINITY));
|
||||
|
||||
ret.min.fixPoint();
|
||||
ret.max.fixPoint();
|
||||
|
||||
return ret;
|
||||
}
|
||||
Reference in New Issue
Block a user