浏览代码

Fixed a typo in method name.

/main
Aleksandr Kirillov 7 年前
当前提交
369eef17
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      ScriptableRenderPipeline/LightweightPipeline/LWRP/LightweightPipeline.cs

4
ScriptableRenderPipeline/LightweightPipeline/LWRP/LightweightPipeline.cs


// Main light has an optimized shader path for main light. This will benefit games that only care about a single light.
// Lightweight pipeline also supports only a single shadow light, if available it will be the main light.
SetupMainLightConstants(cmd, ref lightData);
SetupAdditionalListConstants(cmd, ref lightData);
SetupAdditionalLightConstants(cmd, ref lightData);
}
private void SetupMainLightConstants(CommandBuffer cmd, ref LightData lightData)

cmd.SetGlobalVector(PerCameraBuffer._MainLightColor, lightColor);
}
private void SetupAdditionalListConstants(CommandBuffer cmd, ref LightData lightData)
private void SetupAdditionalLightConstants(CommandBuffer cmd, ref LightData lightData)
{
List<VisibleLight> lights = lightData.visibleLights;
if (lightData.totalAdditionalLightsCount > 0)

正在加载...
取消
保存