1#property description Yellow blob that spins to the beat 2#property frequency 1 3 4void main(void) { 5 vec2 normCoord = (uv - 0.5) * aspectCorrection; 6 float t = iFrequency * iTime / 4.0; 7 vec2 center = vec2(sin(t), cos(t)); 8 //center *= 0.5; 9 center *= iAudioLevel * 0.9 + 0.1; 10 11 vec4 c = vec4(1., 1., 0., 1.); 12 c.a = clamp(length(center - normCoord), 0., 1.); 13 c.a = pow(c.a, iAudioHi * 3. + 0.1); 14 c.a = 1.0 - c.a; 15 c.a *= iIntensity; 16 17 fragColor = composite(texture(iInput, uv), premultiply(c)); 18} 19