Search Issue Tracker

Fixed in 5.14.0 & 6.8.0 & 7.0.0

Fixed in 6.8.0

Votes

15

Found in [Package]

5.7.2

Issue ID

1156134

Regression

Yes

[LWRP] Camera with target render texture does not respect transparent background color in Windows standalone build

Package: Scriptable Render Pipeline Lightweight

-

How to reproduce:
1. Open attached project "TransparentRenderTexture.zip" and scene "SampleScene"
2. Enter Play mode
3. Observe the Cube in Game View (the Cube in the middle has a blue background with alpha set to zero/background is invisible)
4. Build and Run
5. Observe the Cube in Standalone

Expected result: the cube background is invisible due to the alpha being zero
Actual result: a blue background of the cube render texture is visible even though alpha is set to zero

Reproducible with: 2019.1.4f1 (5.7.2, 5.13.0), 2019.2.0b4 (6.5.2), 2019.3.0a4 (5.13.0, 6.5.3)
Not reproducible with: 2018.1.9f2 (1.1.11-preview), 2018.2.21f1 (3.0.0-preview), 2018.4.1f1 (4.10.0-preview)
Could not test with: 2017.4 (LWRP was not yet supported)

  1. Resolution Note (fix version 5.14.0 & 6.8.0 & 7.0.0):

    The alpha of a render texture is now not cleared when assigned to a camera in built players, this was due to the FinalBlit Pass

Comments (5)

  1. act10n

    Sep 03, 2019 15:35

    Issue still exists

  2. rosen_rusinov

    Aug 28, 2019 13:30

    Issue still exists in Unity 2019.2.2f1 and LWRP 6.9.1 (Tested on iOS)

  3. actislav

    Jun 03, 2019 07:38

    mobile platforms too (android, ios checked)

  4. skydestinies

    May 29, 2019 18:09

    I'm running into this issue as well. Happens on Mac too.
    I suspect it has something to do with the "Opaque Texture" setting being checked in the LWRP asset settings. When I uncheck that, the built version has a transparent background again.

    What it looks like: https://forum.unity.com/threads/camera-rendered-thumbnail-has-opaque-background-only-in-built-player.682411/

  5. Pimpace

    May 24, 2019 15:12

    This happens all platform standalone build.

Add comment

Log in to post comment