Unity Products:Amplify Shader Editor/Matrix From Vectors

From Amplify Creations Wiki
Revision as of 00:06, 2 December 2023 by AmplifyWiki (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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 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: 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
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


Back to Node List