Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions com.unity.render-pipelines.high-definition/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [11.0.0] - 2020-10-21

### Fixed
- Fixed XR shadows culling

Version Updated
The version number for this package has increased due to a version update of a related graphics package.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3295,6 +3295,10 @@ out ScriptableCullingParameters cullingParams
if (hdCamera.xr.enabled)
{
cullingParams = hdCamera.xr.cullingParams;

// Sync the FOV on the camera to match the projection from the XR device in order to cull shadows accurately
if (!camera.usePhysicalProperties)
camera.fieldOfView = Mathf.Rad2Deg * Mathf.Atan(1.0f / cullingParams.stereoProjectionMatrix.m11) * 2.0f;
}
else
{
Expand Down