public override void AddRenderPasses(ScriptableRenderer renderer, ref RenderingData renderingData)
        {
            ObiParticleRenderer[] particleRenderers = GameObject.FindObjectsOfType <ObiParticleRenderer>();

            m_ThicknessPass.Setup(settings, renderTargets, particleRenderers);
            renderer.EnqueuePass(m_ThicknessPass);

            if (settings.generateSurface)
            {
                m_SurfacePass.Setup(settings, renderTargets, particleRenderers);
                renderer.EnqueuePass(m_SurfacePass);
            }

            if (settings.generateFoam)
            {
                m_FoamPass.Setup(settings, renderTargets, particleRenderers);
                renderer.EnqueuePass(m_FoamPass);
            }

            m_RenderFluidPass.Setup(settings, renderTargets);
            renderer.EnqueuePass(m_RenderFluidPass);
        }
 public override void AddRenderPasses(ScriptableRenderer renderer, ref RenderingData renderingData)
 {
     m_RenderFluidPass.Setup(renderer.cameraColorTarget, settings.colorMaterial, settings.fluidMaterial, settings.blurRadius, settings.thicknessCutoff);
     renderer.EnqueuePass(m_RenderFluidPass);
 }