This repository was archived by the owner on Nov 30, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +10
-7
lines changed Expand file tree Collapse file tree 4 files changed +10
-7
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.
66
77## [ 2.1.7] - 2019-XX-XX
88
9+ ### Added
10+ - Initial Stadia platform support.
11+
912### Fixed
1013- Viewport handling wasn't working correctly when FXAA or SMAA were used with builtin pipelines.
1114- Depth of Field could end up fully blurry depending on the project setup.
Original file line number Diff line number Diff line change 55
66namespace UnityEngine . Rendering . PostProcessing
77{
8- #if UNITY_2017_2_OR_NEWER
8+ #if UNITY_2017_2_OR_NEWER && ENABLE_VR
99 using XRSettings = UnityEngine . XR . XRSettings ;
10- #elif UNITY_5_6_OR_NEWER
10+ #elif UNITY_5_6_OR_NEWER && ENABLE_VR
1111 using XRSettings = UnityEngine . VR . VRSettings ;
1212#endif
1313
@@ -409,7 +409,7 @@ void OnPreCull()
409409 m_Camera . ResetProjectionMatrix ( ) ;
410410 m_Camera . nonJitteredProjectionMatrix = m_Camera . projectionMatrix ;
411411
412- #if ! UNITY_SWITCH
412+ #if ENABLE_VR
413413 if ( m_Camera . stereoEnabled )
414414 {
415415 m_Camera . ResetStereoProjectionMatrices ( ) ;
Original file line number Diff line number Diff line change 22
33namespace UnityEngine . Rendering . PostProcessing
44{
5- #if UNITY_2017_2_OR_NEWER
5+ #if UNITY_2017_2_OR_NEWER && ENABLE_VR
66 using XRSettings = UnityEngine . XR . XRSettings ;
7- #elif UNITY_5_6_OR_NEWER
7+ #elif UNITY_5_6_OR_NEWER && ENABLE_VR
88 using XRSettings = UnityEngine . VR . VRSettings ;
99#endif
1010
Original file line number Diff line number Diff line change @@ -781,7 +781,7 @@ public static bool isSinglePassStereoEnabled
781781 {
782782#if UNITY_EDITOR
783783 return isSinglePassStereoSelected && Application . isPlaying ;
784- #elif UNITY_SWITCH
784+ #elif ! ENABLE_VR
785785 return false ;
786786#elif UNITY_2017_2_OR_NEWER
787787 return UnityEngine . XR . XRSettings . eyeTextureDesc . vrUsage == VRTextureUsage . TwoEyes ;
@@ -800,7 +800,7 @@ public static bool isVREnabled
800800 {
801801#if UNITY_EDITOR
802802 return UnityEditor . PlayerSettings . virtualRealitySupported ;
803- #elif UNITY_XBOXONE || UNITY_SWITCH
803+ #elif UNITY_XBOXONE || ! ENABLE_VR
804804 return false ;
805805#elif UNITY_2017_2_OR_NEWER
806806 return UnityEngine . XR . XRSettings . enabled ;
You can’t perform that action at this time.
0 commit comments