Re-added gamma setting to color filter shader
Fixed issue with setting default values of sliders for gauss shader
This commit is contained in:
@@ -53,7 +53,7 @@ LLFloaterPostProcess::LLFloaterPostProcess() : LLFloater(std::string("Post-Proce
|
||||
|
||||
/// Color Filter Callbacks
|
||||
childSetCommitCallback("ColorFilterToggle", &LLFloaterPostProcess::onBoolToggle, (char*)"enable_color_filter");
|
||||
//childSetCommitCallback("ColorFilterGamma", &LLFloaterPostProcess::onFloatControlMoved, &(gPostProcess->tweaks.gamma()));
|
||||
childSetCommitCallback("ColorFilterGamma", &LLFloaterPostProcess::onFloatControlMoved, (char*)"gamma");
|
||||
childSetCommitCallback("ColorFilterBrightness", &LLFloaterPostProcess::onFloatControlMoved, (char*)"brightness");
|
||||
childSetCommitCallback("ColorFilterSaturation", &LLFloaterPostProcess::onFloatControlMoved, (char*)"saturation");
|
||||
childSetCommitCallback("ColorFilterContrast", &LLFloaterPostProcess::onFloatControlMoved, (char*)"contrast");
|
||||
@@ -252,7 +252,7 @@ void LLFloaterPostProcess::syncMenu()
|
||||
|
||||
/// Sync Color Filter Menu
|
||||
childSetValue("ColorFilterToggle", gPostProcess->tweaks.useColorFilter());
|
||||
//childSetValue("ColorFilterGamma", gPostProcess->tweaks.gamma());
|
||||
childSetValue("ColorFilterGamma", gPostProcess->tweaks.getGamma());
|
||||
childSetValue("ColorFilterBrightness", gPostProcess->tweaks.brightness());
|
||||
childSetValue("ColorFilterSaturation", gPostProcess->tweaks.saturation());
|
||||
childSetValue("ColorFilterContrast", gPostProcess->tweaks.contrast());
|
||||
@@ -272,4 +272,7 @@ void LLFloaterPostProcess::syncMenu()
|
||||
childSetValue("BloomExtract", gPostProcess->tweaks.extractLow());
|
||||
childSetValue("BloomSize", gPostProcess->tweaks.bloomWidth());
|
||||
childSetValue("BloomStrength", gPostProcess->tweaks.bloomStrength());
|
||||
|
||||
childSetValue("GaussBlurToggle", gPostProcess->tweaks.useGaussBlurFilter());
|
||||
childSetValue("GaussBlurPasses", gPostProcess->tweaks.getGaussBlurPasses());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user