Search Issue Tracker
Fixed in 2017.1.X
Votes
2
Found in
5.4.2p2
Issue ID
857440
Regression
No
[iOS] RenderTexture applied to camera becomes black with objects using GrabPass shader in the scene
When using RenderTexture on camera and there are scene objects using GrabPass shader, the RenderTexture becomes black. Even with AA disabled (!).
Steps to reproduce:
1) Open the latest attached project.
2) Build for iOS.
3) Run on a Metal-capable device.
A colored cube appears in the scene surrounded by black background, however with OpenGLES, transparent area (skybox material) is surrounding the cube. This happens because the camera's RenderTexture becomes black. Replacing the GrabPass shader with some other shader on the 'Cube' GameObject fixes the issue.
Note: the same issue occurs when AA is disabled in the QualitySettings.
Reproduced on:
5.6.0a6, 5.5.0p1 (older versions fail to compile the GrabPass shader).
Devices:
iPhone 7 iOS 10.2
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on ResizeScriptingList<ScriptingObjectPtr> when passing an undeclared variable to the results parameter for GameObject.FindGameObjectsWithTag
- [Android] "Screen.safeArea.y" always returns values outside of the Safe Area when the device is in Portrait orientation
- Frame spike due to many TreeRenderer.TreeUpdated calls when repositioning terrains in large Scenes
- Crash on GameObject::RemoveComponentFromGameObjectInternal when reparenting Text GameObjects
- [IL2CPP-GarbageCollector] Changing GCMode might permanently disable GC in a multithreaded context
Add comment