浏览代码

Remove randomization

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

5
Assets/ScriptableRenderLoop/ShaderLibrary/ImageBasedLighting.hlsl


{
float3x3 localToWorld = GetLocalFrame(N);
float2 randNum = InitRandom(V.xy * 0.5 + 0.5);
float2 u = frac(randNum + Fibonacci2d(i, sampleCount));
float2 u = Fibonacci2d(i, sampleCount);
// Bias samples towards the mirror direction to reduce variance.
// This will have a side effect of making the reflection sharper.

// This will blur the reflection.
// TODO: bias more accurately once the 'UNITY_SPECCUBE_MAX_LOD' restriction has been lifted.
mipLevel = lerp(mipLevel, UNITY_SPECCUBE_MAX_LOD, sqrt(bias));
}
if (NdotL > 0.0)

正在加载...
取消
保存