浏览代码

Add a minor numerical improvement

/Branch_Batching2
Evgenii Golubev 8 年前
当前提交
6ac1b296
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      Assets/ScriptableRenderPipeline/ShaderLibrary/AreaLighting.hlsl

4
Assets/ScriptableRenderPipeline/ShaderLibrary/AreaLighting.hlsl


if (omega < HALF_PI)
{
// Partial horizon occlusion (case #2).
irradiance = e + INV_PI * g - (INV_PI * h);
irradiance = e + INV_PI * (g - h);
irradiance = INV_PI * g + (INV_PI * h);
irradiance = INV_PI * (g + h);
}
}

正在加载...
取消
保存