Search Issue Tracker
Fixed in 10.0.0
Votes
0
Found in [Package]
8.0.1
Issue ID
1232761
Regression
Yes
[URP] CameraColorTarger is set to BuiltinRenderTextureType.CameraTarget without checking if there are any Renderer Features
How to reproduce:
1. Open the attached project "1232761.zip"
2. Open the "Test" Scene
3. Observe the Game View
Expected result: GameObjects are not rendered black in the Game View
Actual result: GameObjects are rendered black in the Game View
Reproducible with: 2020.1.0b12 (8.0.1, 8.1.0), 2020.2.0a14 (8.1.0, 9.0.0-preview.14)
Not reproducible with: 2018.4.23f1 (4.10.0-preview), 2019.3.0f1 (7.1.5, 7.1.6), 2019.4.0f1 (7.3.1, 7.4.1)
Note:
- tested and reproduces with Vulkan, D3D11, D3D12, OpenGLCore, OpenGLES2 and OpenGLES3 graphics APIs
- tested and reproduces in both Player and Editor
- if CustomRenderPass.renderPassEvent is set to:
-- RenderPassEvent.AfterRendering / AfterRenderingPostProcessing / AfterRenderingTransparents / BeforeRenderingPostProcessing - Game View is displayed completely black
-- RenderPassEvent.AfterRenderingOpaques / BeforeRenderingSkybox - all GameObjects except the ones with Transparent material are displayed black
-- RenderPassEvent.AfterRenderingSkybox / BeforeRenderingTransparents - all Game View except the GameObjects with Transparent material are displayed black
the issue does not reproduce with other Render Pass Events
Workaround:
- if RequiresIntermediateColorTexture method returns false, the CameraColorTarget is set to BuiltinRenderTextureType.CameraTarget even if there are one or more Renderer Features in the project, however, RequiresIntermediateColorTexture will return true if features like Post-processing, Msaa, Opaque textures, or HDR are enabled, hence, enabling any of them will fix the issue
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
- Any small change in UI Builder Inspector refreshes Editor Inspector
- Inaccurate Box Collider boundaries on a rotated child Cube when the parent GameObject Scale is non-uniform
- [Android] "SHADOWS_SCREEN" set as shader Keyword when no "_ShadowMapTexture" is bound leads to freeze on a build on some Mali GPU devices
- The global scene list is overridden in a project built with command line when the Override Global Scene List setting is disabled in the build profile
- Global Scenes are not included in the Build when building multiple Build Profiles at the same time
Resolution Note (fix version 10.0.0):
The issue was fixed and should no longer reproduce in Universal RP version 10.0.0-preview.26 and above