mirror of
https://github.com/zbanks/radiance.git
synced 2026-06-16 04:26:25 +02:00
13 lines
370 B
GLSL
13 lines
370 B
GLSL
#property description Shake the image when there are lows
|
|
|
|
void main(void) {
|
|
float t = iTime * 2. * M_PI;
|
|
vec2 sweep = vec2(cos(3. * t), sin(2. * t));
|
|
|
|
float amount = iIntensity * 0.3 * max(iAudioLow - 0.2, 0.) * sawtooth(iTime * iFrequency, 0.3);
|
|
|
|
vec2 newUV = (uv - 0.5) + sweep * amount + 0.5;
|
|
|
|
fragColor = texture(iInput, newUV) * box(newUV);
|
|
}
|