Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

2020.2.0.a21 (URP+UWP+Xbox One) No render shaders when multiple cameras in stack.

Discussion in '2020.2 Beta' started by Thiago-Correia, Aug 24, 2020.

  1. Thiago-Correia


    Jun 1, 2013
    Shaders do not render when there is a stack of cameras. It looks like you are looking inside objects, with only a few pieces being rendered. Shadows are rendered. The base camera shaders face problems only if stacked. This occurs only in the build generated by Visual Studio. There are no rendering failures in the editor. Also, when generating an executable for Windows, there is no problem. The problem occurs when generating the build for UWP and mainly and more catastrophic when it runs on XBOX One UWP. Performance dropped dramatically to around 10 FPS, while in the Unity editor the performance surpassed 100 FPS. Tests without camera stacking demonstrate a better performance in addition to rendering all shaders, concluding that this is not a specific shader, but a possible problem in the compilation. The error was noticed in alpha version 19, but when upgrading to 21, the failure persisted.
    in one of the images, one is running through the Visual Studio debug where everything seems normal, the other is the same build running on Xbox One UWP.
    Last edited: Aug 25, 2020