|
|
|
|
|
|
using System.Collections.Generic; |
|
|
|
using UnityEngine.Rendering; |
|
|
|
using System; |
|
|
|
using System.Diagnostics; |
|
|
|
using UnityEngine.Rendering.PostProcessing; |
|
|
|
using UnityEngine.Experimental.Rendering.HDPipeline.TilePass; |
|
|
|
|
|
|
|
|
|
|
Material m_DebugViewMaterialGBuffer; |
|
|
|
Material m_DebugDisplayLatlong; |
|
|
|
Material m_DebugFullScreen; |
|
|
|
#if UNITY_EDITOR
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// Various buffer
|
|
|
|
readonly int m_CameraColorBuffer; |
|
|
|
|
|
|
m_DebugViewMaterialGBuffer = CoreUtils.CreateEngineMaterial(m_Asset.renderPipelineResources.debugViewMaterialGBufferShader); |
|
|
|
m_DebugDisplayLatlong = CoreUtils.CreateEngineMaterial(m_Asset.renderPipelineResources.debugDisplayLatlongShader); |
|
|
|
m_DebugFullScreen = CoreUtils.CreateEngineMaterial(m_Asset.renderPipelineResources.debugFullScreenShader); |
|
|
|
#if UNITY_EDITOR
|
|
|
|
#endif
|
|
|
|
} |
|
|
|
|
|
|
|
public void CreateSssMaterials(bool useDisneySSS) |
|
|
|
|
|
|
CoreUtils.Destroy(m_DebugViewMaterialGBuffer); |
|
|
|
CoreUtils.Destroy(m_DebugDisplayLatlong); |
|
|
|
CoreUtils.Destroy(m_DebugFullScreen); |
|
|
|
#if UNITY_EDITOR
|
|
|
|
#endif
|
|
|
|
|
|
|
|
m_SkyManager.Cleanup(); |
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
#if UNITY_EDITOR
|
|
|
|
[Conditional("DEVELOPMENT_BUILD"), Conditional("UNITY_EDITOR")] |
|
|
|
void RenderForwardError(CullResults cullResults, Camera camera, ScriptableRenderContext renderContext, CommandBuffer cmd, bool renderOpaque) |
|
|
|
{ |
|
|
|
using (new ProfilingSample(cmd, "Render Forward Error")) |
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
#endif
|
|
|
|
|
|
|
|
void RenderVelocity(CullResults cullResults, HDCamera hdcam, ScriptableRenderContext renderContext, CommandBuffer cmd) |
|
|
|
{ |
|
|
|