Fixing SViewFrustum::recalculateBoundingBox once more.
Sorry, missed some points in last fix. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5775 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
ba391682b0
commit
db89bbc2ce
|
@ -263,9 +263,13 @@ namespace scene
|
|||
inline void SViewFrustum::recalculateBoundingBox()
|
||||
{
|
||||
boundingBox.reset(getNearLeftUp());
|
||||
boundingBox.addInternalPoint(getNearRightUp());
|
||||
boundingBox.addInternalPoint(getNearLeftDown());
|
||||
boundingBox.addInternalPoint(getNearRightDown());
|
||||
boundingBox.addInternalPoint(getFarRightUp());
|
||||
boundingBox.addInternalPoint(getFarLeftDown());
|
||||
boundingBox.addInternalPoint(getFarRightDown());
|
||||
boundingBox.addInternalPoint(getFarLeftUp());
|
||||
|
||||
// Also recalculate the bounding sphere when the bbox changes
|
||||
recalculateBoundingSphere();
|
||||
|
|
Loading…
Reference in New Issue