浏览代码

Update Callback's to show they are static calls (thanks Rob).

/main
Tim Cooper 7 年前
当前提交
552f83af
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 4
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/HDRenderPipeline.cs
  2. 4
      ScriptableRenderPipeline/LightweightPipeline/LWRP/LightweightPipeline.cs

4
ScriptableRenderPipeline/HDRenderPipeline/HDRP/HDRenderPipeline.cs


public override void Render(ScriptableRenderContext renderContext, Camera[] cameras)
{
base.Render(renderContext, cameras);
BeginFrameRendering(cameras);
RenderPipeline.BeginFrameRendering(cameras);
if (m_FrameCount != Time.frameCount)
{

if (camera == null)
continue;
BeginCameraRendering(camera);
RenderPipeline.BeginCameraRendering(camera);
if (camera.cameraType != CameraType.Reflection)
// TODO: Render only visible probes

4
ScriptableRenderPipeline/LightweightPipeline/LWRP/LightweightPipeline.cs


public override void Render(ScriptableRenderContext context, Camera[] cameras)
{
base.Render(context, cameras);
BeginFrameRendering(cameras);
RenderPipeline.BeginFrameRendering(cameras);
GraphicsSettings.lightsUseLinearIntensity = true;
SetupPerFrameShaderConstants();

foreach (Camera camera in cameras)
{
BeginCameraRendering(camera);
RenderPipeline.BeginCameraRendering(camera);
bool sceneViewCamera = camera.cameraType == CameraType.SceneView;
bool stereoEnabled = XRSettings.isDeviceActive && !sceneViewCamera;

正在加载...
取消
保存