Created
November 18, 2013 19:02
-
-
Save MartinBspheroid/7533368 to your computer and use it in GitHub Desktop.
GLSL noise one-liner
This file contains 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
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