Visual Shaders Overview
Visual Shaders Overview
Texture Transform Patch

Texture Transform Patch

Use the Texture Transform patch with a 2D Transform Pack patch to scale, rotate, pivot and reposition a 2D texture on a 2D or 3D object.

Inputs

NameDescription

Texture

Connect the texture asset patch to this input using either the RGBA, RGB, or A output as necessary.

Transform

Connect the 2D Transform output on the 2D Transform Pack patch to this input.

Output

NameDescription

Output

Connect this output to the input on the consumer patch.

Example

In the animation below, we're using the Texture Transform patch with a 2D Transform Pack patch to animate the scale of a texture.

We achieved this transformation with the graph below:

We connected:

  1. The RGBA output on the texture patch to the Texture input on the Texture Transform patch.

  2. The Loop Animation and Transition patches to the Scale input on the 2D Transform Pack patch.

    The Start and End values in the Transition patch are set to determine the degree the scale moves from one state to another.

  3. The 2D Transform output on the 2D Transform Pack patch to the Transform input on the Texture Transform patch.