浏览代码

HDRenderPipeline: Exclude undesired camera from debug menu

/main
sebastienlagarde 7 年前
当前提交
97369805
共有 2 个文件被更改,包括 9 次插入6 次删除
  1. 4
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Camera/HDAdditionalCameraData.cs
  2. 11
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/HDRenderPipeline.cs

4
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Camera/HDAdditionalCameraData.cs


{
// Note that we register m_FrameSettingsRuntime, so manipulating it in the Debug windows
// doesn't affect the serialized version
if (m_camera.cameraType != CameraType.Preview)
if (m_camera.cameraType != CameraType.Preview && m_camera.cameraType != CameraType.Reflection)
{
FrameSettings.RegisterDebug(m_camera.name, GetFrameSettings());
}

{
if (m_IsDebugRegistered)
{
if (m_camera.cameraType != CameraType.Preview)
if (m_camera.cameraType != CameraType.Preview && m_camera.cameraType != CameraType.Reflection)
{
FrameSettings.UnRegisterDebug(m_CameraRegisterName);
}

11
ScriptableRenderPipeline/HDRenderPipeline/HDRP/HDRenderPipeline.cs


m_VolumetricLightingModule.Build(asset);
m_DebugDisplaySettings.RegisterDebug();
#if UNITY_EDITOR
// We don't need the debug of Default camera at runtime (each camera have its own debug settings)
#endif
m_DebugColorPickerRT = HDShaderIDs._DebugColorPickerTexture;
m_DebugFullScreenTempRT = HDShaderIDs._DebugFullScreenTexture;

var texHeight = desc.height;
var sampleCount = desc.msaaSamples;
bool resolutionChanged = (texWidth != m_CurrentWidth) ||
(texHeight != m_CurrentHeight) ||
bool resolutionChanged = (texWidth != m_CurrentWidth) ||
(texHeight != m_CurrentHeight) ||
(sampleCount != m_CurrentMSAASampleCount);
if (resolutionChanged || m_CameraDepthStencilBuffer == null)

{
m_DbufferManager.Resize(hdCamera);
m_DbufferManager.Resize(hdCamera);
}
if (m_FrameSettings.enableSubsurfaceScattering)

CoreUtils.SetRenderTarget(cmd, m_GbufferManager.GetGBuffers(), m_CameraDepthStencilBufferRT);
if (m_FrameSettings.enableDBuffer)
{
m_DbufferManager.SetHTile(m_GbufferManager.gbufferCount, cmd);
m_DbufferManager.SetHTile(m_GbufferManager.gbufferCount, cmd);
}
// Render opaque objects into GBuffer

正在加载...
取消
保存