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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
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