mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
added force PPL checkbox
This commit is contained in:
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><html><head/><body><p>If true, force per-pixel lighting.</p></body></html></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…
x
Reference in New Issue
Block a user