Search Issue Tracker
Fixed
Fixed in 2021.3.32f1, 2022.3.13f1, 2023.1.0b5, 2023.2.0a1
Votes
1
Found in
2023.1.0a1
2023.2.0a1
2023.3.0a3
Issue ID
UUM-2514
Regression
No
[XR][URP][MultiPass] _WorldSpaceCameraPos is not set correctly for both eyes
In multi-pass rendering mode the world space camera position value is the same in both eyes, resulting all view dependent fragment shading to be incorrect. This includes reflection, parallax mapping, specular lighting, etc.
Steps to reproduce:
1. Create a URP project.
2. Install XR Plug-in Management and necessary vendor plugins or MockHMD.
3. Setup a simple scene that uses reflection probe, and put some shiny (reflective) cubes inside the reflection probe.
4. Switch "Render Mode" under current active device in XR Plug-in Management to "Multi Pass".
5. Play or deploy the scene.
Move your head / camera around and observe the reflection on the shiny cubes.
Expected result: The reflection probe cubemap is sampled from different view angles in left/right eyes, creating a reflection with depth on the cubes.
Actual result: The reflection probe cubemap is sampled from the same view angle in left/right eyes, creating a flat reflection on the cubes.
Note: The difference would be subtle if only comparing screenshots, it's the best to put on a headset and observe.
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
- Character spacing value is not applied when using a specific font asset
- [Android][IL2CPP] Player crashes on __memcpy_aarch64_simd+276 when invoking native code via a plugin on some ARM64 Android devices
- [Android]Resources fail to load when the AAB build contains a large Addressables Bundle
- Unity is loading internal version of SharpZipLib instead of local version
- The Context Menu items are ordered incorrectly
Resolution Note (fix version 2023.2.0a1):
Fixed _WorldSpaceCameraPos is not set correctly in XR Multipass
Resolution Note (fix version 2023.1.0b5):
Fixed _WorldSpaceCameraPos is not set correctly in XR Multipass.
Resolution Note (fix version 2022.3.13f1):
Fixed _WorldSpaceCameraPos is not set correctly in XR Multipass.
Resolution Note (fix version 2021.3.32f1):
Fixed _WorldSpaceCameraPos is not set correctly in XR Multipass.