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. Dismiss Notice

Camera Rendered Thumbnail has opaque background only in built player

Discussion in 'General Graphics' started by skydestinies, May 22, 2019.

  1. skydestinies

    skydestinies

    Joined:
    Feb 6, 2014
    Posts:
    19
    Hello,
    I recently switched to LWRP and found that my thumbnail renderer is now rendering opaque backgrounds, but only in the built player.

    I have a camera render to a render texture and then convert that texture to a sprite.

    What it looks like in editor:

    What it looks like when I run the built executable:


    This doesn't happen in my non LWRP build. The background of the character's thumbnail is the color of the camera clear color (so if I set it to black with zero alpha, it'll be black instead of white in the built version). It doesn't seem to respect the alpha in the built executable :(

    Anyone have an idea of what could be causing this?
    Thank you
    -Yang
     
  2. skydestinies

    skydestinies

    Joined:
    Feb 6, 2014
    Posts:
    19
    Okay, I think I figured it out. This seems to only happen if "Opaque Texture" is checked under general settings for my LWRP asset. Not sure if this is an intended consequence of opaque texture or not ...
     

    Attached Files:

  3. RedVonix

    RedVonix

    Joined:
    Dec 13, 2011
    Posts:
    414
    Was suffering this same issue in 2019.2. Went to 2019.3 Beta and that fixed it, however there is now an issue related to transparency artifacting (transparency not being cleared).