Removed useless comments
Former-commit-id: e780ddc3dd648e45f596b3e6a00ff68481d84e42
This commit is contained in:
@@ -165,7 +165,6 @@ bool NzFrustum<T>::Contains(const NzVector3<T>* points, unsigned int pointCount)
|
|||||||
template<typename T>
|
template<typename T>
|
||||||
NzFrustum<T>& NzFrustum<T>::Extract(const NzMatrix4<T>& clipMatrix)
|
NzFrustum<T>& NzFrustum<T>::Extract(const NzMatrix4<T>& clipMatrix)
|
||||||
{
|
{
|
||||||
///TODO: Calculer les coins
|
|
||||||
// http://www.crownandcutlass.com/features/technicaldetails/frustum.html
|
// http://www.crownandcutlass.com/features/technicaldetails/frustum.html
|
||||||
T plane[4];
|
T plane[4];
|
||||||
T invLength;
|
T invLength;
|
||||||
@@ -264,8 +263,7 @@ NzFrustum<T>& NzFrustum<T>::Extract(const NzMatrix4<T>& clipMatrix)
|
|||||||
// Je me base sur cette page: http://www.gamedev.net/topic/393309-calculating-the-view-frustums-vertices/
|
// Je me base sur cette page: http://www.gamedev.net/topic/393309-calculating-the-view-frustums-vertices/
|
||||||
|
|
||||||
NzMatrix4f invClipMatrix;
|
NzMatrix4f invClipMatrix;
|
||||||
clipMatrix.GetInverse(&invClipMatrix); // Nous n'avons plus besoin de la matrice originale
|
clipMatrix.GetInverse(&invClipMatrix);
|
||||||
|
|
||||||
NzVector4f corner;
|
NzVector4f corner;
|
||||||
|
|
||||||
// FarLeftBottom
|
// FarLeftBottom
|
||||||
|
|||||||
Reference in New Issue
Block a user