update SDRender
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@5422 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 1eccdd58c798e54963994699967b22df733554c0 Former-commit-id: 440dceace66588068584d876977f1b5b464bc4d6
This commit is contained in:
parent
cf95226d79
commit
9f482f7155
1 changed files with 3 additions and 3 deletions
|
@ -203,7 +203,7 @@ osg::ref_ptr<osg::Node> SDRender::Init(osg::Group *m_sceneroot, tTrack *track)
|
||||||
SDVisibility = 600.0;
|
SDVisibility = 600.0;
|
||||||
break;
|
break;
|
||||||
case TR_RAIN_HEAVY:
|
case TR_RAIN_HEAVY:
|
||||||
SDVisibility = 400.0;
|
SDVisibility = 200.0;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
GfLogWarning("Unsupported rain strength value %d (assuming none)",
|
GfLogWarning("Unsupported rain strength value %d (assuming none)",
|
||||||
|
@ -227,7 +227,7 @@ osg::ref_ptr<osg::Node> SDRender::Init(osg::Group *m_sceneroot, tTrack *track)
|
||||||
stateSet->setMode(GL_DEPTH_TEST, osg::StateAttribute::ON);
|
stateSet->setMode(GL_DEPTH_TEST, osg::StateAttribute::ON);
|
||||||
|
|
||||||
osg::Material* material = new osg::Material;
|
osg::Material* material = new osg::Material;
|
||||||
//material->setColorMode(osg::Material::OFF); // switch glColor usage off
|
material->setColorMode(osg::Material::OFF); // switch glColor usage off
|
||||||
stateSet->setAttributeAndModes(material, osg::StateAttribute::OVERRIDE|osg::StateAttribute::ON);
|
stateSet->setAttributeAndModes(material, osg::StateAttribute::OVERRIDE|osg::StateAttribute::ON);
|
||||||
stateSet->setMode(GL_LIGHTING, osg::StateAttribute::OVERRIDE|osg::StateAttribute::ON);
|
stateSet->setMode(GL_LIGHTING, osg::StateAttribute::OVERRIDE|osg::StateAttribute::ON);
|
||||||
|
|
||||||
|
@ -302,7 +302,7 @@ void SDRender::UpdateLight( void )
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
BaseFogColor[0] = 0.84f;
|
BaseFogColor[0] = 0.84f;
|
||||||
BaseFogColor[1] = 0.84f;
|
BaseFogColor[1] = 0.87f;
|
||||||
BaseFogColor[2] = 1.00f;
|
BaseFogColor[2] = 1.00f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue