One liner pseudo random generator with HLSL
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 nrand(float2 uv)|
|return frac(sin(dot(uv, float2(12.9898, 78.233))) * 43758.5453);|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Thanks for the code! It was very simple but it was exactly what I was looking for with a quick google search.