Last active
April 20, 2020 08:21
-
-
Save GOROman/c4620df858b21108e176513d1cd4abc4 to your computer and use it in GitHub Desktop.
Xevious BGM?
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
vec2 mainSound(float t){ | |
int x=int(t*10.)%32,y=x%8,z=x/8,a=164<<(x&1);a+=y==4?250:y==2||y==6?146-z*16-z:0; | |
return vec2(sin(float(a*20)*t)*0.5); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
vec2 mainSound(float t){
int x=int(t10.)%32,y=x%8,z=x/8,a=164<<(x&1);a+=y==4?250:y==2||y==6?146-z16-z:0;
float l =sin(float(a*20)*t)0.1;
float r =sign(sin(float(a20)*t))*0.1;
return vec2(l+r);
}