Derive Node Reference

Math Node

Description

The Math node performs a basic math operation of two values A and B. The available operations are:

 

– Add

– Subtract

– Multiply

– Divide

Sample Tree

Properties

Property Name Property Type Description
Operation
Enumerator

Select a math operation. Available operations are:

 

  • - Add
  • - Subtract
  • - Multiply
  • - Divide
Input A
Float
Uniform float to be used as input for the math operation (only available if the A-input is not connected).
Input B
Float
Uniform float to be used as input for the math operation (only available if the B-input is not connected).

Inputs

Input Name Allowed Data Types Description
A
Float, RGBA
Input that takes the first texture for the math operation.
B
Float, RGBA
Input that takes the second texture for the math operation.

Outputs

Output Name Data Type Description
Result
Float if all inputs are of type float, otherwise RGBA.
Outputs a sum, difference, product or quotient of A and B, depending on the selected operation.

Login