Search Unity

Camera render texture with post-processing

Discussion in 'Universal Render Pipeline' started by Saaskun, Jan 28, 2020.

  1. Saaskun

    Saaskun

    Joined:
    Nov 29, 2019
    Posts:
    51
    Is there a way to get the render texture atached to a camera with post processing?
    I need to export the camera view to a proyector using a render texture but the render texture has no bloom effect. I need that the render texture get the camera data after the post-processing
    I'm using URP 7.1.8 in Unity 2019.3.0f6
     
  2. mindmovies

    mindmovies

    Joined:
    May 9, 2019
    Posts:
    6
    I need that too! using 2019.3.0f5
     
    NoSpoonAnim likes this.
  3. Nith666

    Nith666

    Joined:
    Aug 1, 2012
    Posts:
    56
    same here!
     
  4. Nith666

    Nith666

    Joined:
    Aug 1, 2012
    Posts:
    56
    ok, just found the solution, for anyone interested: For the bloom effect to appear in the RenderTexture, the color format must support HDR, so you need something with 16Bit depth. At least R16G16B16A16_SFLOAT worked for me
     
  5. kirbyderby2000

    kirbyderby2000

    Joined:
    Apr 28, 2017
    Posts:
    35

    Thank you!!!


    I couldn't find the exact format you found in Unity (maybe this was removed?), but using "DefaultHDR" worked for me!
    Do note that the format selected by "DefaultHDR" is chosen based on the platform, so you may not always get a RenderTexture that will apply the post-processing effects. If you want to be safe, you can also use "RGB111110Float".
     
  6. HunterAhlquist

    HunterAhlquist

    Joined:
    Oct 6, 2013
    Posts:
    132
    Hi sorry to necro a thread, but this works only in the editor for me. When I try a build it doesn't work anymore... Anyone know why?