Reenable ability to change exposure/lwhite.

This commit is contained in:
vlj 2014-04-25 00:59:02 +02:00
parent 5b8b1a8b57
commit c5fbd5ff84
3 changed files with 12 additions and 2 deletions

View File

@ -2091,8 +2091,8 @@ namespace FullScreenShader
{
glUniform1i(uniform_tex, TU_tex);
glUniform1i(uniform_logluminancetex, TU_loglum);
// glUniform1f(uniform_exposure, exposure);
// glUniform1f(uniform_lwhite, Lwhite);
glUniform1f(uniform_exposure, exposure);
glUniform1f(uniform_lwhite, Lwhite);
}
GLuint DepthOfFieldShader::Program;

View File

@ -48,6 +48,14 @@ DebugSliderDialog::DebugSliderDialog(std::string id, irr::core::stringw msg) :
LabelWidget* message = getWidget<LabelWidget>("title");
message->setText( msg.c_str(), false );
float val;
if (m_id == "lwhite")
val = irr_driver->getLwhite() * 10.;
if (m_id == "exposure")
val = irr_driver->getExposure() * 100.;
getWidget<SpinnerWidget>("value_slider")->setValue(val);
}
// ------------------------------------------------------------------------------------------------------

View File

@ -356,6 +356,8 @@ void Track::cleanup()
//-----------------------------------------------------------------------------
void Track::loadTrackInfo()
{
irr_driver->setLwhite(1.);
irr_driver->setExposure(0.09);
// Default values
m_use_fog = false;
m_fog_max = 1.0f;