Skip to content

Commit

Permalink
Upgraded to Unity 2020.1 + Fixed Quest compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
YannickNovelab committed Sep 25, 2020
1 parent 7d701b5 commit 2e9ea20
Show file tree
Hide file tree
Showing 126 changed files with 11,796 additions and 306 deletions.
5 changes: 3 additions & 2 deletions Assets/Materials/DebugMat.mat
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 1
version: 2
--- !u!21 &2100000
Material:
serializedVersion: 6
Expand All @@ -26,7 +26,7 @@ Material:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: 3050
m_CustomRenderQueue: 3000
stringTagMap:
RenderType: Transparent
disabledShaderPasses:
Expand Down Expand Up @@ -89,3 +89,4 @@ Material:
- _Color: {r: 0.5, g: 0.5, b: 0.5, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
m_BuildTextureStacks: []
5 changes: 3 additions & 2 deletions Assets/Materials/GridMath.mat
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Material:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: 2050
m_CustomRenderQueue: 2000
stringTagMap:
RenderType: Opaque
disabledShaderPasses: []
Expand Down Expand Up @@ -75,6 +75,7 @@ Material:
- _Color: {r: 0.5, g: 0.5, b: 0.5, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
m_BuildTextureStacks: []
--- !u!114 &9104054243086097926
MonoBehaviour:
m_ObjectHideFlags: 11
Expand All @@ -87,4 +88,4 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 1
version: 2
4 changes: 2 additions & 2 deletions Assets/Resources/Input/TESInputActions.inputactions
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@
{
"name": "",
"id": "289e944e-aa2c-46b7-beaa-4447d72ecf49",
"path": "<XRController>{LeftHand}/joystickClicked",
"path": "<XRController>{LeftHand}/grip",
"interactions": "",
"processors": "",
"groups": "",
Expand All @@ -684,7 +684,7 @@
{
"name": "",
"id": "b29dc1de-480a-43c8-ba69-c9ac6efffbf1",
"path": "<XRController>{RightHand}/joystickClicked",
"path": "<XRController>{RightHand}/grip",
"interactions": "",
"processors": "",
"groups": "",
Expand Down
6 changes: 4 additions & 2 deletions Assets/Resources/Prefabs/Spectator.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,8 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedComponents:
- {fileID: 2517026290458435720, guid: e3405669209f6024ba276d1170d50dee, type: 3}
m_SourcePrefab: {fileID: 100100000, guid: e3405669209f6024ba276d1170d50dee, type: 3}
--- !u!4 &8404783985154368076 stripped
Transform:
Expand Down Expand Up @@ -467,7 +468,8 @@ PrefabInstance:
propertyPath: m_Name
value: OculusTouchForQuestAndRiftS_Left
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedComponents:
- {fileID: 3023270788309581594, guid: 1d88c17fdc43fd54f875b777a5280d81, type: 3}
m_SourcePrefab: {fileID: 100100000, guid: 1d88c17fdc43fd54f875b777a5280d81, type: 3}
--- !u!4 &1722930402696785955 stripped
Transform:
Expand Down
5 changes: 3 additions & 2 deletions Assets/Resources/Rendering/UniversalRP/Materials/URP-Lit.mat
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 1
version: 2
--- !u!21 &2100000
Material:
serializedVersion: 6
Expand All @@ -26,7 +26,7 @@ Material:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: 2050
m_CustomRenderQueue: 2000
stringTagMap:
MotionVector: User
RenderType: Opaque
Expand Down Expand Up @@ -120,3 +120,4 @@ Material:
- _Color: {r: 0.5, g: 0.5, b: 0.5, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
m_BuildTextureStacks: []
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 1
version: 2
--- !u!21 &2100000
Material:
serializedVersion: 6
Expand All @@ -26,7 +26,7 @@ Material:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: 2500
m_CustomRenderQueue: 2450
stringTagMap:
MotionVector: User
RenderType: TransparentCutout
Expand Down Expand Up @@ -124,3 +124,4 @@ Material:
- _Color: {r: 0.5, g: 0.5, b: 0.5, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
m_BuildTextureStacks: []
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 1
version: 2
--- !u!21 &2100000
Material:
serializedVersion: 6
Expand All @@ -26,7 +26,7 @@ Material:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: 2050
m_CustomRenderQueue: 2000
stringTagMap:
MotionVector: User
RenderType: Opaque
Expand Down Expand Up @@ -124,3 +124,4 @@ Material:
- _Color: {r: 0.5, g: 0.5, b: 0.5, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
m_BuildTextureStacks: []
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ Material:
- Vector2_7FB4D234: {r: -2.62, g: -0.3, b: 0, a: 0}
- Vector2_91BF8B61: {r: 4, g: 4, b: 0, a: 0}
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
m_BuildTextureStacks: []
--- !u!114 &4543296596505370837
MonoBehaviour:
m_ObjectHideFlags: 11
Expand All @@ -138,4 +139,4 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 1
version: 2
17 changes: 0 additions & 17 deletions Assets/Scripts/TES/Components/Graphics/GraphicsManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,6 @@ private void Awake()

instanceProfile.DisableEffect<MotionBlur>();
instanceProfile.DisableEffect<Vignette>();

#if UNITY_ANDROID
// Apply Fixed Foveated Rendering on Qo/Quest
var tes3 = TES3Engine.Instance;
if (tes3 != null && XRManager.GetXRVendor() == XRVendor.Oculus)
{
tes3.CurrentCellChanged += Instance_CurrentCellChanged;
}
#endif
}

if (config.PostProcessingQuality == PostProcessingQuality.Low)
Expand Down Expand Up @@ -141,13 +132,5 @@ private IEnumerator Start()
break;
}
}

#if UNITY_ANDROID
private void Instance_CurrentCellChanged(ESM.Records.CELLRecord obj)
{
var level = obj.isInterior ? 1 : 3;
Unity.XR.Oculus.Utils.SetFoveationLevel(level);
}
#endif
}
}
69 changes: 0 additions & 69 deletions Assets/Scripts/TES/Components/Graphics/LODGenerator.cs

This file was deleted.

104 changes: 0 additions & 104 deletions Assets/Scripts/TES/Components/Graphics/MeshMerger.cs

This file was deleted.

Loading

0 comments on commit 2e9ea20

Please sign in to comment.