void InstancingAndCullingApp::OnResize()
{
	D3DApp::OnResize();

	mCam.SetLens(0.25f*MathHelper::Pi, AspectRatio(), 1.0f, 1000.0f);

	// Build the frustum from the projection matrix in view space.
	ComputeFrustumFromProjection(&mCamFrustum, &mCam.Proj());
}
Ejemplo n.º 2
0
void Projekt::OnResize()
{
	D3D11App::OnResize();

	//mPlayer.GetCamera()->setLens(0.25f*MathHelper::pi, AspectRatio(), 1.0f, 1000.0f);

	mPlayer.GetCamera()->setLens(0.25f*MathHelper::pi, AspectRatio(), 1.0f, 1000.0f);

	// Build the frustum from the projection matrix in view space
	ComputeFrustumFromProjection(&mCamFrustum, &mPlayer.GetCamera()->getProjMatrix());
}