Search Unity

Question How to blur a render texture

Discussion in 'High Definition Render Pipeline' started by CitrioN, Feb 22, 2023.

  1. CitrioN

    CitrioN

    Joined:
    Oct 6, 2016
    Posts:
    98
    Hello,

    I'm looking for a way to blur an input render texture (in my case from the camera) by applying a material with a blur shader to the original render texture and store the result in a different output render texture. I would like to use that resulting render texture in UI toolkit to blur the background.

    Any idea on how to achieve this? I've been looking through a bunch of threads but without success so far.
    Would appreciate any kind of help or direction.

    Thank you
     
  2. akent99

    akent99

    Joined:
    Jan 14, 2018
    Posts:
    588
    I am no expert, but I have not had much luck combining different shaders. My default would be to put a pane of glass (transparent material) just in front of the video rendering material and put the blur on that.
     
  3. antoinel_unity

    antoinel_unity

    Unity Technologies

    Joined:
    Jan 7, 2019
    Posts:
    265
  4. bloodthirst69

    bloodthirst69

    Joined:
    Oct 1, 2017
    Posts:
    28
    antoinel_unity likes this.