Invert Y axis within GLSL code?
While trying to import and tweak a shader in order to manipulate it through the patcher and variables controlled by specific keys, I came across a problem : the flame origin and direction is determined by gl_FragCoord, but I couldn't find a way nor a function within the code to invert the Y axis in order to reverse the display of the shader, much like the @rotate 180. 0. 0. would do in the patcher.
Is it even possible to do so?
Here's the patcher for reference (Shadertoy link in the shader jxs file):
Regards,
Theo
easiest may be to invert the ypart variable, e.g.float ypart = 1. - (gl_FragCoord.y/resolution.y);
and any other place that uses that calculation.
Thanks, that does it for the smoke only but it gives me new ideas to approach it.
I'll keep in touch for updates.