浏览代码

Adjust the way the importance sampling bias is calculated

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

2
Assets/ScriptableRenderLoop/ShaderLibrary/ImageBasedLighting.hlsl


// Bias samples towards the mirror direction to reduce variance.
// This will have a side effect of making the reflection sharper.
// Ref: Stochastic Screen-Space Reflections, p. 67.
const float bias = 0.3 * roughness;
const float bias = 0.1 + 0.2 * roughness;
u.x = lerp(u.x, 0.0, bias);
float3 L;

正在加载...
取消
保存