public DrawAllIntoVolumeRenderPass(VoxelGIGraphicResources graphicsResources, SerializableSettings settings)
 {
     Dispose();
     renderPassEvent    = RenderPassEvent.BeforeRenderingOpaques;
     m_IsSetup          = true;
     m_GraphicResources = graphicsResources;
     m_Settings         = settings;
 }
Exemplo n.º 2
0
        public void Setup(VoxelGIGraphicResources graphicResources, SerializableSettings settings)
        {
            Dispose();
            renderPassEvent    = RenderPassEvent.BeforeRenderingPostProcessing;
            m_GraphicResources = graphicResources;
            m_Settings         = settings;

            if (m_Settings._DrawFullScreenShader != null)
            {
                m_DrawFullScreenMaterial = new Material(m_Settings._DrawFullScreenShader);
            }
            else
            {
                m_DrawFullScreenMaterial = null;
            }
        }