forked from speed-dreams/speed-dreams-code
remove warning
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@5482 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: e659893b254d76b0a13a22dd98642b4633901ef5 Former-commit-id: 736848215efb252f548e70ba38040ba2792e1f72
This commit is contained in:
parent
ca2c8ff716
commit
7dc18b097a
1 changed files with 3 additions and 3 deletions
|
@ -245,7 +245,7 @@ void SDRender::Init(tTrack *track)
|
|||
thesky->add_cloud_layer(layer);
|
||||
}*/
|
||||
|
||||
int weather = SDTrack->local.clouds;
|
||||
//int weather = SDTrack->local.clouds;
|
||||
|
||||
/*else if (grNbCloudLayers == 1)
|
||||
{
|
||||
|
@ -468,7 +468,7 @@ void SDRender::ShadowedScene()
|
|||
{
|
||||
osg::ref_ptr<osgShadow::ParallelSplitShadowMap> pssm =
|
||||
new osgShadow::ParallelSplitShadowMap(NULL, 3);
|
||||
pssm->setTextureResolution(2048);
|
||||
pssm->setTextureResolution(4096);
|
||||
pssm->setMinNearDistanceForSplits(0.25f);
|
||||
pssm->setMaxFarDistance(1024.0f);
|
||||
pssm->setPolygonOffset(osg::Vec2(10.0f, 20.0f));
|
||||
|
@ -518,7 +518,7 @@ void SDRender::addCars(osg::Node* cars)
|
|||
optimizer.optimize(m_CarRoot.get());
|
||||
optimizer.optimize(m_scene.get());
|
||||
|
||||
if (SHADOW_TECHNIQUE > 0 & SDVisibility > 4000)
|
||||
if ((SHADOW_TECHNIQUE > 0) & (SDVisibility > 4000))
|
||||
ShadowedScene();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue