1
0
forked from 0ad/0ad

Updated cull camera to include slightly more objects, to reduce glitches with reflections and shadows.

This was SVN commit r4681.
This commit is contained in:
Matei 2006-12-06 02:52:14 +00:00
parent 8fa6b12568
commit 0caac67fe2

View File

@ -154,7 +154,14 @@ void CGameView::RegisterInit(CGameAttributes *pAttribs)
void CGameView::Render()
{
if (m_LockCullCamera == false)
{
// Set up cull camera; make the FOV higher than for the default camera
// as a temporary means to catch off-screen things (later, we should have
// separate cull cameras for shadows and reflections).
m_CullCamera = m_ViewCamera;
m_CullCamera.SetProjection(1.0f, 10000.0f, DEGTORAD(30));
m_CullCamera.UpdateFrustum();
}
g_Renderer.SetSceneCamera(m_ViewCamera, m_CullCamera);
CheckLightEnv();