浏览代码

HDRenderPipeline: Fix spam of warning message regarding PreRenderLight

/main
sebastienlagarde 8 年前
当前提交
e66f24bc
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 6
      Assets/ScriptableRenderLoop/HDRenderPipeline/Lighting/TilePass/TilePass.cs

6
Assets/ScriptableRenderLoop/HDRenderPipeline/Lighting/TilePass/TilePass.cs


if (additionalData == null)
{
Debug.LogWarningFormat("Light entity {0} has no additional data, will be rendered using default values.", light.light.name);
// PreRenderLight is used to display preview
if (light.light.name != "PreRenderLight")
{
Debug.LogWarningFormat("Light entity {0} has no additional data, will be rendered using default values.", light.light.name);
}
additionalData = DefaultAdditionalLightData;
}

正在加载...
取消
保存