Scalar to Vector: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Updated descriptions and added example images. |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
<div style="float:right; border-style:solid; padding:20px"><categorytree mode=pages hideroot=off>Convert</categorytree></div> | |||
[[File:ScalarToVector_00_GUI.png|none|470px|Scalar to Vector]] | |||
[[Category:Convert | == Overview == | ||
The Scalar to vector node converts the Input scalar into a vector. 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 vector, each component of the vector is simply set to the value of the scalar : | |||
<ul> | |||
vector.x becomes scalar <br /n> | |||
vector.y becomes scalar <br /n> | |||
vector.z becomes scalar <br /n> | |||
</ul> | |||
{| | |||
|- | |||
| [[File:ScalarToVector_02_SmoothVorToVecNodeNetwork.jpg|none|800px|Node network view of Smooth voronoi scalar function node assigned to Scalar to vector node, then displaced with Vector displacement shader.]] | |||
|- | |||
| [[File:ScalarToVector_01_SmoothVorToVecRender.jpg|none|800px|Render showing Smooth voronoi scalar function assigned to Scalar to vector node, then displaced with Vector displacement shader.]] | |||
|} | |||
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 Vector 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> | |||
[[Category:Convert]] | |||
Latest revision as of 22:47, 16 March 2022

Overview
The Scalar to vector node converts the Input scalar into a vector. 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 vector, each component of the vector 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 Vector 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.

