check radius in ViewFrustum::isVerySimilar()

This commit is contained in:
Andrew Meadows 2017-09-08 15:24:21 -07:00
parent a55661e1ff
commit d55d45f6aa

View file

@ -339,7 +339,8 @@ bool ViewFrustum::isVerySimilar(const ViewFrustum& other) const {
closeEnough(_aspectRatio, other._aspectRatio, MIN_RELATIVE_ERROR) &&
closeEnough(_nearClip, other._nearClip, MIN_RELATIVE_ERROR) &&
closeEnough(_farClip, other._farClip, MIN_RELATIVE_ERROR) &&
closeEnough(_focalLength, other._focalLength, MIN_RELATIVE_ERROR);
closeEnough(_focalLength, other._focalLength, MIN_RELATIVE_ERROR),
closeEnough(_centerSphereRadius, other._centerSphereRadius, MIN_RELATIVE_ERROR);
}
PickRay ViewFrustum::computePickRay(float x, float y) {