CatChow0 01a9c940f0 Minor update - frustum rework
Complete overhaul of frustum culling
2025-01-12 00:59:43 +01:00

12 lines
303 B
C++

#include <DirectXMath.h>
using namespace DirectX;
class Frustum
{
public:
void ConstructFrustum(float screenDepth, XMMATRIX projectionMatrix, XMMATRIX viewMatrix);
bool CheckCube(float xCenter, float yCenter, float zCenter, float radius, float tolerance);
private:
XMVECTOR m_planes[6];
};