You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a script modifies the camera's local position while the camera is driven by the XR system during an active XR session and the scene contains a real-time directional light with cast shadows enabled, the position used when performing directional light culling and directional light shadow rendering is the one set by the script rather than the one computed by the XR system. As a result, directional light shadow mapping might break.
Expected
The XR system forces the camera's local position to the XR viewer position before rendering as described here.
The resulting position is subsequently used when performing directional light culling and directional light shadow rendering regardless of whether a script modifies the camera's local position.
The text was updated successfully, but these errors were encountered:
I have forked your dinosaur example and added a script to the root which logs the camera position to the console at key points during the frame.
Notice that the shadow of the directional light is not being displayed as a result of the camera position set in update().
Description
If a script modifies the camera's local position while the camera is driven by the XR system during an active XR session and the scene contains a real-time directional light with cast shadows enabled, the position used when performing directional light culling and directional light shadow rendering is the one set by the script rather than the one computed by the XR system. As a result, directional light shadow mapping might break.
Expected
The XR system forces the camera's local position to the XR viewer position before rendering as described here.
The resulting position is subsequently used when performing directional light culling and directional light shadow rendering regardless of whether a script modifies the camera's local position.
The text was updated successfully, but these errors were encountered: