ShaderNodeSingleOpΒΆ
Computes all kind of single parameter operators. The operators work on floats (f) or vectors/colors (v). If a vector (x,y,z) is used with on a float operator "op", the node returns the vector (op(x),op(y),op(z)). The alpha component of the result vector depends on the mask mode.
Mode
Operator to use.
- X|Red (v) : Returns the first component X
 - Y|Green (v) : Returns the second component X
 - Z|Blue (v) : Returns the third component X
 - W (v) : Returns the fourth component X
 - Alpha (v) : Returns the alpha component of X or 1 if no alpha is available
 - ADiv : Remove the alpha from the color. Returns (R/A, G/A, B/A, A).
 - AMul : Apply the alpha to the color. Returns (R*A, G*A, B*A, A).
 - Hue : Returns the hue of the color
 - Saturation : Returns the saturation of the color
 - Luminosity : Returns the luminosity of the color
 - Abs (f) : Computes the absolute value of X
 - Ceil (f) : Returns the smallest integer >= X
 - Floor (f) : Returns the biggest integer <= X
 - Fraction (f) : Computes the fractional part of X
 - One Over Sqrt (f) : Computes 1/sqrt(X)
 - Invert (f) : Computes 1-X
 - Length (f) : Computes the length of the X vector
 - Log (f) : Computes the natural logarithm of the X
 - Neg (f) : Returns -X
 - Normalize (v) : Returns the normalized vector of X
 - Round (f) : Returns the closest integer with X
 - Sign (f) : Returns 1 is X is positive, -1 is X is negative
 - Sqrt (f) : Return the square root of X
 - ArcCos (f) : Computes the principal value of the arc cosine of X in radians
 - ArcSin (f) : Computes the principal value of the arc sinus of X in radians
 - ArcTan (f) : Computes the principal value of the arc tangent of X in radians
 - Cos (f) : Computes the cosine of X in radians
 - Degrees (f) : Convert X from radians to degrees
 - Radians (f) : Convert X from degrees to radians
 - Sin (f) : Computes the sinus of X in radians
 - Tan (f) : Computes the tangent of X in radians
 - Du (f) : Computes the derivative of X along the u surface parameter over a shading element
 - Dv (f) : Computes the derivative of X along the v surface parameter over a shading element
 - Du*du (f) : Computes the derivative of X along the u surface parameter over a pixel
 - Dv*dv (f) : Computes the derivative of X along the v surface parameter over a pixel
 - min(|Du*du|,|Dv*dv|) (f) : Computes the smallest absolute derivative of X along the surface over a pixel
 - max(|Du*du|,|Dv*dv|) (f) : Computes the biggest absolute derivative of X along the surface over a pixel
 - avg(|Du*du|,|Dv*dv|) (f) : Computes the average absolute derivative of X along the surface over a pixel
 
Mask Mode
How the alpha component of the result is computed.
- None : No mask is computed
 - Alpha : The node returns a 4D vector. The alpha value of X is preserved by the operation. If X has no alpha component, alpha of the result is 1.