浏览代码

Use the greater-or-equal comparison (better behaved)

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

2
Assets/ScriptableRenderPipeline/ShaderLibrary/AreaLighting.hlsl


float cosSqOmega = cosOmega * cosOmega;
[branch]
if (cosSqOmega > sinSqSigma)
if (cosSqOmega >= sinSqSigma)
{
irradiance = sinSqSigma * saturate(cosOmega);
}

正在加载...
取消
保存