Reenable ability to change exposure/lwhite.
This commit is contained in:
parent
5b8b1a8b57
commit
c5fbd5ff84
@ -2091,8 +2091,8 @@ namespace FullScreenShader
|
|||||||
{
|
{
|
||||||
glUniform1i(uniform_tex, TU_tex);
|
glUniform1i(uniform_tex, TU_tex);
|
||||||
glUniform1i(uniform_logluminancetex, TU_loglum);
|
glUniform1i(uniform_logluminancetex, TU_loglum);
|
||||||
// glUniform1f(uniform_exposure, exposure);
|
glUniform1f(uniform_exposure, exposure);
|
||||||
// glUniform1f(uniform_lwhite, Lwhite);
|
glUniform1f(uniform_lwhite, Lwhite);
|
||||||
}
|
}
|
||||||
|
|
||||||
GLuint DepthOfFieldShader::Program;
|
GLuint DepthOfFieldShader::Program;
|
||||||
|
@ -48,6 +48,14 @@ DebugSliderDialog::DebugSliderDialog(std::string id, irr::core::stringw msg) :
|
|||||||
|
|
||||||
LabelWidget* message = getWidget<LabelWidget>("title");
|
LabelWidget* message = getWidget<LabelWidget>("title");
|
||||||
message->setText( msg.c_str(), false );
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------------
|
||||||
|
@ -356,6 +356,8 @@ void Track::cleanup()
|
|||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
void Track::loadTrackInfo()
|
void Track::loadTrackInfo()
|
||||||
{
|
{
|
||||||
|
irr_driver->setLwhite(1.);
|
||||||
|
irr_driver->setExposure(0.09);
|
||||||
// Default values
|
// Default values
|
||||||
m_use_fog = false;
|
m_use_fog = false;
|
||||||
m_fog_max = 1.0f;
|
m_fog_max = 1.0f;
|
||||||
|
Loading…
Reference in New Issue
Block a user