Bender Toolkit [updated] — Pixel

Would you like a conversion example from Pixel Bender to GLSL or a guide to writing similar filters in modern Photoshop with JavaScript?

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

Adobe officially discontinued the years ago (last version was around CS5/CS6 era). It was a technology for creating custom image-processing filters (shaders) for Photoshop, After Effects, and Flash Player. Would you like a conversion example from Pixel

void evaluatePixel()