59 vec2 p = (tc - 0.5) * vec2(aspect, 1.0);
60 float warp = sin(p.y * 18.0 +
time_f * 2.0) * 0.035;
61 float weft = cos(p.x * 21.0 -
time_f * 1.6) * 0.035;
62 vec2 uvA = tc + vec2(
warp, weft);
63 vec2 uvB = tc + vec2(weft, -
warp);
65 vec3 a = texture(samp, uvA).rgb;
66 vec3 b = texture(samp, uvB).gbr;
67 float overUnder = step(0.0, sin(p.x * 28.0) * sin(p.y * 28.0));
68 vec3 woven =
xorColor(a, b * (1.2 + overUnder * 1.3));
70 float thread = pow(abs(sin(p.x * 28.0 + p.y * 28.0 -
time_f * 3.0)), 10.0);
73 vec3 tint = mix(tintA, tintB, overUnder);
74 vec3 result = mix(mix(a, woven, 0.55), woven * tint * 1.3, 0.38);
75 result += tint * thread * 0.38;
76 color = vec4(clamp(result, 0.0, 1.0), texture(samp, tc).a);