Skip to content

Instantly share code, notes, and snippets.

@ikekou
Created May 22, 2020 16:13
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 ikekou/ac9f7091de5db536c4e824fad383c38c to your computer and use it in GitHub Desktop.
Save ikekou/ac9f7091de5db536c4e824fad383c38c to your computer and use it in GitHub Desktop.
// https://thebookofshaders.com/12/?lan=jp
vec2 random2( vec2 p ) {
return fract(sin(vec2(dot(p,vec2(127.1,311.7)),dot(p,vec2(269.5,183.3))))*43758.5453);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment