Skip to content

Instantly share code, notes, and snippets.

Last active April 29, 2023 06:14
What would you like to do?
One liner pseudo random generator with HLSL
float nrand(float2 uv)
return frac(sin(dot(uv, float2(12.9898, 78.233))) * 43758.5453);
Copy link

Thanks for the code! It was very simple but it was exactly what I was looking for with a quick google search.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment