浏览代码

Pass the correct parameter to DisneyDiffuseNoPI()

/Add-support-for-light-specular-color-tint
Evgenii Golubev 7 年前
当前提交
59ae8046
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 5
      ScriptableRenderPipeline/Core/ShaderLibrary/ImageBasedLighting.hlsl

5
ScriptableRenderPipeline/Core/ShaderLibrary/ImageBasedLighting.hlsl


if (NdotL > 0.0)
{
float3 H = normalize(L + V);
float LdotH = dot(L, H);
float disneyDiffuse = DisneyDiffuseNoPI(NdotV, NdotL, LdotH, RoughnessToPerceptualRoughness(roughness));
float LdotV = dot(L, V);
float disneyDiffuse = DisneyDiffuseNoPI(NdotV, NdotL, LdotV, RoughnessToPerceptualRoughness(roughness));
acc.z += disneyDiffuse * weightOverPdf;
}

正在加载...
取消
保存