浏览代码

Compararer -> Comparer

/main
Thomas 7 年前
当前提交
57797a4c
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 6
      ScriptableRenderPipeline/LightweightPipeline/LWRP/LightweightPipeline.cs

6
ScriptableRenderPipeline/LightweightPipeline/LWRP/LightweightPipeline.cs


private PostProcessLayer m_CameraPostProcessLayer;
private CameraComparer m_CameraComparer = new CameraComparer();
private LightComparer m_LightCompararer = new LightComparer();
private LightComparer m_LightComparer = new LightComparer();
// Maps from sorted light indices to original unsorted. We need this for shadow rendering
// and per-object light lists.

// Sorts light so we have all directionals first, then local lights.
// Directionals are sorted further by shadow, cookie and intensity
// Locals are sorted further by shadow, cookie and distance to camera
m_LightCompararer.CurrCamera = m_CurrCamera;
visibleLights.Sort(m_LightCompararer);
m_LightComparer.CurrCamera = m_CurrCamera;
visibleLights.Sort(m_LightComparer);
for (int i = 0; i < totalVisibleLights; ++i)
m_SortedLightIndexMap.Add(m_VisibleLightsIDMap[visibleLights[i]]);

正在加载...
取消
保存