浏览代码

Add the missing term

/main
Evgenii Golubev 8 年前
当前提交
5cede9ef
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
      Assets/ScriptableRenderLoop/ShaderLibrary/ImageBasedLighting.hlsl

1
Assets/ScriptableRenderLoop/ShaderLibrary/ImageBasedLighting.hlsl


// - OmegaS : Solid angle associated to a sample
// - OmegaP : Solid angle associated to a pixel of the cubemap
float NdotH = saturate(dot(N, H));
float pdf = D_GGX(NdotH, roughness) * 0.25;
float omegaS = 1.0 / (sampleCount * pdf); // Solid angle associated with the sample
// invOmegaP is precomputed on CPU and provide as a parameter of the function

正在加载...
取消
保存