Exemple #1
0
        /// <inheritdoc/>
        public override void Create()
        {
            if (m_SSShadowsPass == null)
            {
                m_SSShadowsPass = new ScreenSpaceShadowsPass();
            }
            if (m_SSShadowsPostPass == null)
            {
                m_SSShadowsPostPass = new ScreenSpaceShadowsPostPass();
            }

            LoadMaterial();

            m_SSShadowsPass.renderPassEvent     = RenderPassEvent.AfterRenderingPrePasses;
            m_SSShadowsPostPass.renderPassEvent = RenderPassEvent.BeforeRenderingTransparents;
        }
Exemple #2
0
        /// <inheritdoc/>
        public override void Create()
        {
            if (m_SSShadowsPass == null)
            {
                m_SSShadowsPass = new ScreenSpaceShadowsPass();
            }
            if (m_RestoreShadowKeywordsPass == null)
            {
                m_RestoreShadowKeywordsPass = new RestoreShadowKeywordsPass();
            }

            LoadMaterial();

            m_SSShadowsPass.profilerTag                 = name;
            m_SSShadowsPass.renderPassEvent             = RenderPassEvent.BeforeRenderingOpaques;
            m_RestoreShadowKeywordsPass.renderPassEvent = RenderPassEvent.AfterRenderingOpaques;
        }
Exemple #3
0
 /// <inheritdoc/>
 protected override void Dispose(bool disposing)
 {
     m_SSShadowsPass?.Dispose();
     m_SSShadowsPass = null;
     CoreUtils.Destroy(m_Material);
 }