Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.

Commit 95783cb

Browse files
authored
Merge pull request #270 from keijiro/v2_xb1_fix
Fixes for Xbox One support
2 parents ec0c9ee + 23fcd16 commit 95783cb

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

PostProcessing/Runtime/Utils/RuntimeUtilities.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,8 @@ public static bool isVREnabled
240240
{
241241
#if UNITY_EDITOR
242242
return UnityEditor.PlayerSettings.virtualRealitySupported;
243+
#elif UNITY_XBOXONE
244+
return false;
243245
#elif UNITY_2017_2_OR_NEWER
244246
return UnityEngine.XR.XRSettings.enabled;
245247
#elif UNITY_5_6_OR_NEWER

PostProcessing/Shaders/API/XboxOne.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#define UNITY_UV_STARTS_AT_TOP 0 // Probably wrong?
1+
#define UNITY_UV_STARTS_AT_TOP 1
22
#define UNITY_REVERSED_Z 1
33
#define UNITY_GATHER_SUPPORTED (SHADER_TARGET >= 50)
44

0 commit comments

Comments
 (0)