Search Unity

Question Translucent render textures being caputred on camera don't show full transparency

Discussion in 'General Graphics' started by Arjun-Gupte, Nov 9, 2022.

  1. Arjun-Gupte

    Arjun-Gupte

    Joined:
    May 31, 2013
    Posts:
    54
    I have a scene in which a camera takes a screenshot of some visible things and then applies it to a render texture to display on screen. The problem is that when the camera takes a screenshot of something that has translucency or any kind of alpha value other than 1, the texture that the camera gets shows reduced opacity.

    So, if the camera is taking a picture of a gradient that goes from an opaque color to a transparent color, the render texture obtained has less transparency than the original gradient. If the camera captures this new image, the transparency goes down even further, until eventually the gradient doesn't exist anymore and only a little bit of opaque part remains.

    The first image shows before the camera takes a capture, the second one after 1 capture, and the 3rd after 10 captures.

    I am posting a package that shows the issue(package built in Unity 2020.3.23f1).
     

    Attached Files: