Patch Editor
Utility Patches
3D Transform Pack Patch

3D and 3D Inverse Transform Pack Patches

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.

3D transform pack

Inputs

NameDescription

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

NameDescription

3D Transform

3D transform generated by input values.

You could connect this output to the matrix input of a Shader Code Asset patch.

3D Inverse Transform Pack

Inputs

NameDescription

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

NameDescription

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.