Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

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:
    281
    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:
    281
    Hi, thanks a lot for the info!
     
  4. HairDreyer

    HairDreyer

    Joined:
    Aug 28, 2021
    Posts:
    2