For instance, Based on AddSubtract (FFGL example of Resolume), rewrite it for the following.
Code: Select all
static const std::string fragmentShaderCode = STRINGIFY(
uniform sampler2D inputTexture;
uniform vec3 brightness;
void main()
{
vac2 p = gl_FragCoord.xy;
gl_FragColor = texture2D(inputTexture, gl_TexCoord[0].st);
}
);
https://github.com/resolume/ffgl/tree/m ... ddSubtract