示例#1
0
    // Here you can inject one or multiple render passes in the renderer.
    // This method is called when setting up the renderer once per-camera.
    public override void AddRenderPasses(RP.ScriptableRenderer renderer, ref RP.RenderingData renderingData)
    {
        if (renderingData.cameraData.camera != Camera.main)
        {
            return;
        }

        renderer.EnqueuePass(m_ScriptablePass);
    }