Move Use Inverse Squared Falloff above Falloff Exponent in lights
Prevents the checkbox in UI from moving around when toggling the value.
This commit is contained in:
@@ -30,18 +30,18 @@ public:
|
||||
API_FIELD(Attributes="EditorOrder(3), DefaultValue(0.0f), EditorDisplay(\"Light\"), Limit(0, 1000, 0.01f)")
|
||||
float SourceLength = 0.0f;
|
||||
|
||||
/// <summary>
|
||||
/// Controls the radial falloff of light when UseInverseSquaredFalloff is disabled.
|
||||
/// </summary>
|
||||
API_FIELD(Attributes="EditorOrder(13), DefaultValue(8.0f), EditorDisplay(\"Light\"), Limit(2, 16, 0.01f), VisibleIf(nameof(UseInverseSquaredFalloff), true)")
|
||||
float FallOffExponent = 8.0f;
|
||||
|
||||
/// <summary>
|
||||
/// Whether to use physically based inverse squared distance falloff, where Radius is only clamping the light's contribution.
|
||||
/// </summary>
|
||||
API_FIELD(Attributes="EditorOrder(14), DefaultValue(false), EditorDisplay(\"Light\")")
|
||||
API_FIELD(Attributes = "EditorOrder(13), DefaultValue(false), EditorDisplay(\"Light\")")
|
||||
bool UseInverseSquaredFalloff = false;
|
||||
|
||||
/// <summary>
|
||||
/// Controls the radial falloff of light when UseInverseSquaredFalloff is disabled.
|
||||
/// </summary>
|
||||
API_FIELD(Attributes="EditorOrder(14), DefaultValue(8.0f), EditorDisplay(\"Light\"), Limit(2, 16, 0.01f), VisibleIf(nameof(UseInverseSquaredFalloff), true)")
|
||||
float FallOffExponent = 8.0f;
|
||||
|
||||
/// <summary>
|
||||
/// IES texture (light profiles from real world measured data)
|
||||
/// </summary>
|
||||
|
||||
@@ -29,18 +29,18 @@ public:
|
||||
API_FIELD(Attributes="EditorOrder(2), DefaultValue(0.0f), EditorDisplay(\"Light\"), Limit(0, 1000, 0.01f)")
|
||||
float SourceRadius = 0.0f;
|
||||
|
||||
/// <summary>
|
||||
/// Controls the radial falloff of light when UseInverseSquaredFalloff is disabled.
|
||||
/// </summary>
|
||||
API_FIELD(Attributes="EditorOrder(13), DefaultValue(8.0f), EditorDisplay(\"Light\"), Limit(2, 16, 0.01f), VisibleIf(nameof(UseInverseSquaredFalloff), true)")
|
||||
float FallOffExponent = 8.0f;
|
||||
|
||||
/// <summary>
|
||||
/// Whether to use physically based inverse squared distance falloff, where Radius is only clamping the light's contribution.
|
||||
/// </summary>
|
||||
API_FIELD(Attributes="EditorOrder(14), DefaultValue(false), EditorDisplay(\"Light\")")
|
||||
API_FIELD(Attributes = "EditorOrder(13), DefaultValue(false), EditorDisplay(\"Light\")")
|
||||
bool UseInverseSquaredFalloff = false;
|
||||
|
||||
/// <summary>
|
||||
/// Controls the radial falloff of light when UseInverseSquaredFalloff is disabled.
|
||||
/// </summary>
|
||||
API_FIELD(Attributes="EditorOrder(14), DefaultValue(8.0f), EditorDisplay(\"Light\"), Limit(2, 16, 0.01f), VisibleIf(nameof(UseInverseSquaredFalloff), true)")
|
||||
float FallOffExponent = 8.0f;
|
||||
|
||||
/// <summary>
|
||||
/// IES texture (light profiles from real world measured data)
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user