Clamp 0 Colour: Difference between revisions

From Terragen Documentation from Planetside Software
Jump to navigation Jump to search
jrfconvert import
 
No edit summary
Line 4: Line 4:
[[Image:drex_module_67_image_0.png|485pxpx|Clamp 0 Colour]]
[[Image:drex_module_67_image_0.png|485pxpx|Clamp 0 Colour]]
__NOTOC__
__NOTOC__
<!-- imported from file: module_67.html-->
 
'''Node Description & Purpose: '''<br /> The Clamp 0 family of nodes allow you to clamp, or restrict, the values of the colour or scalar coming into the Input so they are always at least 0. If the value is less than 0 it will become 0. All other values remain unchanged. This is useful for ensuring there are no negative numbers passing through a node network.
 
The clamping is done component-wise for colours. Here is an example using a colour with the following values:
 
Input.red is -1<br /> Input.green is 0.5<br /> Input.blue is 2
 
After clamping the colour will have these values:
 
Input.red becomes 0 �(-1 was less than 0, so it becomes 0)<br /> Input.green remains 0.5 �(0.5 is greater than 0, so it's unchanged)<br /> Input.blue remains 2 �(2 is greater than 0, so it's unchanged)
 
'''Node Type: ''' Function
 
'''Settings: '''<br /> This node has no other settings apart from the Input node.

Revision as of 04:20, 11 July 2010

Clamp 0 Colour

Clamp 0 Colour


Node Description & Purpose:
The Clamp 0 family of nodes allow you to clamp, or restrict, the values of the colour or scalar coming into the Input so they are always at least 0. If the value is less than 0 it will become 0. All other values remain unchanged. This is useful for ensuring there are no negative numbers passing through a node network.

The clamping is done component-wise for colours. Here is an example using a colour with the following values:

Input.red is -1
Input.green is 0.5
Input.blue is 2

After clamping the colour will have these values:

Input.red becomes 0 �(-1 was less than 0, so it becomes 0)
Input.green remains 0.5 �(0.5 is greater than 0, so it's unchanged)
Input.blue remains 2 �(2 is greater than 0, so it's unchanged)

Node Type: Function

Settings:
This node has no other settings apart from the Input node.