Would you like a conversion example from Pixel Bender to GLSL or a guide to writing similar filters in modern Photoshop with JavaScript?
input image4 src; output pixel4 dst;
pixel4 p = sampleNearest(src, outCoord()); float gray = (p.r + p.g + p.b) / 3.0; dst = float4(gray, gray, gray, p.a); pixel bender toolkit