Add limit for render distance settings.

This commit is contained in:
2023-02-21 22:45:51 +08:00
parent 07f62c7aeb
commit 2f19e8daad

View File

@@ -6,7 +6,7 @@ using RangeAttribute = Cryville.Common.ComponentModel.RangeAttribute;
namespace Cryville.Crtr {
public class Settings {
[Category("graphics")]
[LogarithmicScale][Step(0.5f)][Precision(1e-2)]
[LogarithmicScale][Range(0.01f, 20f)][Step(0.5f)][Precision(1e-2)]
public float BackwardClippingDistance {
get {
return PlayerPrefs.GetFloat("BackwardClippingDistance", 0.2f);
@@ -132,7 +132,7 @@ namespace Cryville.Crtr {
}
[Category("graphics")]
[LogarithmicScale][Step(0.5f)][Precision(1e-1)]
[LogarithmicScale][Range(0.1f, 200f)][Step(0.5f)][Precision(1e-1)]
public float RenderDistance {
get {
return PlayerPrefs.GetFloat("RenderDistance", 4);