WuhuIslandTesting/Library/PackageCache/com.unity.render-pipelines.core@8148.0.3-1/ShaderLibrary/CommonHighP.hlsl

6 lines
126 B
HLSL
Raw Normal View History

2025-01-07 02:06:59 +01:00
float3 SafeNormalizeHighP(float3 inVec)
{
float3 dp3 = max(REAL_MIN, dot(inVec, inVec));
return inVec * rsqrt(dp3);
}