Skip to content

Instantly share code, notes, and snippets.

@Lokno
Last active January 4, 2026 19:15
Show Gist options
  • Select an option

  • Save Lokno/965bbc971866b4f3542b7a70677fcbff to your computer and use it in GitHub Desktop.

Select an option

Save Lokno/965bbc971866b4f3542b7a70677fcbff to your computer and use it in GitHub Desktop.
obs-shaderfilter (2.6.0) shader that will squish a source based on the audio_magnitude selected in the parameters
uniform float audio_magnitude;
uniform float amount<
string label = "Maximum Squish Height";
string widget_type = "slider";
float minimum = 0.0;
float maximum = 1.0;
float step = 0.01;
> = 0.4;
float4 mainImage(VertData v_in) : TARGET
{
float curr_bounce = audio_magnitude*amount;
float y = (v_in.uv.y-curr_bounce)*(1.0/(1.0-curr_bounce));
float4 col = image.Sample(textureSampler, float2(v_in.uv.x,y));
return col;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment