Files
komplex/tools/packsrc/Blueprint/shaders/Buffer A.frag
Digital Artifex c8f3f1e981 Added shader packs
2025-08-19 09:33:45 -04:00

8 lines
325 B
GLSL

// the purpose of this buffer is too smooth out the sudden changes in the fft
void mainImage( out vec4 fragColor, in vec2 fragCoord )
{
vec2 uv = fragCoord.xy / iResolution.xy;
float old = texture(iChannel1, uv).x;
float new = texture(iChannel0, uv).x;
fragColor = vec4(mix(old, new, new > old ? .4 : .04));
}