Shader that matches filter(DILATE)?

Anyone know if such a thing exists? Would be nice to provide shader equivalents for the basic filters included in p5js so that users can easily switch between 2D/filters and WEBGL

have you tried the shader examples in processing. You can then look at the shader using the show sketch folder command.

  1. I am asking specifically whether anyone has implemented the DILATE filter in p5js as a shader for use with the WEBGL renderer ?

  2. I am suggesting that we make make (publicly) available the set 8 filters in p5js (THRESHOLD, GRAY, OPAQUE, INVERT, POSTERIZE, BLUR, ERODE, DILATE and BLUR.) as shaders (with the same names) so that people can more easily port sketches between the default renderer and WEBGL.

1 Like