Skip to content

Instantly share code, notes, and snippets.

@AlainBarrios
Created September 23, 2019 14:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlainBarrios/8f27fd25532e0eccd322ab9cf09f018d to your computer and use it in GitHub Desktop.
Save AlainBarrios/8f27fd25532e0eccd322ab9cf09f018d to your computer and use it in GitHub Desktop.
fog
float fog(vec2 coord, float multiplier){
vec2 newCoord = coord * multiplier;
float motion = fbm(newCoord + vec2(uTime * -.5, uTime * -.5) );
return fbm(newCoord + motion);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment