Transform
Moves, rotates and scales the picture inside a texture.
Outputs
| Name | Type | Description |
|---|---|---|
| Texture Output | Texture | The moved picture. |
Inputs
| Name | Type | Description |
|---|---|---|
| Texture Input | Texture | The texture to move. |
Parameters
| Name | Type | Description |
|---|---|---|
| Output Format | Enum | Whether the output takes the size and type of the input or uses the settings below.Choices: Copy Input, Manual |
| Texture Type | Enum | The channels of the output texture. Follows the input unless the output format is Manual.Choices: R (u8), RG (u8), RGBA (u8) |
| Texture Size | Vector 2 Int | The size of the output texture in pixels. Follows the input unless the output format is Manual. |
| Tiling Mode X | Enum | What fills the space to the left and right of the picture.Choices: None, Repeat, Mirrored Repeat, Clamp to Edge |
| Tiling Mode Y | Enum | What fills the space above and below the picture.Choices: None, Repeat, Mirrored Repeat, Clamp to Edge |
| Transform | Transform 3D | Where the picture goes. Nothing connected leaves it where it is. |
Transform moves the picture inside a texture, without changing the texture itself. It pans, zooms and rotates the image within the frame, and decides what shows in the parts of the frame the picture no longer covers. The transform is built with a Transform 3D operator, and the units are pixels: a translation of 100 moves the picture 100 pixels, and a scale of 2 doubles its size.
The picture is measured from its top left corner, so a rotation or a scale on its own turns or grows the picture around that corner. To turn it around its middle, give the rotation in the Transform 3D a pivot at the center of the picture, in pixels.
The tiling modes say what fills the frame beyond the picture, separately for across and down. None leaves it transparent, so a moved picture has an empty band behind it. Repeat continues the picture again and again, which turns any texture into a scrolling, endlessly tiled pattern. Mirrored Repeat does the same with every other copy flipped, so the seams match. Clamp to Edge stretches the edge pixels outwards.
The output can have a different size from the input, so this is also the way to place a small picture on a large frame or to crop into a texture.
Keywords: translate, rotate, scale, pan, zoom, tile, repeat, mirror, offset