Unity Products:Amplify Shader Editor/Vector From Matrix

From Amplify Creations Wiki
Jump to navigation Jump to search

Back to Node List

Vector From Matrix Node

The Vector From Matrix node retrieves either a row or column according to its selected Mode and Index from a matrix specified on its Input.

Node Parameter Description Default Value
Input Matrix from which vector value is to be retrieved. Only visible if the respective input port is not connected. 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
Mode Select if vector is to be retrieved from either a row or column from the specified matrix
  • Row: Matrix to be retrieved from a matrix row.
  • Column: Matrix to be retrieved from a matrix column.
Row
Index Select which row or column to be retrieved from the specified matrix. This value will be on the [0 2] range for 3x3 matrices and [0 3] for 4x4 matrices. 0


Input Port Description Type
Input Matrix from which vector value is to be retrieved. Matrix3x3/4x4
Output Port Description Type
XYZ/W Vector retrieved from transform matrix. Float3/4
X Returns only the X component of the vector retrieved from matrix. Float
Y Returns only the Y component of the vector retrieved from matrix. Float
Z Returns only the Z component of the vector retrieved from matrix. Float
W Returns only the W component of the vector retrieved from matrix. Only available for 4x4 matrices. Float

Back to Node List