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.
6
6
7
7
## [ 2.1.7] - 2019-XX-XX
8
8
9
+ ### Added
10
+ - Initial 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
Original file line number Diff line number Diff line change @@ -781,7 +781,7 @@ public static bool isSinglePassStereoEnabled
781
781
{
782
782
#if UNITY_EDITOR
783
783
return isSinglePassStereoSelected && Application . isPlaying ;
784
- #elif UNITY_SWITCH
784
+ #elif ! ENABLE_VR
785
785
return false ;
786
786
#elif UNITY_2017_2_OR_NEWER
787
787
return UnityEngine . XR . XRSettings . eyeTextureDesc . vrUsage == VRTextureUsage . TwoEyes ;
@@ -800,7 +800,7 @@ public static bool isVREnabled
800
800
{
801
801
#if UNITY_EDITOR
802
802
return UnityEditor . PlayerSettings . virtualRealitySupported ;
803
- #elif UNITY_XBOXONE || UNITY_SWITCH
803
+ #elif UNITY_XBOXONE || ! ENABLE_VR
804
804
return false ;
805
805
#elif UNITY_2017_2_OR_NEWER
806
806
return UnityEngine . XR . XRSettings . enabled ;
You can’t perform that action at this time.
0 commit comments