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:
parent
8fa6b12568
commit
0caac67fe2
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user