浏览代码

Clamp the MIP map level to UNITY_SPECCUBE_LOD_STEPS

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

3
Assets/ScriptableRenderLoop/ShaderLibrary/ImageBasedLighting.hlsl


// This will blur the reflection.
// TODO: find a more accurate MIP bias function.
mipLevel = lerp(mipLevel, maxMipLevel, bias);
// All MIP map levels beyond UNITY_SPECCUBE_LOD_STEPS contain invalid data.
mipLevel = min(mipLevel, UNITY_SPECCUBE_LOD_STEPS);
}
if (NdotL > 0.0)

正在加载...
取消
保存