Search Issue Tracker
Fixed in 2017.1.X
Votes
0
Found in
5.6.0f3
Issue ID
904199
Regression
Yes
Render() into targetTexture causes flickering of child Camera
Reproduction steps:
1. Open the attached project. Load scene "CameraTest" and enter a play mode;
2. The scene has two cameras, each one renders one cube. Child camera has depth 0, Main camera -1;
3. Press "C" to trigger the the script attached to "Main Camera". The script temporarily assigns a render texture (targetTexture), invokes the Render() method and sets back targetTexture to null;
Expected results: "Child Camera" has a higher depth order (depth=0) and does not clear any buffers. It is supposed to render the second cube based on the depth information provided by "Main Camera" (depth=-1).
Actual results: After activating the script, "Main Camera" is not drawing any longer. The buffers are not cleared and only "Child Camera" is rendering on top of the existing data.
Reproduced on: 5.6.0p3, 2017.1.0b2.
Not reproduced on: 5.5.3f1.
Reproducible both on Mac and Windows.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Polygons are created on the opposite side of the Sprite when the Sprite boundaries are above the edge of the Texture
- Render Graph Viewer Resource list becomes shrunk after using a filter that yields no results
- [Android] [Vulkan] "VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT" not added on some Android devices in "com.unity3d.player.UnityPlayerActivity/2D Colour Attachement"
- ResolveUsePasses now extracts passes from all subshaders including fallbacks, in contrast to documented behaviour
- [UIBuilder] Changes aren't detected on types implementing IList
Add comment