Using Luma Shaders

Hi

I have tried using shaders from the glsl.io but stuck at Luma shader.
How to use luma as in shader in below?

http://transitions.glsl.io/transition/00973cee8e0353c73305

Thanks

hi,
you have to pass the uniform variables from the Cinder app

`uniform sampler2D from, to; // textures to be bound
uniform float progress;
uniform vec2 resolution;

uniform sampler2D lumaTex;// texture to be bound
uniform bool invertLuma;
uniform float softness;`

Have a look at sample from Paul Houx!