Add forgotten uniforms to the display stage (Rembrandt)
This commit is contained in:
parent
544784ca85
commit
b7b4553db6
1 changed files with 18 additions and 0 deletions
|
@ -1211,7 +1211,25 @@ FGRenderer::buildDeferredDisplayCamera( osg::Camera* camera, flightgear::CameraI
|
||||||
|
|
||||||
osg::StateSet* ss = camera->getOrCreateStateSet();
|
osg::StateSet* ss = camera->getOrCreateStateSet();
|
||||||
ss->addUniform( _depthInColor );
|
ss->addUniform( _depthInColor );
|
||||||
|
ss->addUniform( info->projInverse );
|
||||||
|
ss->addUniform( info->viewInverse );
|
||||||
|
ss->addUniform( info->view );
|
||||||
ss->addUniform( info->bufferSize );
|
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
|
void
|
||||||
|
|
Loading…
Reference in a new issue