Hi, i am trying to load and correctly display a texture through the ofxShadertoy addon but the texture is displayed inverted. In the .frag shader I tried to modify by subtracting -1 to the vec2 uv having a favorable result by mirroring the texture vertically but not horizontally:
void mainImage( out vec4 fragColor, in vec2 fragCoord )
vec2 uv = 1.0-fragCoord.xy / iResolution.xy;
fragColor = texture(iChannel0, uv);
I tried to invert the texture too before allocate it but doesn't works:
tex.getTextureData (). bFlipTexture = true;
I'm fairly newbie to GLSL, any clues on how to solve this?