mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-01-03 14:23:43 +01:00
Add RenderTargetHdrEnabler
This commit is contained in:
parent
349241d0ab
commit
f07780cf7b
8 changed files with 219 additions and 3 deletions
|
|
@ -773,6 +773,7 @@ public class SettingsTab : ITab, IUiService
|
|||
|
||||
DrawCrashHandler();
|
||||
DrawMinimumDimensionConfig();
|
||||
DrawHdrRenderTargets();
|
||||
Checkbox("Auto Deduplicate on Import",
|
||||
"Automatically deduplicate mod files on import. This will make mod file sizes smaller, but deletes (binary identical) files.",
|
||||
_config.AutoDeduplicateOnImport, v => _config.AutoDeduplicateOnImport = v);
|
||||
|
|
@ -902,6 +903,22 @@ public class SettingsTab : ITab, IUiService
|
|||
_config.Save();
|
||||
}
|
||||
|
||||
private void DrawHdrRenderTargets()
|
||||
{
|
||||
var item = _config.HdrRenderTargets ? 1 : 0;
|
||||
ImGui.SetNextItemWidth(ImGui.CalcTextSize("M").X * 5.0f + ImGui.GetFrameHeight());
|
||||
var edited = ImGui.Combo("##hdrRenderTarget", ref item, "SDR\0HDR\0");
|
||||
ImGui.SameLine();
|
||||
ImGuiUtil.LabeledHelpMarker("Diffuse Dynamic Range",
|
||||
"Set the dynamic range that can be used for diffuse colors in materials without causing visual artifacts.\nChanging this setting requires a game restart. It also only works if Wait for Plugins on Startup is enabled.");
|
||||
|
||||
if (!edited)
|
||||
return;
|
||||
|
||||
_config.HdrRenderTargets = item != 0;
|
||||
_config.Save();
|
||||
}
|
||||
|
||||
/// <summary> Draw a checkbox for the HTTP API that creates and destroys the web server when toggled. </summary>
|
||||
private void DrawEnableHttpApiBox()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue