sign returns -1.0 if
x is less than 0.0, 0.0 if
x is equal to 0.0, and +1.0 if
x is greater than 0.0.
x Type: float
Type: float
JSON
{
"Type": "sign(float)",
"Name": "sign(float)",
"Category": 1,
"InputPins": [
{
"Connection": null,
"Id": "x",
"Type": "float"
}
],
"OutputPins": [
{
"Id": "",
"Type": "float"
}
]
}
x Type: vec2
Type: vec2
JSON
{
"Type": "sign(vec2)",
"Name": "sign(vec2)",
"Category": 1,
"InputPins": [
{
"Connection": null,
"Id": "x",
"Type": "vec2"
}
],
"OutputPins": [
{
"Id": "",
"Type": "vec2"
}
]
}
x Type: vec3
Type: vec3
JSON
{
"Type": "sign(vec3)",
"Name": "sign(vec3)",
"Category": 1,
"InputPins": [
{
"Connection": null,
"Id": "x",
"Type": "vec3"
}
],
"OutputPins": [
{
"Id": "",
"Type": "vec3"
}
]
}
x Type: vec4
Type: vec4
JSON
{
"Type": "sign(vec4)",
"Name": "sign(vec4)",
"Category": 1,
"InputPins": [
{
"Connection": null,
"Id": "x",
"Type": "vec4"
}
],
"OutputPins": [
{
"Id": "",
"Type": "vec4"
}
]
}