Complement 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:
__NOTOC__
__NOTOC__


'''Node Description & Purpose: '''<br /> The Complement family of nodes takes the Input value and outputs that value subtracted from one:


[[Complement Colour]]
Output = 1 '''minus''' Input
 
For colours the calculation is done on a component-wise basis, for example:
 
Output.red = 1 '''minus''' Input.red<br /> Output.green = 1 '''minus''' Input.green<br /> Output.blue = 1 '''minus''' Input.blue
 
These nodes are most useful when you are dealing with input values which go from 0 to 1. They can be useful for giving the effect of flipping or inverting a value, for example an input of 0.9 would become 0.1. If you were creating an effect using alpha blending you could use the Complement node to flip an alpha value from almost opaque to nearly transparent.
 
'''Node Type: ''' Function
 
'''Settings: '''<br /> These nodes have no other settings apart from the Input node.

Revision as of 04:52, 11 July 2010

Complement Scalar

Complement Scalar


Node Description & Purpose:
The Complement family of nodes takes the Input value and outputs that value subtracted from one:

Output = 1 minus Input

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

Output.red = 1 minus Input.red
Output.green = 1 minus Input.green
Output.blue = 1 minus Input.blue

These nodes are most useful when you are dealing with input values which go from 0 to 1. They can be useful for giving the effect of flipping or inverting a value, for example an input of 0.9 would become 0.1. If you were creating an effect using alpha blending you could use the Complement node to flip an alpha value from almost opaque to nearly transparent.

Node Type: Function

Settings:
These nodes have no other settings apart from the Input node.