Answers for "HLSL generate random number"

0

HLSL generate random number

float rand(float2 co) {
	return(frac(sin(dot(co.xy, float2(12.9898, 78.233))) * 43758.5453)) * 1;
}
Posted by: Guest on March-25-2021

Browse Popular Code Answers by Language