diff --git a/src/Features/LightLimitFix.cpp b/src/Features/LightLimitFix.cpp index f083e6a17..3517342fb 100644 --- a/src/Features/LightLimitFix.cpp +++ b/src/Features/LightLimitFix.cpp @@ -31,7 +31,12 @@ NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_WITH_DEFAULT( void LightLimitFix::DrawSettings() { if (ImGui::TreeNodeEx("Shadows", ImGuiTreeNodeFlags_DefaultOpen)) { + ImGui::BeginDisabled(REL::Module::IsVR()); ImGui::Checkbox("Enable Contact Shadows", &settings.EnableContactShadows); + if (REL::Module::IsVR() && ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled)) { + ImGui::SetTooltip("Disabled for VR"); + } + ImGui::EndDisabled(); ImGui::Checkbox("Extend First-Person Shadows", &settings.ExtendFirstPersonShadows); ImGui::TreePop(); @@ -179,8 +184,12 @@ void LightLimitFix::Reset() void LightLimitFix::Load(json& o_json) { - if (o_json[GetName()].is_object()) + if (o_json[GetName()].is_object()) { settings = o_json[GetName()]; + if (REL::Module::IsVR()) { + settings.EnableContactShadows = false; + } + } Feature::Load(o_json); }