Use the 3D Transform Pack to generate a 3D transform defined by position, scale and rotation input values. The 3D Inverse Transform Pack generates an inverse 3D transform by inverting position, rotation and scale input values.
You can either create these input values procedurally or retrieve them from an object in the Scene panel, using global and local transform patches.
Below we retrieved the global transform from the directionalLight0 scene object to generate a 3D transform for this object. We then passed the global transform to a Shader Code Asset assigned to a material.
Inputs
Name | Description |
---|---|
Translation | The position of an object on the X, Y and z axes in 3D space. |
Scale | The scale of an object on the X, Y and z axes in 3D space. |
Rotation | The rotation of an object on the X, Y and z axes in 3D space. |
Output
Name | Description |
---|---|
3D Transform | 3D transform generated by input values. You could connect this output to the matrix input of a Shader Code Asset patch. |
Inputs
Name | Description |
---|---|
Translation | The position of an object on the X, Y and z axes in 3D space. |
Scale | The scale of an object on the X, Y and z axes in 3D space. |
Rotation | The rotation of an object on the X, Y and z axes in 3D space. |
Output
Name | Description |
---|---|
3D Transform | Inverse of 3D transform generated by input values. You could connect this output to the matrix input of a Shader Code Asset patch. |