Replace Image
Replace instances of an image with a new one.
Node Data | |
|---|---|
Display name | |
Replace Image | |
Internal name | |
Node_Surface_Replace | |
Inheritances | |
| Node_Processor | |
| Node_Surface_Replace | |
Inputs | |
Surfaces | |
surface |
Base Image |
surface |
Target Image |
surface |
Replacement Image |
enum |
Array Mode |
Searching | |
bool |
Fast Mode |
slider |
Color Threshold |
slider |
Pixel Threshold |
Rendering | |
bool |
Draw Base Image |
bool |
Replace Empty |
Outputs | |
surface |
Surface Out |

Surface replace node search for subsurfaces in a surface and replace with a new one.

Properties
| Surfaces | |
| Array Mode | When the Target Image and the Replacement Image is an array. You can set whether to match each target to a replacement, or to randomize the replacement image index. |
| Searching | |
| Fast Mode | Match only the origin point of the image instead of the entire image. This results in faster processing but may not be as accurate. |
| Color Threshold | The threshold used to differentiate two color. |
| Pixel Threshold | The amount of pixels need to be match to consider a subsurface. |
| Rendering | |
| Draw Base Image | Whether to draw original image behind the replacement. |
Commit History
| 1.14.0 |
|
|---|
Related Links
- Base Code: /scripts/node_surface_replace/node_surface_replace.gml
- Shader [sh_surface_replace_replace]: /shaders/sh_surface_replace_replace/sh_surface_replace_replace.fsh
- Shader [sh_surface_replace_fast_find]: /shaders/sh_surface_replace_fast_find/sh_surface_replace_fast_find.fsh
- Shader [sh_surface_replace_fast_replace]: /shaders/sh_surface_replace_fast_replace/sh_surface_replace_fast_replace.fsh
- Shader [sh_surface_replace_find]: /shaders/sh_surface_replace_find/sh_surface_replace_find.fsh