Scalar to Colour: Difference between revisions

From Terragen Documentation from Planetside Software
Jump to navigation Jump to search
No edit summary
Redmaw (talk | contribs)
Updated descriptions and added newer GUI image.
Line 1: Line 1:
[[Image:drex_module_97_image_0.png|485pxpx|Scalar to Colour]]
<div style="float:right; border-style:solid; padding:20px"><categorytree mode=pages hideroot=off>Convert</categorytree></div>


'''Node Description & Purpose: '''<br /> The Scalar to colour/vector nodes convert the Input scalar into a colour or vector, respectively. This conversion happens according to the node input type conversion rules which are described [[Node Input Type Conversion|here]].<br /><br />'''Node Type: ''' Function<br /><br />'''Settings: '''<br /> These nodes have no other settings apart from the Input node.
[[File:ScalarToColour_00_GUI.png|none|470px|Scalar to Colour]]
 
 
==Overview==
The Scalar to colour node converts the Input scalar into a colour. This conversion happens according to the node input type conversion rules which are described in the [[Node Input Type Conversion]] documentation.  
 
When converting a scalar to a colour, each component of the colour is simply set to the value of the scalar:
<ul>
colour.red becomes scalar <br /n>
colour.green becomes scalar  <br /n>
colour.blue becomes scalar  <br /n>
</ul>
 
 
These nodes have no other settings apart from the Input node.
 
 
'''Settings:'''
*'''Name: '''This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Scalar to Colour nodes in a project.
*'''Enable:''' When checked, the node is active and the conversion operation will take place. When unchecked the values assigned to its Main Input, if any, are passed through, otherwise a value of 0 is passed through.
 
<br /n>


<!-- imported from file: module_97.html-->


[[Category:Convert]]
[[Category:Convert]]

Revision as of 21:55, 16 March 2022

Scalar to Colour
Scalar to Colour


Overview

The Scalar to colour node converts the Input scalar into a colour. This conversion happens according to the node input type conversion rules which are described in the Node Input Type Conversion documentation.


When converting a scalar to a colour, each component of the colour is simply set to the value of the scalar:


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


Settings:

  • Name: This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Scalar to Colour nodes in a project.
  • Enable: When checked, the node is active and the conversion operation will take place. When unchecked the values assigned to its Main Input, if any, are passed through, otherwise a value of 0 is passed through.