浏览代码

Merge remote-tracking branch 'refs/remotes/origin/master' into Vertex-interpolator-and-tesselation-improvement

/main
sebastienlagarde 8 年前
当前提交
f87075a5
共有 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.

正在加载...
取消
保存