{
// We render first the opaque object as opaque alpha tested are more costly to render and could be reject by early-z (but not Hi-z as it is disable with clip instruction)
// This is handled automatically with the RenderQueue value (OpaqueAlphaTested have a different value and thus are sorted after Opaque)
RenderOpaqueRenderList ( cull , camera , renderContext , cmd , m_DepthOnlyAndDepthForwardOnlyPassNames , 0 , HDRenderQueue . k_RenderQueue_AllOpaque , m_DepthStateOpaque ) ;
RenderOpaqueRenderList ( cull , camera , renderContext , cmd , m_DepthOnlyAndDepthForwardOnlyPassNames , 0 , HDRenderQueue . k_RenderQueue_AllOpaque ) ;
RenderOpaqueRenderList ( cull , camera , renderContext , cmd , m_DepthForwardOnlyPassNames , 0 , HDRenderQueue . k_RenderQueue_AllOpaque , m_DepthStateOpaque ) ;
RenderOpaqueRenderList ( cull , camera , renderContext , cmd , m_DepthForwardOnlyPassNames , 0 , HDRenderQueue . k_RenderQueue_AllOpaque ) ;
RenderOpaqueRenderList ( cull , camera , renderContext , cmd , m_DepthOnlyPassNames , 0 , renderQueueRange , m_DepthStateOpaque ) ;
RenderOpaqueRenderList ( cull , camera , renderContext , cmd , m_DepthOnlyPassNames , 0 , renderQueueRange ) ;
}
}
}
}
else
{
// When rendering debug material we shouldn't rely on a depth prepass for optimizing the alpha clip test. As it is control on the material inspector side
// we must override the state here.
RenderOpaqueRenderList ( cull , hdCamera . camera , renderContext , cmd , m_AllForwardOpaquePassNames , m_currentRendererConfigurationBakedLighting ) ;
RenderOpaqueRenderList ( cull , hdCamera . camera , renderContext , cmd , m_AllForwardOpaquePassNames , m_currentRendererConfigurationBakedLighting , stateBlock : m_DepthStateOpaque ) ;
RenderTransparentRenderList ( cull , hdCamera . camera , renderContext , cmd , m_AllTransparentPassNames , m_currentRendererConfigurationBakedLighting ) ;
RenderTransparentRenderList ( cull , hdCamera . camera , renderContext , cmd , m_AllTransparentPassNames , m_currentRendererConfigurationBakedLighting , stateBlock : m_DepthStateOpaque ) ;
}
}