Scalar Unary

 
 
 

Category: Processing > Math

Shader Family: Texture

Output: Scalar

Applies a single process to a single scalar value.

Name

The shader's name. Enter any name you like, or leave the default.

Input

Defines the scalar value input.

Operation

Defines the operation the shader will use.

Absolute Value: Makes a value absolute. For example, a negative Red value is made positive.

Negate: Makes a positive value negative, and a negative value positive.

Invert: Inverts the RGBA values

Render Tree Usage

Used to connect a shader (texture generators, other math shaders) to the Input parameter. Once an operation is selected, the output can be used on any shader that accepts a scalar input.