Skip to content

Instantly share code, notes, and snippets.

@MartinBspheroid
Created November 18, 2013 19:02
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 MartinBspheroid/7533368 to your computer and use it in GitHub Desktop.
Save MartinBspheroid/7533368 to your computer and use it in GitHub Desktop.
GLSL noise one-liner
float rand(vec2 co){
return fract(sin(dot(co.xy ,vec2(12.9898,78.233))) * 43758.5453);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment