Erosion
Computes the minimum pixel value within a local neighborhood. The structuring element is a square kernel centered at each pixel, and its size is determined by the specified radius.
Parameters
texture
Texture: The input texture to be filtered. Default: The entire canvas
texOffset
Vec2: The offset used for sampling neighboring pixels. Default: (1.0 / width, 1.0 / height)
radius
Int: The radius of the erosion operation. Default: 3