浏览代码

Reverted a change that introduced some garbage

/stochastic_alpha_test
Thomas 7 年前
当前提交
0b10abd1
共有 1 个文件被更改,包括 9 次插入1 次删除
  1. 10
      ScriptableRenderPipeline/HDRenderPipeline/HDRenderPipeline.cs

10
ScriptableRenderPipeline/HDRenderPipeline/HDRenderPipeline.cs


// we only want to render one camera for now
// select the most main camera!
var camera = cameras.FirstOrDefault(cam => cam == Camera.main);
Camera camera = null;
foreach (var cam in cameras)
{
if (cam == Camera.main)
{
camera = cam;
break;
}
}
if (camera == null && cameras.Length > 0)
camera = cameras[0];

正在加载...
取消
保存