60 vec2 ar = vec2(aspect, 1.0);
61 vec2 p = (tc - 0.5) * ar;
64 float a = atan(p.y, p.x);
65 float cubeWave = sin(squareR * 72.0 -
time_f * 13.0 + a * 8.0);
66 a +=
time_f * 0.9 + 1.15 / squareR + cubeWave * 0.26;
68 vec2 q = vec2(cos(a), sin(a)) * (squareR + cubeWave * 0.04);
72 vec2 uv =
mirrorRepeat(q / ar + vec2(shell, a / 3.14159265359));
73 vec4 c0 = texture(samp, uv);
74 vec4 c1 = texture(samp,
mirrorRepeat(1.0 - uv.yx + shell * 0.13));
75 float frame = pow(abs(cubeWave), 5.0);
76 color = vec4(mix(c0.rgb, c1.bgr, 0.3 + frame * 0.3) * (0.65 + frame * 0.65), c0.a);