浏览代码

Vary the importance sampling bias with roughness

/main
Evgenii Golubev 8 年前
当前提交
d04e32fb
共有 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.2;
const float bias = 0.3 * roughness;
u.x = lerp(u.x, 0.0, bias);
float3 L;

正在加载...
取消
保存