Scalar Basic

 
 
 

Category: Processing > Math

Shader Family: Texture

Output: Scalar

Used to perform basic mathematical functions between two input scalar values.

Name

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

Input 1

Defines the first scalar input.

Input 2

Defines the second scalar input.

Operation

Lets you perform a basic mathematical function using both input values.

Add: Simply adds the two values together.

Subtract: Subtracts input 2 from input 1.

Multiply: Simply multiplies the two values together.

Divide: Divides input 1 by input 2.

Minimum: The output will be the lowest of the two values.

Maximum: The output will be the highest of the two values.

Render Tree Usage

Used to connect one or two scalar-output shaders (texture generators, other math shaders) to the Input parameters. Once a function is selected, the output can be used on any shader that accepts a scalar input.