Page 1 of 1

Error using gl_FragCoord in FFGL

Posted: Tue Apr 10, 2018 06:00
by tobetchi
FFGL plugin using gl_FragCoord load failed on Resolume 6.
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);
}
);
Resolume's AddSubtract example
https://github.com/resolume/ffgl/tree/m ... ddSubtract

Re: Error using gl_FragCoord in FFGL

Posted: Tue Apr 10, 2018 07:51
by tobetchi
Sorry for my typo.
I'll be looking good lint tool for glsl.

Re: Error using gl_FragCoord in FFGL

Posted: Wed Apr 11, 2018 07:37
by francoe
So, you're looking for a tool to fix the vac2 mistake?

Re: Error using gl_FragCoord in FFGL

Posted: Wed Apr 11, 2018 09:34
by Joris
What about a tool that tells you p is unused and unneeded? ;)