Fixed BVH node bounds calculations, which vastly improves performance. Had used zero as the start for the BVH bounds accumulator; should have used the default, which uses MAX/MIN for the min/max of the bounds respectively, which allows unions to properly accumulate. I fixed this bug in a different spot in a previous commit, but missed it here.
Performance is now on par with PBRTv4.
Also includes some minor bug fixes related to camera construction.
Fixed BVH node bounds calculations, which vastly improves performance. Had used zero as the start for the BVH bounds accumulator; should have used the default, which uses MAX/MIN for the min/max of the bounds respectively, which allows unions to properly accumulate. I fixed this bug in a different spot in a previous commit, but missed it here.
Performance is now on par with PBRTv4.
Also includes some minor bug fixes related to camera construction.