added force PPL checkbox

i-have-no-land-and-i-must-scream
BPengu1n 11 months ago
parent 3301ebb2cb
commit 4cdb76975a

@ -252,6 +252,7 @@ bool Launcher::SettingsPage::loadSettings()
lightFadeMultiplierSpinBox->setValue(Settings::shaders().mLightFadeStart);
lightsBoundingSphereMultiplierSpinBox->setValue(Settings::shaders().mLightBoundsMultiplier);
lightsMinimumInteriorBrightnessSpinBox->setValue(Settings::shaders().mMinimumInteriorBrightness);
loadSettingBool(Settings::shaders().mForcePerPixelLighting, *forcePPLCheckBox);
connect(lightingMethodComboBox, qOverload<int>(&QComboBox::currentIndexChanged), this,
&SettingsPage::slotLightTypeCurrentIndexChanged);
@ -470,6 +471,7 @@ void Launcher::SettingsPage::saveSettings()
Settings::shaders().mLightFadeStart.set(lightFadeMultiplierSpinBox->value());
Settings::shaders().mLightBoundsMultiplier.set(lightsBoundingSphereMultiplierSpinBox->value());
Settings::shaders().mMinimumInteriorBrightness.set(lightsMinimumInteriorBrightnessSpinBox->value());
saveSettingBool(*forcePPLCheckBox, Settings::shaders().mForcePerPixelLighting);
}
// Audio

@ -1028,7 +1028,7 @@
</property>
</widget>
</item>
<item row="8" column="1">
<item row="9" column="1">
<spacer name="verticalSpacer_10">
<property name="orientation">
<enum>Qt::Vertical</enum>
@ -1103,6 +1103,16 @@
</property>
</widget>
</item>
<item row="8" column="0">
<widget class="QCheckBox" name="forcePPLCheckBox">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;If true, force per-pixel lighting.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>Force per-pixel lighting</string>
</property>
</widget>
</item>
<item row="7" column="0">
<widget class="QLabel" name="lightsMinimumInteriorBrightnessLabel">
<property name="toolTip">

Loading…
Cancel
Save