Search Unity

Question OnRenderImage -> Graphics.Blit in URP

Discussion in 'Universal Render Pipeline' started by Ikaro88, Jul 22, 2021.

  1. Ikaro88

    Ikaro88

    Joined:
    Jun 6, 2016
    Posts:
    300
    Hi, I am tring to do this:


    Code (CSharp):
    1.   void OnRenderImage(RenderTexture src, RenderTexture dest) {
    2.         Graphics.Blit(src, null, distortionMaterial);
    3.     }
    It work correctly, but if i use the URP the effect will not be applied.

    Any solution on this?
     
  2. insignifantastica

    insignifantastica

    Joined:
    Apr 22, 2020
    Posts:
    10
    Ikaro88 likes this.
  3. Ikaro88

    Ikaro88

    Joined:
    Jun 6, 2016
    Posts:
    300
    Hi, thanks a lot for the info!
     
  4. HairDreyer

    HairDreyer

    Joined:
    Aug 28, 2021
    Posts:
    3