浏览代码

Avoid a compiler warning

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

6
Assets/ScriptableRenderPipeline/ShaderLibrary/AreaLighting.hlsl


if (h == 0) { return 0; } // Perform horizon clipping
[unroll]
for (int i = 0; i < 4; i++)
for (uint i = 0; i < 4; i++)
{
L[i] = normalize(L[i]);
}

[unroll]
for (int edge = 0; edge < 4; edge++)
for (uint edge = 0; edge < 4; edge++)
float3 V2 = L[(edge + 1) & 0x3];
float3 V2 = L[(edge + 1) % 4];
F += INV_TWO_PI * ComputeEdgeFactor(V1, V2);
}

正在加载...
取消
保存