WuhuIslandTesting/Library/PackageCache/com.unity.render-pipelines.core@8148.0.3-1/ShaderLibrary/CommonHighP.hlsl
2025-01-07 02:06:59 +01:00

6 lines
No EOL
126 B
HLSL

float3 SafeNormalizeHighP(float3 inVec)
{
float3 dp3 = max(REAL_MIN, dot(inVec, inVec));
return inVec * rsqrt(dp3);
}