Skip to content

Instantly share code, notes, and snippets.

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

SpicyMelonYT commented Nov 22, 2021

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