Skip to content

Commit

Permalink
Fixed fogbugz case 1325911 (Unity-Technologies#4115)
Browse files Browse the repository at this point in the history
* * Update volume manager to use baseCamera's settings for XR multipass rendering. This fixed the case where right eye pass uses overlay camera's settings from the left eye pass.

* Fixed formatting.

* Addressed feedback - moved multipass handling code into the xr if block.
  • Loading branch information
thomas-zeng committed Apr 16, 2021
1 parent ea48766 commit 0caa4d1
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,12 @@ static void RenderCameraStack(ScriptableRenderContext context, Camera baseCamera
xrActive = true;
// Helper function for updating cameraData with xrPass Data
m_XRSystem.UpdateCameraData(ref baseCameraData, baseCameraData.xr);

// Update volume manager to use baseCamera's settings for XR multipass rendering.
if (baseCameraData.xr.multipassId > 0)
{
UpdateVolumeFramework(baseCamera, baseCameraAdditionalData);
}
}
#endif

Expand Down

0 comments on commit 0caa4d1

Please sign in to comment.