p.z comparison was comparing against mFar.y
This commit is contained in:
parent
6f4d91af01
commit
2ade996783
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ Box::compute_normal(const Vector3& p)
|
||||||
return Vector3(0, 1, 0);
|
return Vector3(0, 1, 0);
|
||||||
} else if (NearlyEqual(p.z, mNear.z)) {
|
} else if (NearlyEqual(p.z, mNear.z)) {
|
||||||
return Vector3(0, 0, -1);
|
return Vector3(0, 0, -1);
|
||||||
} else if (NearlyEqual(p.z, mFar.y)) {
|
} else if (NearlyEqual(p.z, mFar.z)) {
|
||||||
return Vector3(0, 0, 1);
|
return Vector3(0, 0, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue