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
1 change: 1 addition & 0 deletions com.unity.render-pipelines.high-definition/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Fixed
- Fixed case where material keywords would not get setup before usage.
- Fixed shader warning in ReflectionDenoiser
- Fixed XR depth copy (case 1286908).

## [7.5.2] - 2020-11-16

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ void SetFinalTarget(RenderGraph renderGraph, HDCamera hdCamera, RenderGraphResou
#if UNITY_EDITOR
passData.copyDepth = passData.copyDepth || hdCamera.isMainGameView; // Specific case of Debug.DrawLine and Debug.Ray
#endif
passData.copyDepth = passData.copyDepth && !hdCamera.xr.enabled;
passData.copyDepthMaterial = m_CopyDepth;
passData.finalTarget = finalTarget;
passData.finalViewport = hdCamera.finalViewport;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2469,10 +2469,9 @@ void Callback(CommandBuffer c, HDCamera cam)
using (new ProfilingScope(cmd, ProfilingSampler.Get(HDProfileId.XRDepthCopy)))
{
var depthBuffer = m_SharedRTManager.GetDepthStencilBuffer();
var rtScale = depthBuffer.rtHandleProperties.rtHandleScale / DynamicResolutionHandler.instance.GetCurrentScale();

m_CopyDepthPropertyBlock.SetTexture(HDShaderIDs._InputDepth, depthBuffer);
m_CopyDepthPropertyBlock.SetVector(HDShaderIDs._BlitScaleBias, rtScale);
m_CopyDepthPropertyBlock.SetVector(HDShaderIDs._BlitScaleBias, new Vector4(1.0f, 1.0f, 0.0f, 0.0f));
m_CopyDepthPropertyBlock.SetInt("_FlipY", 1);

cmd.SetRenderTarget(target.id, 0, CubemapFace.Unknown, -1);
Expand Down