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
740 B

namespace UnityEditor.VFX.Operator
{
[VFXHelpURL("Operator-Floor")]
[VFXInfo(category = "Math/Clamp")]
class Floor : VFXOperatorNumericUniform
{
public class InputProperties
{
public float x = 0.0f;
}
protected override sealed string operatorName { get { return "Floor"; } }
protected override sealed VFXExpression[] BuildExpression(VFXExpression[] inputExpression)
{
return new[] { new VFXExpressionFloor(inputExpression[0]) };
}
protected sealed override ValidTypeRule typeFilter
{
get
{
return ValidTypeRule.allowEverythingExceptIntegerAndDirection;
}
}
}
}