Last active
January 4, 2026 19:15
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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