File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
com.unity.render-pipelines.high-definition
Runtime/RenderPipeline/XR Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
27
27
- Fixed errors when switching area light to disk shape while an area emissive mesh was displayed.
28
28
- PBR Sky now doesn't go black when going below sea level, but it instead freezes calculation as if on the horizon.
29
29
- Fixed XR single-pass macros in tessellation shaders.
30
+ - Fixed XR Display providers not getting zNear and zFar plane distances passed to them when in HDRP.
30
31
31
32
### Changed
32
33
- Changed extensions of shader CAS include files.
Original file line number Diff line number Diff line change @@ -150,6 +150,12 @@ internal int GetMaxViews()
150
150
Debug . LogWarning ( "RenderViewportScale has no effect with this render pipeline. Use dynamic resolution instead." ) ;
151
151
}
152
152
153
+ if ( display != null )
154
+ {
155
+ display . zNear = camera . nearClipPlane ;
156
+ display . zFar = camera . farClipPlane ;
157
+ }
158
+
153
159
if ( xrSdkActive )
154
160
{
155
161
CreateLayoutFromXrSdk ( camera , singlePassAllowed ) ;
You can’t perform that action at this time.
0 commit comments