OnRenderImage -> Graphics.Blit in URP

Hi, I am tring to do this:

  void OnRenderImage(RenderTexture src, RenderTexture dest) {
        Graphics.Blit(src, null, distortionMaterial);
    }

It work correctly, but if i use the URP the effect will not be applied.

Any solution on this?

OnRenderImage is not supported in the Scriptable Render Pipeline. To create custom fullscreen effects in the Universal Render Pipeline (URP), use the ScriptableRenderPass API.

Source: Unity - Scripting API: MonoBehaviour.OnRenderImage(RenderTexture,RenderTexture)

Hi, thanks a lot for the info!

Documentation about fullscreen blit in URP: Perform a full screen blit in URP | Universal RP | 15.0.7

It seems like an extremely complicated workaround, isnt there anything a bit simpler, as the original on liner way from built in render pipeline

URP now has its own pre-built full screen pass: Full Screen Pass Renderer Feature | Universal RP | 14.0.11

I don’t think there is one line blit function anymore in URP.