|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
static readonly RenderQueueRange k_RenderQueue_PreRefraction = new RenderQueueRange { min = (int)HDRenderQueue.PreRefraction, max = (int)HDRenderQueue.Transparent - 1 }; |
|
|
|
static readonly RenderQueueRange k_RenderQueue_Transparent = new RenderQueueRange { min = (int)HDRenderQueue.Transparent, max = (int)HDRenderQueue.Overlay }; |
|
|
|
static readonly RenderQueueRange k_RenderQueue_Transparent = new RenderQueueRange { min = (int)HDRenderQueue.Transparent, max = (int)HDRenderQueue.Overlay - 1}; |
|
|
|
|
|
|
|
readonly HDRenderPipelineAsset m_Asset; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Initialize various compute shader resources
|
|
|
|
m_applyDistortionKernel = m_applyDistortionCS.FindKernel("KMain"); |
|
|
|
|
|
|
|
|
|
|
|
m_CopyStencilForSplitLighting = CoreUtils.CreateEngineMaterial("Hidden/HDRenderPipeline/CopyStencilBuffer"); |
|
|
|
m_CopyStencilForSplitLighting.EnableKeyword("EXPORT_HTILE"); |
|
|
|
m_CopyStencilForSplitLighting.SetInt(HDShaderIDs._StencilRef, (int)StencilLightingUsage.SplitLighting); |
|
|
|