1
0
Fork 0

Add forgotten uniforms to the display stage (Rembrandt)

This commit is contained in:
Frederic Bouvier 2012-08-11 12:19:44 +02:00
parent 544784ca85
commit b7b4553db6

View file

@ -1211,7 +1211,25 @@ FGRenderer::buildDeferredDisplayCamera( osg::Camera* camera, flightgear::CameraI
osg::StateSet* ss = camera->getOrCreateStateSet();
ss->addUniform( _depthInColor );
ss->addUniform( info->projInverse );
ss->addUniform( info->viewInverse );
ss->addUniform( info->view );
ss->addUniform( info->bufferSize );
ss->addUniform( info->worldPosCart );
ss->addUniform( info->worldPosGeod );
ss->addUniform( info->shadowMatrix[0] );
ss->addUniform( info->shadowMatrix[1] );
ss->addUniform( info->shadowMatrix[2] );
ss->addUniform( info->shadowMatrix[3] );
ss->addUniform( _ambientFactor );
ss->addUniform( _sunDiffuse );
ss->addUniform( _sunSpecular );
ss->addUniform( _sunDirection );
ss->addUniform( _planes );
ss->addUniform( _shadowNumber );
ss->addUniform( _shadowDistances );
ss->addUniform( _fogColor );
ss->addUniform( _fogDensity );
}
void