- desactivate dynamic shadow if visibility is < 500

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8375 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 61fdfd85eab9f4c99e53e296df31f28f762f8d7a
Former-commit-id: aed3bf834dd1d1f1d01125766ba776a4b3e1f821
This commit is contained in:
torcs-ng 2022-08-06 16:48:56 +00:00
parent 7c50b636c9
commit 59625ed220

View file

@ -541,7 +541,7 @@ void SDRender::addCars(osg::Node* cars, osg::Node* carLights)
m_CarRoot->addChild(cars);
m_CarLightsRoot->addChild(carLights);
if ((ShadowIndex > 0) & (SDVisibility > 100))
if ((ShadowIndex > 0) & (SDVisibility > 500))
ShadowedScene();
osgUtil::Optimizer optimizer;