* Add Flip/Flop node * Rename node Flip * Missed files Co-authored-by: itsmattkc <34096995+itsmattkc@users.noreply.github.com>
20 lines
419 B
GLSL
20 lines
419 B
GLSL
uniform sampler2D tex_in;
|
|
uniform bool horiz_in;
|
|
uniform bool vert_in;
|
|
|
|
varying vec2 ove_texcoord;
|
|
|
|
void main(void) {
|
|
if (!horiz_in && !vert_in) {
|
|
gl_FragColor = texture2D(tex_in, ove_texcoord);
|
|
return;
|
|
}
|
|
|
|
vec2 new_coord = ove_texcoord;
|
|
|
|
if (horiz_in) new_coord.x = 1.0 - new_coord.x;
|
|
if (vert_in) new_coord.y = 1.0 - new_coord.y;
|
|
|
|
gl_FragColor = texture2D(tex_in, new_coord);
|
|
}
|