Change local lights condition.

This commit is contained in:
armored-dragon 2025-05-01 07:35:48 -05:00
parent 5f2f2f1328
commit 13cb230640
No known key found for this signature in database
GPG key ID: C7207ACC3382AD8B

View file

@ -106,13 +106,19 @@ Flickable {
SettingBoolean {
settingText: "Local Lights";
settingEnabledCondition: () => { return Render.localLightsEnabled }
onSettingEnabledChanged: {
Render.localLightsEnabled = settingEnabled;
}
settingEnabledCondition: () => { return Render.renderMethod === 0 }
}
// NOTE: Once local lights have a proper toggle, the SettingBoolean above can be replaced with this one below.
// SettingBoolean {
// settingText: "Local Lights";
// settingEnabledCondition: () => { return Render.localLightsEnabled }
// onSettingEnabledChanged: {
// Render.localLightsEnabled = settingEnabled;
// }
// }
SettingBoolean {
settingText: "Ambient Occlusion";
settingEnabledCondition: () => { return Render.ambientOcclusionEnabled }