Unity Products:Amplify Shader Editor/Matrix4X4 and Unity Products:Amplify Shader Editor/Matrix From Vectors: Difference between pages
(Difference between pages)
AmplifyWiki (talk | contribs) m (1 revision imported) |
ampwiki>Amplify RnD Rick No edit summary |
||
Line 1: | Line 1: | ||
[[Unity_Products:Amplify_Shader_Editor/Nodes | Back to Node List]] | |||
== Matrix From Vector Node == | |||
The Matrix From Vector node creates and outputs a matrix from vectors specified by its input parameters and size specified by its [[#paramOutputType|Output Type]].<br/> | |||
<img class="responsive-img" src="http://wiki.amplify.pt/images/NodeDetail/MatrixFromVectorsNode.jpg"> | |||
<br/><font size="1">Nodes used: | |||
[[Unity_Products:Amplify_Shader_Editor/Vertex_Normal|Vertex Normal]], | |||
[[Unity_Products:Amplify_Shader_Editor/Vertex_Tangent|Vertex Tangent]], | |||
[[Unity_Products:Amplify_Shader_Editor/Cross|Cross]], | |||
[[Unity_Products:Amplify_Shader_Editor/Matrix_From_Vectors|Matrix From Vectors]], | |||
[[Unity_Products:Amplify_Shader_Editor/Vertex_Position|Vertex Position]], | |||
[[Unity_Products:Amplify_Shader_Editor/Multiply|Multiply]] | |||
</font> | |||
{| class="wikitable" style="width: 100%;" | {| class="wikitable" style="width: 100%;" | ||
Line 11: | Line 19: | ||
! style="width: 10%;" | Node Parameter !! Description !! style="width: 10%;" | Default Value | ! style="width: 10%;" | Node Parameter !! Description !! style="width: 10%;" | Default Value | ||
|- | |- | ||
| id=" | | id="paramOutputType" | Output Type | ||
| | | Specifies the size of the matrix to be created and outputted | ||
* '''Matrix3x3:''' Creates a 3x3 matrix from three float3 vectors specified by the node input | |||
* ''' | * '''Matrix4x4:''' Creates a 4x4 matrix from four float4 vectors specified by the node input | ||
| Matrix3x3 | |||
* ''' | |||
| | |||
|- | |- | ||
| id="paramInputToRow" | Input to Row | |||
| Specifies if input vectors are matrix rows or columns. | |||
| true | |||
|- style="background: #e5e5e5;" | | |||
| id="param0" | [0] | |||
| Vector to be placed at the matrix first row/column. Only visible if the respective input port is not connected. | |||
| 0,0,0 | |||
|- style="background: #e5e5e5;" | | |||
| id="param1" | [1] | |||
| Vector to be placed at the matrix second row/column.. Only visible if the respective input port is not connected. | |||
| 0,0,0 | |||
|- style="background: #e5e5e5;" | | |- style="background: #e5e5e5;" | | ||
| id=" | |id="param2" | [2] | ||
| | |Vector to be placed at the matrix third row/column. Only visible if the respective input port is not connected. | ||
| 0,0,0 | |||
| | |||
|- style="background: #e5e5e5;" | | |- style="background: #e5e5e5;" | | ||
| id=" | |id="param3" | [3] | ||
| | | Vector to be placed at the matrix fourth row/column. Only visible if the respective input port is not connected and Output Type is Matrix4x4. | ||
| | | 0,0,0,0 | ||
|} | |||
{| class="wikitable" style="width: 100%;" | |||
|- | |||
! style="width: 10%;" | Input Port !! Description !! style="width: 10%;" | Type | |||
|- | |||
| [0] | |||
| Vector to be placed at the matrix first row/column. | |||
| Float3/Float4 | |||
|- | |||
| [1] | |||
| Vector to be placed at the matrix second row/column. | |||
| Float3/Float4 | |||
|- | |- | ||
| [2] | |||
| Vector to be placed at the matrix third row/column. | |||
| Float3/Float4 | |||
|- style="background: #e5e5e5;" | | |- style="background: #e5e5e5;" | | ||
| | | [3] | ||
| | | Vector to be placed at the matrix fourth row/column. Only available when Output Type is Matrix4x4. | ||
| Float4 | |||
| | |||
|} | |} | ||
[[Unity_Products:Amplify_Shader_Editor/Nodes | Back to Node List]] | [[Unity_Products:Amplify_Shader_Editor/Nodes | Back to Node List]] | ||
[[Category:Nodes]][[Category: | [[Category:Nodes]][[Category:Matrix Operators]] |
Revision as of 16:25, 12 July 2018
Matrix From Vector Node
The Matrix From Vector node creates and outputs a matrix from vectors specified by its input parameters and size specified by its Output Type.
Nodes used:
Vertex Normal,
Vertex Tangent,
Cross,
Matrix From Vectors,
Vertex Position,
Multiply
Node Parameter | Description | Default Value |
---|---|---|
Output Type | Specifies the size of the matrix to be created and outputted
|
Matrix3x3 |
Input to Row | Specifies if input vectors are matrix rows or columns. | true |
[0] | Vector to be placed at the matrix first row/column. Only visible if the respective input port is not connected. | 0,0,0 |
[1] | Vector to be placed at the matrix second row/column.. Only visible if the respective input port is not connected. | 0,0,0 |
[2] | Vector to be placed at the matrix third row/column. Only visible if the respective input port is not connected. | 0,0,0 |
[3] | Vector to be placed at the matrix fourth row/column. Only visible if the respective input port is not connected and Output Type is Matrix4x4. | 0,0,0,0 |
Input Port | Description | Type |
---|---|---|
[0] | Vector to be placed at the matrix first row/column. | Float3/Float4 |
[1] | Vector to be placed at the matrix second row/column. | Float3/Float4 |
[2] | Vector to be placed at the matrix third row/column. | Float3/Float4 |
[3] | Vector to be placed at the matrix fourth row/column. Only available when Output Type is Matrix4x4. | Float4 |