浏览代码

Updated TestFixture to use new render pipeline property.

/main
Felipe Lira 8 年前
当前提交
a4efb79d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      Assets/Editor/Tests/RenderloopTests/RenderloopTestFixture.cs

4
Assets/Editor/Tests/RenderloopTests/RenderloopTestFixture.cs


var sceneCamera = Camera.main;
var camObject = sceneCamera.gameObject;
GraphicsSettings.SetRenderPipeline(m_Instance);
GraphicsSettings.renderPipeline = m_Instance;
s_Callback = renderCallback;
Transform t = camObject.transform;

SceneView.lastActiveSceneView.LookAtDirect(t.position + t.forward * camDist, t.rotation, size);
sceneCamera.Render();
GraphicsSettings.SetRenderPipeline(null);
GraphicsSettings.renderPipeline = null;
}
}
正在加载...
取消
保存