Skip to content

Commit

Permalink
wip: freq/levelReact
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Look authored and andrewlook committed Aug 19, 2024
1 parent 8658c48 commit 1de13ee
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions resources/shaders/vortex.fs
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,8 @@ vec2 rotate(vec2 st, float a) {

void mainImage(out vec4 fragColor, in vec2 fragCoord) {

float vol = max(0.01, volumeRatio);

float bVal = bassRatio / vol;
float tVal = trebleRatio / vol;
//float bVal = max(0.01, bassRatio / volumeRatio);
//float tVal = max(0.01, trebleRatio / volumeRatio);

bVal *= iWow1;
tVal *= iWow2;
float bVal = bassRatio * levelReact;
float tVal = trebleRatio * frequencyReact;

float norm_x = max(0.01, tVal);
float norm_y = max(0.01, 1. - bVal * 0.5);
Expand Down

0 comments on commit 1de13ee

Please sign in to comment.