LWRP works incorrectly in UWP

Currently, I try to port my old hololens project to LWRP-VR, but meets lots of problem after upgrade. So, I try to start a new project instead, still meets some problems.

The problem is quiet simple to reproduce(unity 2018.4.8f1 and 2019.1.4f1):

  1. start from LWRP-VR template
  2. switch target platform to UWP in player settings.
  3. Boom! The camera seems not correct! Even in a scene with a cube only!

in the camera preview, everything looks fine.


but when I click run, in the player window, it looks not same as the preview.

and I noticed that an error is shown in console, which does not shown in PC standalone.
5005733--489461--upload_2019-9-27_15-51-11.png
What should I check?

the problem above seems not influence the other things.
The second problem is the display is inverted (flipped) in y axis:

I believe the LWRP VR template was removed in 19.1 for various issues it had. I would try to use the non-VR template and then toggle on necessary XR settings afterwards

There’s also this page with some information on how to go from legacy renderer to LWRP
https://docs.unity3d.com/Packages/com.unity.render-pipelines.lightweight@4.0/manual/index.html