Revision: 7985
http://ogre.svn.sourceforge.net/ogre/?rev=7985&view=rev
Author: sinbad
Date: 2008-08-24 16:40:27 +0000 (Sun, 24 Aug 2008)
Log Message:
-----------
There is no need to disable the render distance option on shadow cameras now, since the 'LOD Camera' is now used for this calculation, which is the main view camera in the case of shadow renders. Therefore the render distance will cause the shadows to disappear at the same time as the objects disappear from the main view, which is precisely what we want.
Modified Paths:
--------------
branches/v1-6/OgreMain/src/OgreSceneManager.cpp
Modified: branches/v1-6/OgreMain/src/OgreSceneManager.cpp
===================================================================
--- branches/v1-6/OgreMain/src/OgreSceneManager.cpp 2008-08-24 15:40:53 UTC (rev 7984)
+++ branches/v1-6/OgreMain/src/OgreSceneManager.cpp 2008-08-24 16:40:27 UTC (rev 7985)
@@ -5618,9 +5618,6 @@
// in prepareShadowTextures to coexist with multiple SMs
Camera* cam = createCamera(camName);
cam->setAspectRatio(shadowTex->getWidth() / shadowTex->getHeight());
- // Don't use rendering distance for light cameras; we don't want shadows
- // for visible objects disappearing, especially for directional lights
- cam->setUseRenderingDistance(false);
mShadowTextureCameras.push_back(cam);
// Create a viewport, if not there already
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.