Convolution
Apply convolution operation on each pixel using a custom 3x3 kernel.
Node Data | |
|---|---|
Display name | |
Convolution | |
Internal name | |
Node_Convolution | |
Inheritances | |
| Node_Processor | |
| Node_Convolution | |
Inputs | |
Node_Convolution | |
toggle |
Channel |
surface |
Surface In |
surface |
Mask |
slider |
Mix |
int |
Size |
matrix |
Kernel |
bool |
Normalize |
Outputs | |
Node_Convolution | |
surface |
Surface Out |
Attributes | |
| Color Depth | |
| Oversample | |
Convolution operation is a building block for many effects. Convolution node act on each pixel, calculating sum of all the pixels around it multiply with some number.

Properties
Surface In
Input surface
Kernel
A 3x3 matrix defining the value to multiply each neighbor pixel with.
Related Links
- Base Code: /scripts/node_convolution/node_convolution.gml
- Shader [sh_convolution]: /shaders/sh_convolution/sh_convolution.fsh