This repository was archived by the owner on Nov 30, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
6
6
7
7
## [ 2.1.7] - 2019-XX-XX
8
8
9
+ ### Added
10
+ - Excluded VR code for Stadia platform support
11
+
9
12
### Fixed
10
13
- Viewport handling wasn't working correctly when FXAA or SMAA were used with builtin pipelines.
11
14
- Depth of Field could end up fully blurry depending on the project setup.
Original file line number Diff line number Diff line change 5
5
6
6
namespace UnityEngine . Rendering . PostProcessing
7
7
{
8
- #if UNITY_2017_2_OR_NEWER
8
+ #if UNITY_2017_2_OR_NEWER && ENABLE_VR
9
9
using XRSettings = UnityEngine . XR . XRSettings ;
10
- #elif UNITY_5_6_OR_NEWER
10
+ #elif UNITY_5_6_OR_NEWER && ENABLE_VR
11
11
using XRSettings = UnityEngine . VR . VRSettings ;
12
12
#endif
13
13
@@ -409,7 +409,7 @@ void OnPreCull()
409
409
m_Camera . ResetProjectionMatrix ( ) ;
410
410
m_Camera . nonJitteredProjectionMatrix = m_Camera . projectionMatrix ;
411
411
412
- #if ! UNITY_SWITCH
412
+ #if ENABLE_VR
413
413
if ( m_Camera . stereoEnabled )
414
414
{
415
415
m_Camera . ResetStereoProjectionMatrices ( ) ;
Original file line number Diff line number Diff line change 2
2
3
3
namespace UnityEngine . Rendering . PostProcessing
4
4
{
5
- #if UNITY_2017_2_OR_NEWER
5
+ #if UNITY_2017_2_OR_NEWER && ENABLE_VR
6
6
using XRSettings = UnityEngine . XR . XRSettings ;
7
- #elif UNITY_5_6_OR_NEWER
7
+ #elif UNITY_5_6_OR_NEWER && ENABLE_VR
8
8
using XRSettings = UnityEngine . VR . VRSettings ;
9
9
#endif
10
10
You can’t perform that action at this time.
0 commit comments