Transform
Move, rotate, and scale image.
Node Data | |
|---|---|
Display name | |
Transform | |
Internal name | |
Node_Transform | |
Inheritances | |
| Node_Transform | |
Inputs | |
surface |
Surface In |
Output | |
enum |
Output Dimension Type |
vec2 |
Dimension |
vec2 |
Dimension Scale |
enum |
Render Mode |
Position | |
vec2 |
Position |
bool |
Round Position |
Rotation | |
bool |
Relative Anchor |
rotation |
Rotation |
slider |
Rotate By Velocity |
Scale | |
vec2 |
Scale |
Path | |
path |
Path |
slider |
Position |
bool |
Loop |
bool |
Rotate Along |
Render | |
slider |
Alpha |
Stretch | |
bool |
Stretch |
float |
Stretch Intensity |
float |
Inv Stretch |
Echo | |
bool |
Echo |
enum |
Echo Type |
int |
Echo Amount |
enum |
Echo Blend Mode |
Outputs | |
surface |
Surface Out |
atlas |
Atlas Data |
integer |
Dimension |
float |
Velocity |
float |
Direction |
float |
Speed |
Attributes | |
| Color Depth | |
| Interpolation | |
Transform a surface.
Properties
| Output | |
| Output Dimension Type | Methods for calculating output. - Same as Input: Use the same dimension as input. - Constant: Set constant pixel dimension. - Relative to Input: Set as multiple of the input dimension. - Fit Content: Sized to fit transformed surface. |
| Render Mode | Whether to add tiling or wrap the content. |
| Position | |
| Round Position | Round position to the nearest integer value to avoid anti-aliasing. |
| Rotation | |
| Relative Anchor | Set the Anchor relative to the surface or in world space. |
| Rotate By Velocity | Make the surface rotates to follow its movement set by Position. |
| Path | |
| Path | Move surface along path. |
| Position | Relative position on the path. |
| Rotate Along | Make the surface rotate along the path. |
| Stretch | |
| Stretch | Scale surface in the direction of its movement. |
| Stretch Intensity | Scaling amount per speed. |
| Inv Stretch | Apply inverse scaling on the perpendicular axis to simulate volume preservation effect. |
| Echo | |
| Echo | Draw multiple copies of the surface interpolating motion between frames. |
| Echo Type | Echo type. - Static: Echo from the origin transformation to the current transform. - Animated: Echo between frames. |
| Echo Amount | Amount of copies to draw. |
Commit History
| 1.21.3.009 |
|
|---|
Related Links
- Base Code: /scripts/node_transform/node_transform.gml
- Shader [sh_stretch]: /shaders/sh_stretch/sh_stretch.fsh
- Shader [sh_sample]: /shaders/sh_sample/sh_sample.fsh