OVRMixedRealityCaptureConfiguration.cs
4.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/************************************************************************************
Copyright : Copyright (c) Facebook Technologies, LLC and its affiliates. All rights reserved.
Your use of this SDK or tool is subject to the Oculus SDK License Agreement, available at
https://developer.oculus.com/licenses/oculussdk/
Unless required by applicable law or agreed to in writing, the Utilities SDK distributed
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
ANY KIND, either express or implied. See the License for the specific language governing
permissions and limitations under the License.
************************************************************************************/
#if UNITY_ANDROID && !UNITY_EDITOR
#define OVR_ANDROID_MRC
#endif
using System;
using UnityEngine;
public interface OVRMixedRealityCaptureConfiguration
{
#if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN || UNITY_ANDROID
bool enableMixedReality { get; set; }
LayerMask extraHiddenLayers { get; set; }
LayerMask extraVisibleLayers { get; set; }
bool dynamicCullingMask { get; set; }
OVRManager.CompositionMethod compositionMethod { get; set; }
Color externalCompositionBackdropColorRift { get; set; }
Color externalCompositionBackdropColorQuest { get; set; }
OVRManager.CameraDevice capturingCameraDevice { get; set; }
bool flipCameraFrameHorizontally { get; set; }
bool flipCameraFrameVertically { get; set; }
float handPoseStateLatency { get; set; }
float sandwichCompositionRenderLatency { get; set; }
int sandwichCompositionBufferedFrames { get; set; }
Color chromaKeyColor { get; set; }
float chromaKeySimilarity { get; set; }
float chromaKeySmoothRange { get; set; }
float chromaKeySpillRange { get; set; }
bool useDynamicLighting { get; set; }
OVRManager.DepthQuality depthQuality { get; set; }
float dynamicLightingSmoothFactor { get; set; }
float dynamicLightingDepthVariationClampingValue { get; set; }
OVRManager.VirtualGreenScreenType virtualGreenScreenType { get; set; }
float virtualGreenScreenTopY { get; set; }
float virtualGreenScreenBottomY { get; set; }
bool virtualGreenScreenApplyDepthCulling { get; set; }
float virtualGreenScreenDepthTolerance { get; set; }
OVRManager.MrcActivationMode mrcActivationMode { get; set; }
OVRManager.InstantiateMrcCameraDelegate instantiateMixedRealityCameraGameObject { get; set; }
#endif
}
#if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN || UNITY_ANDROID
public static class OVRMixedRealityCaptureConfigurationExtensions
{
public static void ApplyTo(this OVRMixedRealityCaptureConfiguration dest, OVRMixedRealityCaptureConfiguration source)
{
dest.ReadFrom(source);
}
public static void ReadFrom(this OVRMixedRealityCaptureConfiguration dest, OVRMixedRealityCaptureConfiguration source)
{
dest.enableMixedReality = source.enableMixedReality;
dest.compositionMethod = source.compositionMethod;
dest.extraHiddenLayers = source.extraHiddenLayers;
dest.externalCompositionBackdropColorRift = source.externalCompositionBackdropColorRift;
dest.externalCompositionBackdropColorQuest = source.externalCompositionBackdropColorQuest;
dest.capturingCameraDevice = source.capturingCameraDevice;
dest.flipCameraFrameHorizontally = source.flipCameraFrameHorizontally;
dest.flipCameraFrameVertically = source.flipCameraFrameVertically;
dest.handPoseStateLatency = source.handPoseStateLatency;
dest.sandwichCompositionRenderLatency = source.sandwichCompositionRenderLatency;
dest.sandwichCompositionBufferedFrames = source.sandwichCompositionBufferedFrames;
dest.chromaKeyColor = source.chromaKeyColor;
dest.chromaKeySimilarity = source.chromaKeySimilarity;
dest.chromaKeySmoothRange = source.chromaKeySmoothRange;
dest.chromaKeySpillRange = source.chromaKeySpillRange;
dest.useDynamicLighting = source.useDynamicLighting;
dest.depthQuality = source.depthQuality;
dest.dynamicLightingSmoothFactor = source.dynamicLightingSmoothFactor;
dest.dynamicLightingDepthVariationClampingValue = source.dynamicLightingDepthVariationClampingValue;
dest.virtualGreenScreenType = source.virtualGreenScreenType;
dest.virtualGreenScreenTopY = source.virtualGreenScreenTopY;
dest.virtualGreenScreenBottomY = source.virtualGreenScreenBottomY;
dest.virtualGreenScreenApplyDepthCulling = source.virtualGreenScreenApplyDepthCulling;
dest.virtualGreenScreenDepthTolerance = source.virtualGreenScreenDepthTolerance;
dest.mrcActivationMode = source.mrcActivationMode;
dest.instantiateMixedRealityCameraGameObject = source.instantiateMixedRealityCameraGameObject;
}
}
#endif