Add limit for render distance settings.
This commit is contained in:
@@ -6,7 +6,7 @@ using RangeAttribute = Cryville.Common.ComponentModel.RangeAttribute;
|
|||||||
namespace Cryville.Crtr {
|
namespace Cryville.Crtr {
|
||||||
public class Settings {
|
public class Settings {
|
||||||
[Category("graphics")]
|
[Category("graphics")]
|
||||||
[LogarithmicScale][Step(0.5f)][Precision(1e-2)]
|
[LogarithmicScale][Range(0.01f, 20f)][Step(0.5f)][Precision(1e-2)]
|
||||||
public float BackwardClippingDistance {
|
public float BackwardClippingDistance {
|
||||||
get {
|
get {
|
||||||
return PlayerPrefs.GetFloat("BackwardClippingDistance", 0.2f);
|
return PlayerPrefs.GetFloat("BackwardClippingDistance", 0.2f);
|
||||||
@@ -132,7 +132,7 @@ namespace Cryville.Crtr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Category("graphics")]
|
[Category("graphics")]
|
||||||
[LogarithmicScale][Step(0.5f)][Precision(1e-1)]
|
[LogarithmicScale][Range(0.1f, 200f)][Step(0.5f)][Precision(1e-1)]
|
||||||
public float RenderDistance {
|
public float RenderDistance {
|
||||||
get {
|
get {
|
||||||
return PlayerPrefs.GetFloat("RenderDistance", 4);
|
return PlayerPrefs.GetFloat("RenderDistance", 4);
|
||||||
|
Reference in New Issue
Block a user