Padding
Make image bigger by adding space in 4 directions.
Node Data | |
|---|---|
Display name | |
Padding | |
Internal name | |
Node_Padding | |
Inheritances | |
| Node_Processor | |
| Node_Padding | |
Inputs | |
Surfaces | |
surface |
Surface In |
Padding | |
enum |
Pad Mode |
ipadding |
Padding |
vec2 |
Dimension |
enum |
H. Align |
enum |
V. Align |
Filling | |
enum |
Fill Method |
color |
Fill Color |
Outputs | |
surface |
Surface Out |
Attributes | |
| Color Depth | |
Add empty space around the surface in 4 directions.
Properties
| Padding | |
| Pad Mode | Whether to extends out by a fixed amount or extends to a target dimension. |
| Padding | For Pad out mode, width to extends per each direction. |
| H. Align | For Pad to size mode, defines horizontal alignment. |
| V. Align | For Pad to size mode, defines vertical alignment. |
| Filling | |
| Fill Method | Add background fill. |
Related Links
- Base Code: /scripts/node_padding/node_padding.gml
- Shader [sh_atlas]: /shaders/sh_atlas/sh_atlas.fsh