Using Luma Shaders


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


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!