浏览代码

Add a comment

/stochastic_alpha_test
Evgenii Golubev 7 年前
当前提交
0ccbb812
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 5
      ScriptableRenderPipeline/Core/ShaderLibrary/BSDF.hlsl

5
ScriptableRenderPipeline/Core/ShaderLibrary/BSDF.hlsl


return 0.5 / (lambdaV + lambdaL);
}
// Precompute part of LambdaV
// Precompute a part of LambdaV.
// Note on this linear approximation.
// Exact for roughness values of 0 and 1. Also, exact when the cosine is 0 or 1.
// Otherwise, the worst case relative error is around 10%.
float GetSmithJointGGXApproxLambdaV(float NdotV, float roughness)
{
float a = roughness;

正在加载...
取消
保存