mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-27 21:35:24 +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);
|
lightFadeMultiplierSpinBox->setValue(Settings::shaders().mLightFadeStart);
|
||||||
lightsBoundingSphereMultiplierSpinBox->setValue(Settings::shaders().mLightBoundsMultiplier);
|
lightsBoundingSphereMultiplierSpinBox->setValue(Settings::shaders().mLightBoundsMultiplier);
|
||||||
lightsMinimumInteriorBrightnessSpinBox->setValue(Settings::shaders().mMinimumInteriorBrightness);
|
lightsMinimumInteriorBrightnessSpinBox->setValue(Settings::shaders().mMinimumInteriorBrightness);
|
||||||
|
loadSettingBool(Settings::shaders().mForcePerPixelLighting, *forcePPLCheckBox);
|
||||||
|
|
||||||
connect(lightingMethodComboBox, qOverload<int>(&QComboBox::currentIndexChanged), this,
|
connect(lightingMethodComboBox, qOverload<int>(&QComboBox::currentIndexChanged), this,
|
||||||
&SettingsPage::slotLightTypeCurrentIndexChanged);
|
&SettingsPage::slotLightTypeCurrentIndexChanged);
|
||||||
@ -470,6 +471,7 @@ void Launcher::SettingsPage::saveSettings()
|
|||||||
Settings::shaders().mLightFadeStart.set(lightFadeMultiplierSpinBox->value());
|
Settings::shaders().mLightFadeStart.set(lightFadeMultiplierSpinBox->value());
|
||||||
Settings::shaders().mLightBoundsMultiplier.set(lightsBoundingSphereMultiplierSpinBox->value());
|
Settings::shaders().mLightBoundsMultiplier.set(lightsBoundingSphereMultiplierSpinBox->value());
|
||||||
Settings::shaders().mMinimumInteriorBrightness.set(lightsMinimumInteriorBrightnessSpinBox->value());
|
Settings::shaders().mMinimumInteriorBrightness.set(lightsMinimumInteriorBrightnessSpinBox->value());
|
||||||
|
saveSettingBool(*forcePPLCheckBox, Settings::shaders().mForcePerPixelLighting);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Audio
|
// Audio
|
||||||
|
@ -1028,7 +1028,7 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="8" column="1">
|
<item row="9" column="1">
|
||||||
<spacer name="verticalSpacer_10">
|
<spacer name="verticalSpacer_10">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
@ -1103,6 +1103,16 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</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">
|
<item row="7" column="0">
|
||||||
<widget class="QLabel" name="lightsMinimumInteriorBrightnessLabel">
|
<widget class="QLabel" name="lightsMinimumInteriorBrightnessLabel">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user