浏览代码

Remove the MIP map level bias of 1

(omegaS / omegaP == 1) already results in the correct 'mipLevel' value of 0.
/main
GitHub 8 年前
当前提交
129ff6b6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      Assets/ScriptableRenderLoop/ShaderLibrary/ImageBasedLighting.hlsl

2
Assets/ScriptableRenderLoop/ShaderLibrary/ImageBasedLighting.hlsl


float omegaS = rcp(sampleCount) * invPdf;
// invOmegaP is precomputed on CPU and provide as a parameter of the function
// float omegaP = FOUR_PI / (6.0f * cubemapWidth * cubemapWidth);
mipLevel = 0.5 * log2(omegaS * invOmegaP + 1.0);
mipLevel = 0.5 * log2(omegaS * invOmegaP);
// Bias the MIP map level to compensate for the importance sampling bias.
// This will blur the reflection.

正在加载...
取消
保存