Search Issue Tracker
Not Reproducible
Votes
0
Found in [Package]
13.1.2
Issue ID
1395969
Regression
Yes
Render Texture is not cleared before Camera rendering when using Universal RP
To reproduce:
1. Download the attached project "rqa-project-grace.zip" and open it in Unity
2. Open "Potential_Bug" Scene
3. Enable Post Processing on "Camera" gameObject
3. Enter Play Mode
4. Observe that Object constantly updates on Render Texture and the Object has a Black outline
5. Exit Play Mode
6. Disable Post Processing on "Camera" gameObject
7. Enter Play mode
Expected Result: Object constantly updates on Render Texture and the Object has a Black outline
Actual Result: Object is drawn permanently on Render Texture every frame and the Object has a Yellow outline
Notes:
- There's also a bug, if you set the "Camera" gameObject Background Type to Solid Color, without the Post Processing option, the whole Render Texture view becomes corrupted in Play Mode
- Outline issue could be related to the Custom Shader, but it's still weird, cause it works correctly with Post Processing
- Videos for reference are attached in the Comments Section
Reproduced on Unity 2022.1.0b1 (13.1.2) and 2022.1.0b4 (13.1.4)
Could not reproduce on Unity 2022.1.0a16 (13.1.1)
Regression on Unity 2022.1.0b1 (13.1.2)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note:
this was fixed on latest master (22.2) so it's not reproducible anymore.
The reason why the outline is not black when disabling post processing is an user error in the custom shader:
ColorMask should be RGBA instead of RGB. Changing this fixes the outline issue