Unity Products:Amplify Shader Editor/Matrix From Vectors
Jump to navigation
Jump to search
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 |