You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
760 B
27 lines
760 B
using System.Collections.Generic;
|
|
|
|
using UnityEngine.VFX;
|
|
|
|
|
|
namespace UnityEditor.VFX.Operator
|
|
{
|
|
[VFXHelpURL("Operator-Epsilon")]
|
|
[VFXInfo(name = "Epsilon (ε)", category = "Math/Constants")]
|
|
class Epsilon : VFXOperator
|
|
{
|
|
override public string name { get { return "Epsilon (ε)"; } }
|
|
|
|
protected override IEnumerable<VFXPropertyWithValue> outputProperties
|
|
{
|
|
get
|
|
{
|
|
yield return new VFXPropertyWithValue(new VFXProperty(typeof(float), "ε"));
|
|
}
|
|
}
|
|
|
|
protected override sealed VFXExpression[] BuildExpression(VFXExpression[] inputExpression)
|
|
{
|
|
return new[] { VFXOperatorUtility.EpsilonExpression[VFXValueType.Float] };
|
|
}
|
|
}
|
|
}
|