Skip to content

Commit

Permalink
(GSP-SR) Clamp ShadowQuality value
Browse files Browse the repository at this point in the history
  • Loading branch information
bagusnl committed May 11, 2024
1 parent 5b70e5e commit 22b8c30
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,16 @@ public int ResolutionQuality
//ShadowQuality
public int ShadowQuality
{
get => (int)Settings.GraphicsSettings.ShadowQuality;
get
{
var v = (int)Settings.GraphicsSettings.ShadowQuality;

// clamp values
if (v > 4) v = 4;
if (v == 1) v = 2;

return v;
}
set => Settings.GraphicsSettings.ShadowQuality = (Quality)value;
}
//LightQuality
Expand Down

0 comments on commit 22b8c30

Please sign in to comment.