浏览代码

Save 1 cycle

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

2
Assets/ScriptableRenderLoop/ShaderLibrary/ImageBasedLighting.hlsl


float lerpFactor = (s + roughness) * a;
#else
// TODO: tweak this further to achieve a closer match to the reference.
float lerpFactor = (s + roughness) * saturate(lerp(a * a, a * a + a, NdotV * NdotV));
float lerpFactor = (s + roughness) * saturate(a * a + lerp(0.0, a, NdotV * NdotV));
#endif
// The result is not normalized as we fetch in a cubemap

正在加载...
取消
保存