Difference Scalar: Difference between revisions

From Terragen Documentation from Planetside Software
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
<!-- imported from file: module_48.html-->
<!-- imported from file: module_48.html-->


[[Category:Subtract| ]]
[[Category:Subtract]]

Revision as of 18:42, 1 June 2011

Difference Scalar

Node Description & Purpose:
The Difference family of nodes finds the difference of the two input values. The difference is the absolute value of the Input value minus the Input 2 value:

Output = absolute value of( Input minus Input 2 )

For more information about absolute values, see the documentation for the Abs Colour node.

For colours the calculation is done on a component-wise basis, for example:

Output.red = difference of Input.red and Input 2.red
Output.green = difference of Input.green and Input 2.green
Output.blue = difference of Input.blue and Input 2.blue

Node Type: Function

Settings:
These nodes just have one other setting, which lets you choose a node for Input 2.