43vec2
auger(vec2 uv,
float phase) {
45 vec2 ar = vec2(aspect, 1.0);
46 vec2 p = (uv - 0.5) * ar;
47 float r = length(p) + 0.001;
48 float a = atan(p.y, p.x);
49 float teeth = sin(a * 20.0 - log(r) * 31.0 -
time_f * 13.0 + phase);
50 float bore = 1.45 / r +
time_f * 1.35 + teeth * 0.32;
52 r += teeth * 0.052 + sin(r * 88.0 -
time_f * 17.0) * 0.026;
53 return mirrorRepeat(vec2(cos(a), sin(a)) * r / ar + 0.5);
60 vec2 u0 =
auger(tc, 0.0);
61 vec2 u1 =
auger(tc, 0.21);
62 vec2 u2 =
auger(tc, -0.21);
63 vec3 drilled = vec3(texture(samp, u1).r,
66 float r = length(tc - 0.5) + 0.001;
67 float ring = pow(0.5 + 0.5 * sin(-log(r) * 28.0 -
time_f * 15.0), 3.0);
68 vec3 echo = texture(samp,
mirrorRepeat(vec2(atan(tc.y - 0.5, tc.x - 0.5) /
TAU * 4.0,
70 vec3 rgb = mix(drilled, echo, 0.18 + ring * 0.32);
71 rgb *= 0.62 + ring * 0.85;
72 color = vec4(rgb, texture(samp, u0).a);