Cited
Tutorial
a BoundingFrustum can be created based on a Projection_Matrix.
such as class BoundingFrustum followed below.
The goal of view frustum culling is therefore to be able to identify what is inside the frustum (totally or partially), and cull everything that is not inside. Only the stuff that is inside the frustum is sent to the graphics hardware.
_____________________________________
__________________
__________________
class BoundingFrustum
{
public: Plane _plane[6];
BoundingFrustum(){}
BoundingFrustum(const Matrix4x4& matrix){}
~BoundingFrustum(){}
void CalculateFromMatrix(const Matrix4x4& matrix)
void CalculateFromMatrix(const Matrix4x4& matrix)
{
//[0]-left
//[1]-right
//[2]-top
//[3]-bottom
//[4]-near
//[5]-far
}
};
No comments:
Post a Comment