1
0
Fork 0

Add some predefined uniforms to Rembrandt stages

This commit is contained in:
Frederic Bouvier 2012-08-01 22:42:00 +02:00
parent e980178213
commit 64a8924035

View file

@ -1210,6 +1210,7 @@ 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->bufferSize );
} }
void void
@ -1267,6 +1268,8 @@ FGRenderer::buildLightingLightsPass(CameraInfo* info, FGRenderingPipeline::Pass*
StateSet* ss = lightCam->getOrCreateStateSet(); StateSet* ss = lightCam->getOrCreateStateSet();
ss->addUniform( _planes ); ss->addUniform( _planes );
ss->addUniform( info->bufferSize ); ss->addUniform( info->bufferSize );
ss->addUniform( _fogColor );
ss->addUniform( _fogDensity );
lightCam->setName( "LightCamera" ); lightCam->setName( "LightCamera" );
lightCam->setClearMask(0); lightCam->setClearMask(0);
lightCam->setAllowEventFocus(false); lightCam->setAllowEventFocus(false);