Unity Products:Amplify Shader Editor/Position From Transform
Position From Transform Node
The Position From Transform node retrieves the position vector from a 4x4 transform matrix set on its Input which effectively corresponds to its fourth column.
Nodes used:
Object To World Matrix,
Position From Transform
Input Port | Description | Type |
---|---|---|
Input | 4x4 transform matrix from which position will be retrieved. | Matrix 4x4 |
Output Port | Description | Type |
---|---|---|
XYZW | Position vector retrieved from transform matrix. | Float4 |
X | Returns only the X component of the position vector retrieved from transform matrix. | Float |
Y | Returns only the Y component of the position vector retrieved from transform matrix. | Float |
Z | Returns only the Z component of the position vector retrieved from transform matrix. | Float |
W | Returns only the W component of the position vector retrieved from transform matrix. | Float |