Skip to content
Permalink
Browse files
Remove frustum cull method and fields from TransformedAABBoxSSSE
  • Loading branch information
rygorous committed Feb 2, 2013
1 parent bd29f46 commit 0a82ba4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
@@ -85,7 +85,6 @@ void TransformedAABBoxSSE::CreateAABBVertexIndexList(CPUTModelDX11 *pModel)
mWorldMatrix[3] = _mm_loadu_ps(world + 12);

pModel->GetBoundsObjectSpace(&mBBCenter, &mBBHalf);
pModel->GetBoundsWorldSpace(&mBBCenterWS, &mBBHalfWS);

float3 min = mBBCenter - mBBHalf;
float3 max = mBBCenter + mBBHalf;
@@ -102,14 +101,6 @@ void TransformedAABBoxSSE::CreateAABBVertexIndexList(CPUTModelDX11 *pModel)
mpBBVertexList[7] = _mm_set_ps(1.0f, min.z, min.y, min.x);
}

//----------------------------------------------------------------
// Determine is model is inside view frustum
//----------------------------------------------------------------
bool TransformedAABBoxSSE::IsInsideViewFrustum(CPUTCamera *pCamera)
{
return pCamera->mFrustum.IsVisible(mBBCenterWS, mBBHalfWS);
}

//----------------------------------------------------------------------------
// Determine if the occluddee size is too small and if so avoid drawing it
//----------------------------------------------------------------------------
@@ -29,7 +29,6 @@ class TransformedAABBoxSSE : public HelperSSE
TransformedAABBoxSSE();
~TransformedAABBoxSSE();
void CreateAABBVertexIndexList(CPUTModelDX11 *pModel);
bool IsInsideViewFrustum(CPUTCamera *pCamera);
void TransformAABBoxAndDepthTest();

bool IsTooSmall(__m128 *pViewMatrix, __m128 *pProjMatrix, CPUTCamera *pCamera);
@@ -53,8 +52,6 @@ class TransformedAABBoxSSE : public HelperSSE

float3 mBBCenter;
float3 mBBHalf;
float3 mBBCenterWS;
float3 mBBHalfWS;

void Gather(vFloat4 pOut[3], UINT triId);
};

0 comments on commit 0a82ba4

Please sign in to comment.