Operator Node - digicrafts/2DEffectsShaderEditorNodes GitHub Wiki

ACos Node

acos(input) Returns the arccosine of the specified value.

Asin Node

asin(input) Returns the arcsine of the specified value.

ATan Node

atan(input). Returns the arctangent of the specified value.

Abs Node

abs(input). Returns the absolute value of the specified value.

Add Node

output = A+B. Return value by adding A to B.

Average Node

return average value of input A and B.

Ceil Node

ceil(input). Returns the smallest integer value that is greater than or equal to the specified value.

Clamp Node

clamp(input,min,max). Clamps the specified value to the specified minimum and maximum range.

Cos Node

cos(input). Returns the cosine of the specified value.

Ddx Node

ddx(input). Returns the partial derivative of the specified value with respect to the screen-space x-coordinate.

Ddy Node

ddy(input). Returns the partial derivative of the specified value with respect to the screen-space y-coordinate.

Distance Node

distance(A,B) — calculate the distance between two points.

Divide Node

output = A / B. Return value A divide by B.

Dot Node

dot(A,B) — calculate the dot product of two vectors

Exp2 Node

exp2(input) — return 2 raised to the power of the parameter

Exp Node

exp(input) — return the natural exponentiation of the parameter

Floor Node

floor(input) — find the nearest integer less than or equal to the parameter.

Fmod Node

fmod(A,B) — compute value of one parameter modulo another.

Frac Node

frac(input) - Returns the fractional (or decimal) part of input; which is greater than or equal to 0 and less than 1.

Fwidth Node

fwidth(input) — return the sum of the absolute value of derivatives in x and y. Available only in the fragment shader, these functions return the sum of the absolute derivatives in x and y using local differencing for the input argument p. fwidth is equivalent to abs(dFdx(p)) + abs(dFdy(p)) .

Inverse Node

inverse(input) — calculate the inverse of a matrix. inverse returns the inverse of the matrix m. The values in the returned matrix are undefined if m is singular or poorly-conditioned (nearly singular).

Length Node

length(input). Calculate the length of a vector.

Lerp Node

lerp(A,B,t) linearly interpolate between two values. lerp performs a linear interpolation between x and y using a to weight between them. The return value is computed as x*(1−a)+y*a.

Log Node

log(input). Return Log value of input.

Log10 Node

log10(input). Return log10 value of input.

Log2 Node

log2(input). Return log2 value of input.

Max Node

max(A,B). Return maximum value of A and B.

Min Node

min(A,B). Return minimum value of A and B.

Mul Node

input = mul(A,B). Return A multiply by B.

Multiply Node

output = A * B. Return value A multiply by B.

Normalize Node

normalize(input) — calculates the unit vector in the same direction as the original vector. normalize returns a vector with the same direction as its parameter, v, but with length 1.

One divide by Node

output = 1 / input. Return value of One divde by input.

One minus Node

output = 1 - input. Return value of One minus input.

Radians Node

radians(input) — convert a quantity in degrees to radians.

Round Node

round(input) — find the nearest integer less than or equal to the parameter. round returns a value equal to the nearest integer to x. The fraction 0.5 will round in a direction chosen by the implementation, presumably the direction that is fastest. This includes the possibility that round(x) returns the same value as roundEven(x) for all values of x.

Sign Node

sign(input) — extract the sign of the parameter. 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.

Sin Node

sin(input) — return the sine of the parameter

Smoothstep Node

smoothstep(A,B,t) — perform Hermite interpolation between two values. smoothstep performs smooth Hermite interpolation between 0 and 1 when edge0 < x < edge1. This is useful in cases where a threshold function with a smooth transition is desired.

Sqrt Node

sqrt(input) — return the square root of the parameter

Step Node

step(A,B) — generate a step function by comparing two values

Subtract Node

output = A-B. Return A subtract by B.

Trunc Node

trunc(input) — find the nearest integer less than or equal to the parameter.