Added VR libraries
This commit is contained in:
5
Assets/Oculus/VR/Editor.meta
Normal file
5
Assets/Oculus/VR/Editor.meta
Normal file
@@ -0,0 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 76c19abd24bec62459b5f0d26fdd9a85
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
userData:
|
||||
19
Assets/Oculus/VR/Editor/AndroidManifest.OVRSubmission.xml
Normal file
19
Assets/Oculus/VR/Editor/AndroidManifest.OVRSubmission.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:installLocation="auto">
|
||||
<application
|
||||
android:allowBackup="false">
|
||||
<activity
|
||||
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
|
||||
android:configChanges="locale|fontScale|keyboard|keyboardHidden|mcc|mnc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode"
|
||||
android:launchMode="singleTask"
|
||||
android:name="com.unity3d.player.UnityPlayerActivity"
|
||||
android:excludeFromRecents="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
<category android:name="android.intent.category.INFO"/>
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<meta-data android:name="unityplayer.SkipPermissionsDialog" android:value="false" />
|
||||
</application>
|
||||
</manifest>
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7a16cc136accf1f42bdc6f71f94b50ac
|
||||
timeCreated: 1475710636
|
||||
licenseType: Pro
|
||||
TextScriptImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
55
Assets/Oculus/VR/Editor/OVRBuild.cs
Normal file
55
Assets/Oculus/VR/Editor/OVRBuild.cs
Normal file
@@ -0,0 +1,55 @@
|
||||
/************************************************************************************
|
||||
|
||||
Copyright : Copyright 2017 Oculus VR, LLC. All Rights reserved.
|
||||
|
||||
Licensed under the Oculus VR Rift SDK License Version 3.4.1 (the "License");
|
||||
you may not use the Oculus VR Rift SDK except in compliance with the License,
|
||||
which is provided at the time of installation or download, or which
|
||||
otherwise accompanies this software in either electronic or hard copy form.
|
||||
|
||||
You may obtain a copy of the License at
|
||||
|
||||
https://developer.oculus.com/licenses/sdk-3.4.1
|
||||
|
||||
Unless required by applicable law or agreed to in writing, the Oculus VR 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.
|
||||
|
||||
************************************************************************************/
|
||||
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
|
||||
/// <summary>
|
||||
/// Allows Oculus to build apps from the command line.
|
||||
/// </summary>
|
||||
partial class OculusBuildApp
|
||||
{
|
||||
static void SetPCTarget()
|
||||
{
|
||||
if (EditorUserBuildSettings.activeBuildTarget != BuildTarget.StandaloneWindows)
|
||||
{
|
||||
EditorUserBuildSettings.SwitchActiveBuildTarget (BuildTargetGroup.Standalone, BuildTarget.StandaloneWindows);
|
||||
}
|
||||
UnityEditorInternal.VR.VREditor.SetVREnabledOnTargetGroup(BuildTargetGroup.Standalone, true);
|
||||
PlayerSettings.virtualRealitySupported = true;
|
||||
AssetDatabase.SaveAssets();
|
||||
}
|
||||
|
||||
static void SetAndroidTarget()
|
||||
{
|
||||
EditorUserBuildSettings.androidBuildSubtarget = MobileTextureSubtarget.ASTC;
|
||||
EditorUserBuildSettings.androidBuildSystem = AndroidBuildSystem.Internal;
|
||||
|
||||
if (EditorUserBuildSettings.activeBuildTarget != BuildTarget.Android)
|
||||
{
|
||||
EditorUserBuildSettings.SwitchActiveBuildTarget(BuildTargetGroup.Android, BuildTarget.Android);
|
||||
}
|
||||
|
||||
UnityEditorInternal.VR.VREditor.SetVREnabledOnTargetGroup(BuildTargetGroup.Standalone, true);
|
||||
PlayerSettings.virtualRealitySupported = true;
|
||||
AssetDatabase.SaveAssets();
|
||||
}
|
||||
}
|
||||
8
Assets/Oculus/VR/Editor/OVRBuild.cs.meta
Normal file
8
Assets/Oculus/VR/Editor/OVRBuild.cs.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fef522d0247215a43be6b1a8819bd940
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
317
Assets/Oculus/VR/Editor/OVREngineConfigurationUpdater.cs
Normal file
317
Assets/Oculus/VR/Editor/OVREngineConfigurationUpdater.cs
Normal file
@@ -0,0 +1,317 @@
|
||||
/************************************************************************************
|
||||
|
||||
Copyright : Copyright 2017 Oculus VR, LLC. All Rights reserved.
|
||||
|
||||
Licensed under the Oculus VR Rift SDK License Version 3.4.1 (the "License");
|
||||
you may not use the Oculus VR Rift SDK except in compliance with the License,
|
||||
which is provided at the time of installation or download, or which
|
||||
otherwise accompanies this software in either electronic or hard copy form.
|
||||
|
||||
You may obtain a copy of the License at
|
||||
|
||||
https://developer.oculus.com/licenses/sdk-3.4.1
|
||||
|
||||
Unless required by applicable law or agreed to in writing, the Oculus VR 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.
|
||||
|
||||
************************************************************************************/
|
||||
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
using UnityEditor.Callbacks;
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
[InitializeOnLoad]
|
||||
class OVREngineConfigurationUpdater
|
||||
{
|
||||
private const string prefName = "OVREngineConfigurationUpdater_Enabled";
|
||||
private const string menuItemName = "Tools/Oculus/Use Required Project Settings";
|
||||
private const string androidAssetsPath = "Assets/Plugins/Android/assets";
|
||||
private const string androidManifestPath = "Assets/Plugins/Android/AndroidManifest.xml";
|
||||
static bool setPrefsForUtilities;
|
||||
|
||||
[MenuItem(menuItemName)]
|
||||
static void ToggleUtilities()
|
||||
{
|
||||
setPrefsForUtilities = !setPrefsForUtilities;
|
||||
Menu.SetChecked(menuItemName, setPrefsForUtilities);
|
||||
|
||||
int newValue = (setPrefsForUtilities) ? 1 : 0;
|
||||
PlayerPrefs.SetInt(prefName, newValue);
|
||||
PlayerPrefs.Save();
|
||||
|
||||
Debug.Log("Using required project settings: " + setPrefsForUtilities);
|
||||
}
|
||||
|
||||
#if UNITY_2017_3_OR_NEWER
|
||||
private static readonly string dashSupportEnableConfirmedKey = "Oculus_Utilities_OVREngineConfiguration_DashSupportEnableConfirmed_" + Application.unityVersion + OVRManager.utilitiesVersion;
|
||||
private static bool dashSupportEnableConfirmed
|
||||
{
|
||||
get
|
||||
{
|
||||
return PlayerPrefs.GetInt(dashSupportEnableConfirmedKey, 0) == 1;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
PlayerPrefs.SetInt(dashSupportEnableConfirmedKey, value ? 1 : 0);
|
||||
}
|
||||
}
|
||||
|
||||
private static void DashSupportWarningPrompt()
|
||||
{
|
||||
/// <summary>
|
||||
/// Since Unity 2017.3.0f1 and 2017.3.0f2 have "Dash Support" enabled by default
|
||||
/// We need prompt developers in case they never test their app with dash
|
||||
/// </summary>
|
||||
///
|
||||
if (Application.unityVersion == "2017.3.0f1" || Application.unityVersion == "2017.3.0f2")
|
||||
{
|
||||
if (!dashSupportEnableConfirmed)
|
||||
{
|
||||
bool dialogResult = EditorUtility.DisplayDialog("Oculus Dash support", "Your current Unity engine " + Application.unityVersion +
|
||||
" has Oculus Dash Supporting enabled by default. please make sure to test your app with Dash enabled runtime 1.21 or newer," +
|
||||
" Otherwise, you can also turn it off under XR Settings -> Oculus", "Understand", "Learn more ");
|
||||
|
||||
if (!dialogResult)
|
||||
{
|
||||
Application.OpenURL("https://developer.oculus.com/documentation/unity/latest/concepts/unity-lifecycle/");
|
||||
}
|
||||
|
||||
dashSupportEnableConfirmed = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
static OVREngineConfigurationUpdater()
|
||||
{
|
||||
EditorApplication.delayCall += OnDelayCall;
|
||||
EditorApplication.update += OnUpdate;
|
||||
|
||||
#if UNITY_2017_3_OR_NEWER
|
||||
DashSupportWarningPrompt();
|
||||
#endif
|
||||
}
|
||||
|
||||
static void OnDelayCall()
|
||||
{
|
||||
setPrefsForUtilities = PlayerPrefs.GetInt(prefName, 1) != 0;
|
||||
Menu.SetChecked(menuItemName, setPrefsForUtilities);
|
||||
|
||||
if (!setPrefsForUtilities)
|
||||
return;
|
||||
|
||||
OVRPlugin.SendEvent("BuildTarget", EditorUserBuildSettings.activeBuildTarget.ToString());
|
||||
EnforceAndroidSettings();
|
||||
EnforceInputManagerBindings();
|
||||
#if UNITY_ANDROID
|
||||
EnforceOSIG();
|
||||
#endif
|
||||
}
|
||||
|
||||
static void OnUpdate()
|
||||
{
|
||||
if (!setPrefsForUtilities)
|
||||
return;
|
||||
|
||||
EnforceBundleId();
|
||||
EnforceVRSupport();
|
||||
EnforceInstallLocation();
|
||||
}
|
||||
|
||||
static void EnforceAndroidSettings()
|
||||
{
|
||||
if (EditorUserBuildSettings.activeBuildTarget != BuildTarget.Android)
|
||||
return;
|
||||
|
||||
if (PlayerSettings.defaultInterfaceOrientation != UIOrientation.LandscapeLeft)
|
||||
{
|
||||
Debug.Log("OVREngineConfigurationUpdater: Setting orientation to Landscape Left");
|
||||
// Default screen orientation must be set to landscape left.
|
||||
PlayerSettings.defaultInterfaceOrientation = UIOrientation.LandscapeLeft;
|
||||
}
|
||||
|
||||
if (!PlayerSettings.virtualRealitySupported)
|
||||
{
|
||||
// NOTE: This value should not affect the main window surface
|
||||
// when Built-in VR support is enabled.
|
||||
|
||||
// NOTE: On Adreno Lollipop, it is an error to have antiAliasing set on the
|
||||
// main window surface with front buffer rendering enabled. The view will
|
||||
// render black.
|
||||
// On Adreno KitKat, some tiling control modes will cause the view to render
|
||||
// black.
|
||||
if (QualitySettings.antiAliasing != 0 && QualitySettings.antiAliasing != 1)
|
||||
{
|
||||
Debug.Log("OVREngineConfigurationUpdater: Disabling antiAliasing");
|
||||
QualitySettings.antiAliasing = 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (QualitySettings.vSyncCount != 0)
|
||||
{
|
||||
Debug.Log("OVREngineConfigurationUpdater: Setting vsyncCount to 0");
|
||||
// We sync in the TimeWarp, so we don't want unity syncing elsewhere.
|
||||
QualitySettings.vSyncCount = 0;
|
||||
}
|
||||
}
|
||||
|
||||
static void EnforceVRSupport()
|
||||
{
|
||||
if (PlayerSettings.virtualRealitySupported)
|
||||
return;
|
||||
|
||||
var mgrs = GameObject.FindObjectsOfType<OVRManager>();
|
||||
for (int i = 0; i < mgrs.Length; ++i)
|
||||
{
|
||||
if (mgrs [i].isActiveAndEnabled)
|
||||
{
|
||||
Debug.Log ("Enabling Unity VR support");
|
||||
PlayerSettings.virtualRealitySupported = true;
|
||||
|
||||
bool oculusFound = false;
|
||||
#if UNITY_2017_2_OR_NEWER
|
||||
foreach (var device in UnityEngine.XR.XRSettings.supportedDevices)
|
||||
#else
|
||||
foreach (var device in UnityEngine.VR.VRSettings.supportedDevices)
|
||||
#endif
|
||||
oculusFound |= (device == "Oculus");
|
||||
|
||||
if (!oculusFound)
|
||||
Debug.LogError("Please add Oculus to the list of supported devices to use the Utilities.");
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static void EnforceBundleId()
|
||||
{
|
||||
if (!PlayerSettings.virtualRealitySupported)
|
||||
return;
|
||||
|
||||
if (PlayerSettings.applicationIdentifier == "" || PlayerSettings.applicationIdentifier == "com.Company.ProductName")
|
||||
{
|
||||
string defaultBundleId = "com.oculus.UnitySample";
|
||||
Debug.LogWarning("\"" + PlayerSettings.applicationIdentifier + "\" is not a valid bundle identifier. Defaulting to \"" + defaultBundleId + "\".");
|
||||
PlayerSettings.applicationIdentifier = defaultBundleId;
|
||||
}
|
||||
}
|
||||
|
||||
private static void EnforceInstallLocation()
|
||||
{
|
||||
if (PlayerSettings.Android.preferredInstallLocation != AndroidPreferredInstallLocation.Auto)
|
||||
PlayerSettings.Android.preferredInstallLocation = AndroidPreferredInstallLocation.Auto;
|
||||
}
|
||||
|
||||
private static void EnforceInputManagerBindings()
|
||||
{
|
||||
try
|
||||
{
|
||||
BindAxis(new Axis() { name = "Oculus_GearVR_LThumbstickX", axis = 0, });
|
||||
BindAxis(new Axis() { name = "Oculus_GearVR_LThumbstickY", axis = 1, invert = true });
|
||||
BindAxis(new Axis() { name = "Oculus_GearVR_RThumbstickX", axis = 2, });
|
||||
BindAxis(new Axis() { name = "Oculus_GearVR_RThumbstickY", axis = 3, invert = true });
|
||||
BindAxis(new Axis() { name = "Oculus_GearVR_DpadX", axis = 4, });
|
||||
BindAxis(new Axis() { name = "Oculus_GearVR_DpadY", axis = 5, invert = true });
|
||||
BindAxis(new Axis() { name = "Oculus_GearVR_LIndexTrigger", axis = 12, });
|
||||
BindAxis(new Axis() { name = "Oculus_GearVR_RIndexTrigger", axis = 11, });
|
||||
}
|
||||
catch
|
||||
{
|
||||
Debug.LogError("Failed to apply Oculus GearVR input manager bindings.");
|
||||
}
|
||||
}
|
||||
|
||||
private static void EnforceOSIG()
|
||||
{
|
||||
// Don't bug the user in play mode.
|
||||
if (Application.isPlaying)
|
||||
return;
|
||||
|
||||
// Don't warn if the project may be set up for submission or global signing.
|
||||
if (File.Exists(androidManifestPath))
|
||||
return;
|
||||
|
||||
bool foundPossibleOsig = false;
|
||||
if (Directory.Exists(androidAssetsPath))
|
||||
{
|
||||
var files = Directory.GetFiles(androidAssetsPath);
|
||||
for (int i = 0; i < files.Length; ++i)
|
||||
{
|
||||
if (!files[i].Contains(".txt"))
|
||||
{
|
||||
foundPossibleOsig = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!foundPossibleOsig)
|
||||
Debug.LogWarning("Missing Gear VR OSIG at " + androidAssetsPath + ". Please see https://dashboard.oculus.com/tools/osig-generator");
|
||||
}
|
||||
|
||||
private class Axis
|
||||
{
|
||||
public string name = String.Empty;
|
||||
public string descriptiveName = String.Empty;
|
||||
public string descriptiveNegativeName = String.Empty;
|
||||
public string negativeButton = String.Empty;
|
||||
public string positiveButton = String.Empty;
|
||||
public string altNegativeButton = String.Empty;
|
||||
public string altPositiveButton = String.Empty;
|
||||
public float gravity = 0.0f;
|
||||
public float dead = 0.001f;
|
||||
public float sensitivity = 1.0f;
|
||||
public bool snap = false;
|
||||
public bool invert = false;
|
||||
public int type = 2;
|
||||
public int axis = 0;
|
||||
public int joyNum = 0;
|
||||
}
|
||||
|
||||
private static void BindAxis(Axis axis)
|
||||
{
|
||||
SerializedObject serializedObject = new SerializedObject(AssetDatabase.LoadAllAssetsAtPath("ProjectSettings/InputManager.asset")[0]);
|
||||
SerializedProperty axesProperty = serializedObject.FindProperty("m_Axes");
|
||||
|
||||
SerializedProperty axisIter = axesProperty.Copy();
|
||||
axisIter.Next(true);
|
||||
axisIter.Next(true);
|
||||
while (axisIter.Next(false))
|
||||
{
|
||||
if (axisIter.FindPropertyRelative("m_Name").stringValue == axis.name)
|
||||
{
|
||||
// Axis already exists. Don't create binding.
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
axesProperty.arraySize++;
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
|
||||
SerializedProperty axisProperty = axesProperty.GetArrayElementAtIndex(axesProperty.arraySize - 1);
|
||||
axisProperty.FindPropertyRelative("m_Name").stringValue = axis.name;
|
||||
axisProperty.FindPropertyRelative("descriptiveName").stringValue = axis.descriptiveName;
|
||||
axisProperty.FindPropertyRelative("descriptiveNegativeName").stringValue = axis.descriptiveNegativeName;
|
||||
axisProperty.FindPropertyRelative("negativeButton").stringValue = axis.negativeButton;
|
||||
axisProperty.FindPropertyRelative("positiveButton").stringValue = axis.positiveButton;
|
||||
axisProperty.FindPropertyRelative("altNegativeButton").stringValue = axis.altNegativeButton;
|
||||
axisProperty.FindPropertyRelative("altPositiveButton").stringValue = axis.altPositiveButton;
|
||||
axisProperty.FindPropertyRelative("gravity").floatValue = axis.gravity;
|
||||
axisProperty.FindPropertyRelative("dead").floatValue = axis.dead;
|
||||
axisProperty.FindPropertyRelative("sensitivity").floatValue = axis.sensitivity;
|
||||
axisProperty.FindPropertyRelative("snap").boolValue = axis.snap;
|
||||
axisProperty.FindPropertyRelative("invert").boolValue = axis.invert;
|
||||
axisProperty.FindPropertyRelative("type").intValue = axis.type;
|
||||
axisProperty.FindPropertyRelative("axis").intValue = axis.axis;
|
||||
axisProperty.FindPropertyRelative("joyNum").intValue = axis.joyNum;
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c86538ded11bfe24c8c79818bb9ea66a
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
11
Assets/Oculus/VR/Editor/OVRLayerAttributeEditor.cs
Normal file
11
Assets/Oculus/VR/Editor/OVRLayerAttributeEditor.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
[CustomPropertyDrawer(typeof(OVRLayerAttribute))]
|
||||
class LayerAttributeEditor : PropertyDrawer {
|
||||
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
|
||||
{
|
||||
// One line of oxygen free code.
|
||||
property.intValue = EditorGUI.LayerField(position, label, property.intValue);
|
||||
}
|
||||
}
|
||||
12
Assets/Oculus/VR/Editor/OVRLayerAttributeEditor.cs.meta
Normal file
12
Assets/Oculus/VR/Editor/OVRLayerAttributeEditor.cs.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6c08392d306aac74a88ba571af63c985
|
||||
timeCreated: 1499749379
|
||||
licenseType: Pro
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
47
Assets/Oculus/VR/Editor/OVRManifestPreprocessor.cs
Normal file
47
Assets/Oculus/VR/Editor/OVRManifestPreprocessor.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
using System.IO;
|
||||
|
||||
class OVRManifestPreprocessor
|
||||
{
|
||||
[MenuItem("Tools/Oculus/Create store-compatible AndroidManifest.xml", false, 100000)]
|
||||
public static void GenerateManifestForSubmission()
|
||||
{
|
||||
var so = ScriptableObject.CreateInstance(typeof(OVRPluginUpdaterStub));
|
||||
var script = MonoScript.FromScriptableObject(so);
|
||||
string assetPath = AssetDatabase.GetAssetPath(script);
|
||||
string editorDir = Directory.GetParent(assetPath).FullName;
|
||||
string srcFile = editorDir + "/AndroidManifest.OVRSubmission.xml";
|
||||
|
||||
if (!File.Exists(srcFile))
|
||||
{
|
||||
Debug.LogError("Cannot find Android manifest template for submission." +
|
||||
" Please delete the OVR folder and reimport the Oculus Utilities.");
|
||||
return;
|
||||
}
|
||||
|
||||
string manifestFolder = Application.dataPath + "/Plugins/Android";
|
||||
|
||||
if (!Directory.Exists(manifestFolder))
|
||||
Directory.CreateDirectory(manifestFolder);
|
||||
|
||||
string dstFile = manifestFolder + "/AndroidManifest.xml";
|
||||
|
||||
if (File.Exists(dstFile))
|
||||
{
|
||||
Debug.LogWarning("Cannot create Oculus store-compatible manifest due to conflicting file: \""
|
||||
+ dstFile + "\". Please remove it and try again.");
|
||||
return;
|
||||
}
|
||||
|
||||
File.Copy(srcFile, dstFile);
|
||||
AssetDatabase.Refresh();
|
||||
}
|
||||
|
||||
[MenuItem("Tools/Oculus/Remove AndroidManifest.xml")]
|
||||
public static void RemoveAndroidManifest()
|
||||
{
|
||||
AssetDatabase.DeleteAsset("Assets/Plugins/Android/AndroidManifest.xml");
|
||||
AssetDatabase.Refresh();
|
||||
}
|
||||
}
|
||||
13
Assets/Oculus/VR/Editor/OVRManifestPreprocessor.cs.meta
Normal file
13
Assets/Oculus/VR/Editor/OVRManifestPreprocessor.cs.meta
Normal file
@@ -0,0 +1,13 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fb6426f323b7f024ebb25886b5182c4c
|
||||
timeCreated: 1462825988
|
||||
licenseType: Pro
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences:
|
||||
- renderFrom: {fileID: 168286, guid: a5014611cefbb6b4398b7e4c82203d08, type: 2}
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
507
Assets/Oculus/VR/Editor/OVRPluginUpdater.cs
Normal file
507
Assets/Oculus/VR/Editor/OVRPluginUpdater.cs
Normal file
@@ -0,0 +1,507 @@
|
||||
/************************************************************************************
|
||||
|
||||
Copyright : Copyright 2017 Oculus VR, LLC. All Rights reserved.
|
||||
|
||||
Licensed under the Oculus VR Rift SDK License Version 3.4.1 (the "License");
|
||||
you may not use the Oculus VR Rift SDK except in compliance with the License,
|
||||
which is provided at the time of installation or download, or which
|
||||
otherwise accompanies this software in either electronic or hard copy form.
|
||||
|
||||
You may obtain a copy of the License at
|
||||
|
||||
https://developer.oculus.com/licenses/sdk-3.4.1
|
||||
|
||||
Unless required by applicable law or agreed to in writing, the Oculus VR 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.
|
||||
|
||||
************************************************************************************/
|
||||
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
using UnityEditor.Callbacks;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.IO;
|
||||
using System.Diagnostics;
|
||||
|
||||
[InitializeOnLoad]
|
||||
class OVRPluginUpdater
|
||||
{
|
||||
class PluginPackage
|
||||
{
|
||||
public string RootPath;
|
||||
public System.Version Version;
|
||||
public Dictionary<BuildTarget, string> Plugins = new Dictionary<BuildTarget, string>();
|
||||
|
||||
public bool IsBundledPluginPackage()
|
||||
{
|
||||
return (RootPath == GetBundledPluginRootPath());
|
||||
}
|
||||
|
||||
public bool IsEnabled()
|
||||
{
|
||||
// TODO: Check each individual platform rather than using the Win64 DLL status for the overall package status.
|
||||
string win64PluginPath = "";
|
||||
if (Plugins.TryGetValue(BuildTarget.StandaloneWindows64, out win64PluginPath))
|
||||
{
|
||||
return File.Exists(win64PluginPath);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
static OVRPluginUpdater()
|
||||
{
|
||||
EditorApplication.delayCall += OnDelayCall;
|
||||
}
|
||||
|
||||
static void OnDelayCall()
|
||||
{
|
||||
if (ShouldAttemptPluginUpdate())
|
||||
{
|
||||
AttemptPluginUpdate(true);
|
||||
}
|
||||
}
|
||||
|
||||
private static PluginPackage GetPluginPackage(string rootPath)
|
||||
{
|
||||
return new PluginPackage()
|
||||
{
|
||||
RootPath = rootPath,
|
||||
Version = GetPluginVersion(rootPath),
|
||||
Plugins = new Dictionary<BuildTarget, string>()
|
||||
{
|
||||
{ BuildTarget.Android, rootPath + GetPluginBuildTargetSubPath(BuildTarget.Android) },
|
||||
#if UNITY_2017_3_OR_NEWER
|
||||
{ BuildTarget.StandaloneOSX, rootPath + GetPluginBuildTargetSubPath(BuildTarget.StandaloneOSX) },
|
||||
#else
|
||||
{ BuildTarget.StandaloneOSXUniversal, rootPath + GetPluginBuildTargetSubPath(BuildTarget.StandaloneOSXUniversal) },
|
||||
#endif
|
||||
{ BuildTarget.StandaloneWindows, rootPath + GetPluginBuildTargetSubPath(BuildTarget.StandaloneWindows) },
|
||||
{ BuildTarget.StandaloneWindows64, rootPath + GetPluginBuildTargetSubPath(BuildTarget.StandaloneWindows64) },
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
private static PluginPackage GetBundledPluginPackage()
|
||||
{
|
||||
return GetPluginPackage(GetBundledPluginRootPath());
|
||||
}
|
||||
|
||||
private static List<PluginPackage> GetAllUtilitiesPluginPackages()
|
||||
{
|
||||
string pluginRootPath = GetUtilitiesPluginRootPath();
|
||||
List<PluginPackage> packages = new List<PluginPackage>();
|
||||
|
||||
if (Directory.Exists(pluginRootPath))
|
||||
{
|
||||
var dirs = Directory.GetDirectories(pluginRootPath);
|
||||
|
||||
foreach(string dir in dirs)
|
||||
{
|
||||
packages.Add(GetPluginPackage(dir));
|
||||
}
|
||||
}
|
||||
|
||||
return packages;
|
||||
}
|
||||
|
||||
private static string GetCurrentProjectPath()
|
||||
{
|
||||
return Directory.GetParent(Application.dataPath).FullName;
|
||||
}
|
||||
|
||||
private static string GetUtilitiesPluginRootPath()
|
||||
{
|
||||
return GetUtilitiesRootPath() + @"/Plugins";
|
||||
}
|
||||
|
||||
private static string GetUtilitiesRootPath()
|
||||
{
|
||||
var so = ScriptableObject.CreateInstance(typeof(OVRPluginUpdaterStub));
|
||||
var script = MonoScript.FromScriptableObject(so);
|
||||
string assetPath = AssetDatabase.GetAssetPath(script);
|
||||
string editorDir = Directory.GetParent(assetPath).FullName;
|
||||
string ovrDir = Directory.GetParent(editorDir).FullName;
|
||||
|
||||
return ovrDir;
|
||||
}
|
||||
|
||||
private static string GetBundledPluginRootPath()
|
||||
{
|
||||
string basePath = EditorApplication.applicationContentsPath;
|
||||
string pluginPath = @"/UnityExtensions/Unity/VR";
|
||||
|
||||
return basePath + pluginPath;
|
||||
}
|
||||
|
||||
private static string GetPluginBuildTargetSubPath(BuildTarget target)
|
||||
{
|
||||
string path = string.Empty;
|
||||
|
||||
switch (target)
|
||||
{
|
||||
case BuildTarget.Android:
|
||||
path = @"/Android/OVRPlugin.aar";
|
||||
break;
|
||||
#if UNITY_2017_3_OR_NEWER
|
||||
case BuildTarget.StandaloneOSX:
|
||||
#else
|
||||
case BuildTarget.StandaloneOSXUniversal:
|
||||
#endif
|
||||
path = @"/OSXUniversal/OVRPlugin.bundle";
|
||||
break;
|
||||
case BuildTarget.StandaloneWindows:
|
||||
path = @"/Win/OVRPlugin.dll";
|
||||
break;
|
||||
case BuildTarget.StandaloneWindows64:
|
||||
path = @"/Win64/OVRPlugin.dll";
|
||||
break;
|
||||
default:
|
||||
throw new ArgumentException("Attempted GetPluginBuildTargetSubPath() for unsupported BuildTarget: " + target);
|
||||
}
|
||||
|
||||
return path;
|
||||
}
|
||||
|
||||
private static string GetDisabledPluginSuffix()
|
||||
{
|
||||
return @".disabled";
|
||||
}
|
||||
|
||||
private static System.Version GetPluginVersion(string path)
|
||||
{
|
||||
System.Version invalidVersion = new System.Version("0.0.0");
|
||||
System.Version pluginVersion = invalidVersion;
|
||||
|
||||
try
|
||||
{
|
||||
pluginVersion = new System.Version(Path.GetFileName(path));
|
||||
}
|
||||
catch
|
||||
{
|
||||
pluginVersion = invalidVersion;
|
||||
}
|
||||
|
||||
if (pluginVersion == invalidVersion)
|
||||
{
|
||||
//Unable to determine version from path, fallback to Win64 DLL meta data
|
||||
path += GetPluginBuildTargetSubPath(BuildTarget.StandaloneWindows64);
|
||||
if (!File.Exists(path))
|
||||
{
|
||||
path += GetDisabledPluginSuffix();
|
||||
if (!File.Exists(path))
|
||||
{
|
||||
return invalidVersion;
|
||||
}
|
||||
}
|
||||
|
||||
FileVersionInfo pluginVersionInfo = FileVersionInfo.GetVersionInfo(path);
|
||||
if (pluginVersionInfo == null || pluginVersionInfo.ProductVersion == null || pluginVersionInfo.ProductVersion == "")
|
||||
{
|
||||
return invalidVersion;
|
||||
}
|
||||
|
||||
pluginVersion = new System.Version(pluginVersionInfo.ProductVersion);
|
||||
}
|
||||
|
||||
return pluginVersion;
|
||||
}
|
||||
|
||||
private static bool ShouldAttemptPluginUpdate()
|
||||
{
|
||||
return autoUpdateEnabled && !restartPending && !Application.isPlaying;
|
||||
}
|
||||
|
||||
private static void DisableAllUtilitiesPluginPackages()
|
||||
{
|
||||
List<PluginPackage> allUtilsPluginPkgs = GetAllUtilitiesPluginPackages();
|
||||
|
||||
foreach(PluginPackage pluginPkg in allUtilsPluginPkgs)
|
||||
{
|
||||
foreach(string path in pluginPkg.Plugins.Values)
|
||||
{
|
||||
if ((Directory.Exists(path)) || (File.Exists(path)))
|
||||
{
|
||||
string basePath = GetCurrentProjectPath();
|
||||
string relPath = path.Substring(basePath.Length + 1);
|
||||
|
||||
AssetDatabase.MoveAsset(relPath, relPath + GetDisabledPluginSuffix());
|
||||
AssetDatabase.ImportAsset(relPath + GetDisabledPluginSuffix(), ImportAssetOptions.ForceUpdate);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
AssetDatabase.Refresh();
|
||||
AssetDatabase.SaveAssets();
|
||||
}
|
||||
|
||||
private static void EnablePluginPackage(PluginPackage pluginPkg)
|
||||
{
|
||||
foreach(var kvp in pluginPkg.Plugins)
|
||||
{
|
||||
BuildTarget platform = kvp.Key;
|
||||
string path = kvp.Value;
|
||||
|
||||
if ((Directory.Exists(path + GetDisabledPluginSuffix())) || (File.Exists(path + GetDisabledPluginSuffix())))
|
||||
{
|
||||
string basePath = GetCurrentProjectPath();
|
||||
string relPath = path.Substring(basePath.Length + 1);
|
||||
|
||||
AssetDatabase.MoveAsset(relPath + GetDisabledPluginSuffix(), relPath);
|
||||
AssetDatabase.ImportAsset(relPath, ImportAssetOptions.ForceUpdate);
|
||||
|
||||
PluginImporter pi = PluginImporter.GetAtPath(relPath) as PluginImporter;
|
||||
if (pi == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
pi.SetCompatibleWithAnyPlatform(false);
|
||||
|
||||
switch (platform)
|
||||
{
|
||||
case BuildTarget.Android:
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.Android, true);
|
||||
pi.SetPlatformData(BuildTarget.Android, "CPU", "ARMv7");
|
||||
#if UNITY_2017_3_OR_NEWER
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneOSX, false);
|
||||
#else
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneOSXUniversal, false);
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneOSXIntel, false);
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneOSXIntel64, false);
|
||||
#endif
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneWindows, false);
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneWindows64, false);
|
||||
pi.SetCompatibleWithEditor(false);
|
||||
break;
|
||||
#if UNITY_2017_3_OR_NEWER
|
||||
case BuildTarget.StandaloneOSX:
|
||||
#else
|
||||
case BuildTarget.StandaloneOSXUniversal:
|
||||
#endif
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.Android, false);
|
||||
pi.SetPlatformData(BuildTarget.Android, "CPU", "ARMv7");
|
||||
#if UNITY_2017_3_OR_NEWER
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneOSX, true);
|
||||
#else
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneOSXUniversal, true);
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneOSXIntel, true);
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneOSXIntel64, true);
|
||||
#endif
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneWindows, false);
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneWindows64, false);
|
||||
pi.SetCompatibleWithEditor(true);
|
||||
pi.SetEditorData("CPU", "AnyCPU");
|
||||
pi.SetEditorData("OS", "OSX");
|
||||
pi.SetPlatformData("Editor", "CPU", "AnyCPU");
|
||||
pi.SetPlatformData("Editor", "OS", "OSX");
|
||||
break;
|
||||
case BuildTarget.StandaloneWindows:
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.Android, false);
|
||||
pi.SetPlatformData(BuildTarget.Android, "CPU", "ARMv7");
|
||||
#if UNITY_2017_3_OR_NEWER
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneOSX, false);
|
||||
#else
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneOSXUniversal, false);
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneOSXIntel, false);
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneOSXIntel64, false);
|
||||
#endif
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneWindows, true);
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneWindows64, false);
|
||||
pi.SetCompatibleWithEditor(true);
|
||||
pi.SetEditorData("CPU", "X86");
|
||||
pi.SetEditorData("OS", "Windows");
|
||||
pi.SetPlatformData("Editor", "CPU", "X86");
|
||||
pi.SetPlatformData("Editor", "OS", "Windows");
|
||||
break;
|
||||
case BuildTarget.StandaloneWindows64:
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.Android, false);
|
||||
pi.SetPlatformData(BuildTarget.Android, "CPU", "ARMv7");
|
||||
#if UNITY_2017_3_OR_NEWER
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneOSX, false);
|
||||
#else
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneOSXUniversal, false);
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneOSXIntel, false);
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneOSXIntel64, false);
|
||||
#endif
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneWindows, false);
|
||||
pi.SetCompatibleWithPlatform(BuildTarget.StandaloneWindows64, true);
|
||||
pi.SetCompatibleWithEditor(true);
|
||||
pi.SetEditorData("CPU", "X86_64");
|
||||
pi.SetEditorData("OS", "Windows");
|
||||
pi.SetPlatformData("Editor", "CPU", "X86_64");
|
||||
pi.SetPlatformData("Editor", "OS", "Windows");
|
||||
break;
|
||||
default:
|
||||
throw new ArgumentException("Attempted EnablePluginPackage() for unsupported BuildTarget: " + platform);
|
||||
}
|
||||
|
||||
AssetDatabase.ImportAsset(relPath, ImportAssetOptions.ForceUpdate);
|
||||
}
|
||||
}
|
||||
|
||||
AssetDatabase.Refresh();
|
||||
AssetDatabase.SaveAssets();
|
||||
}
|
||||
|
||||
private static bool restartPending = false;
|
||||
private static readonly string autoUpdateEnabledKey = "Oculus_Utilities_OVRPluginUpdater_AutoUpdate_" + OVRManager.utilitiesVersion;
|
||||
private static bool autoUpdateEnabled
|
||||
{
|
||||
get {
|
||||
return PlayerPrefs.GetInt(autoUpdateEnabledKey, 1) == 1;
|
||||
}
|
||||
|
||||
set {
|
||||
PlayerPrefs.SetInt(autoUpdateEnabledKey, value ? 1 : 0);
|
||||
}
|
||||
}
|
||||
|
||||
[MenuItem("Tools/Oculus/Disable OVR Utilities Plugin")]
|
||||
private static void AttemptPluginDisable()
|
||||
{
|
||||
PluginPackage bundledPluginPkg = GetBundledPluginPackage();
|
||||
List<PluginPackage> allUtilsPluginPkgs = GetAllUtilitiesPluginPackages();
|
||||
|
||||
PluginPackage enabledUtilsPluginPkg = null;
|
||||
|
||||
foreach(PluginPackage pluginPkg in allUtilsPluginPkgs)
|
||||
{
|
||||
if (pluginPkg.IsEnabled())
|
||||
{
|
||||
if ((enabledUtilsPluginPkg == null) || (pluginPkg.Version > enabledUtilsPluginPkg.Version))
|
||||
{
|
||||
enabledUtilsPluginPkg = pluginPkg;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (enabledUtilsPluginPkg == null)
|
||||
{
|
||||
if (EditorUtility.DisplayDialog("Disable Oculus Utilities Plugin", "The OVRPlugin included with Oculus Utilities is already disabled. The OVRPlugin bundled with the Unity Editor will continue to be used.\n\nBundled version: " + bundledPluginPkg.Version, "Ok", ""))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (EditorUtility.DisplayDialog("Disable Oculus Utilities Plugin", "Do you want to disable the OVRPlugin included with Oculus Utilities and revert to the OVRPlugin bundled with the Unity Editor?\n\nCurrent version: " + enabledUtilsPluginPkg.Version + "\nBundled version: " + bundledPluginPkg.Version, "Yes", "No"))
|
||||
{
|
||||
DisableAllUtilitiesPluginPackages();
|
||||
|
||||
if (EditorUtility.DisplayDialog("Restart Unity", "OVRPlugin has been updated to " + bundledPluginPkg.Version + ".\n\nPlease restart the Unity Editor to complete the update process. You may need to manually relaunch Unity if you are using Unity 5.6 and higher.", "Restart", "Not Now"))
|
||||
{
|
||||
RestartUnityEditor();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MenuItem("Tools/Oculus/Update OVR Utilities Plugin")]
|
||||
private static void RunPluginUpdate()
|
||||
{
|
||||
AttemptPluginUpdate(false);
|
||||
}
|
||||
|
||||
private static void AttemptPluginUpdate(bool triggeredByAutoUpdate)
|
||||
{
|
||||
autoUpdateEnabled = true;
|
||||
|
||||
PluginPackage bundledPluginPkg = GetBundledPluginPackage();
|
||||
List<PluginPackage> allUtilsPluginPkgs = GetAllUtilitiesPluginPackages();
|
||||
|
||||
PluginPackage enabledUtilsPluginPkg = null;
|
||||
PluginPackage newestUtilsPluginPkg = null;
|
||||
|
||||
foreach(PluginPackage pluginPkg in allUtilsPluginPkgs)
|
||||
{
|
||||
if ((newestUtilsPluginPkg == null) || (pluginPkg.Version > newestUtilsPluginPkg.Version))
|
||||
{
|
||||
newestUtilsPluginPkg = pluginPkg;
|
||||
}
|
||||
|
||||
if (pluginPkg.IsEnabled())
|
||||
{
|
||||
if ((enabledUtilsPluginPkg == null) || (pluginPkg.Version > enabledUtilsPluginPkg.Version))
|
||||
{
|
||||
enabledUtilsPluginPkg = pluginPkg;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
PluginPackage targetPluginPkg = null;
|
||||
|
||||
if ((newestUtilsPluginPkg != null) && (newestUtilsPluginPkg.Version > bundledPluginPkg.Version))
|
||||
{
|
||||
if ((enabledUtilsPluginPkg == null) || (enabledUtilsPluginPkg.Version != newestUtilsPluginPkg.Version))
|
||||
{
|
||||
targetPluginPkg = newestUtilsPluginPkg;
|
||||
}
|
||||
}
|
||||
else if ((enabledUtilsPluginPkg != null) && (enabledUtilsPluginPkg.Version < bundledPluginPkg.Version))
|
||||
{
|
||||
targetPluginPkg = bundledPluginPkg;
|
||||
}
|
||||
|
||||
System.Version currentVersion = (enabledUtilsPluginPkg != null) ? enabledUtilsPluginPkg.Version : bundledPluginPkg.Version;
|
||||
|
||||
if (targetPluginPkg == null)
|
||||
{
|
||||
if (!triggeredByAutoUpdate)
|
||||
{
|
||||
EditorUtility.DisplayDialog("Update Oculus Utilities Plugin", "OVRPlugin is already up to date.\n\nCurrent version: " + currentVersion + "\nBundled version: " + bundledPluginPkg.Version, "Ok", "");
|
||||
}
|
||||
|
||||
return; // No update necessary.
|
||||
}
|
||||
|
||||
System.Version targetVersion = targetPluginPkg.Version;
|
||||
|
||||
int dialogResult = EditorUtility.DisplayDialogComplex("Update Oculus Utilities Plugin", "Oculus Utilities has detected that a newer OVRPlugin is available. Using the newest version is recommended. Do you want to enable it?\n\nCurrent version: " + currentVersion + "\nAvailable version: " + targetVersion, "Yes", "No, Don't Ask Again", "No");
|
||||
|
||||
bool userAcceptsUpdate = false;
|
||||
|
||||
switch (dialogResult)
|
||||
{
|
||||
case 0: // "Yes"
|
||||
userAcceptsUpdate = true;
|
||||
break;
|
||||
case 1: // "No, Don't Ask Again"
|
||||
autoUpdateEnabled = false;
|
||||
|
||||
EditorUtility.DisplayDialog("Oculus Utilities OVRPlugin", "To manually update in the future, use the following menu option:\n\n[Tools -> Oculus -> Update OVR Utilities Plugin]", "Ok", "");
|
||||
return;
|
||||
case 2: // "No"
|
||||
return;
|
||||
}
|
||||
|
||||
if (userAcceptsUpdate)
|
||||
{
|
||||
DisableAllUtilitiesPluginPackages();
|
||||
|
||||
if (!targetPluginPkg.IsBundledPluginPackage())
|
||||
{
|
||||
EnablePluginPackage(targetPluginPkg);
|
||||
}
|
||||
|
||||
if (EditorUtility.DisplayDialog("Restart Unity", "OVRPlugin has been updated to " + targetPluginPkg.Version + ".\n\nPlease restart the Unity Editor to complete the update process. You may need to manually relaunch Unity if you are using Unity 5.6 and higher.", "Restart", "Not Now"))
|
||||
{
|
||||
RestartUnityEditor();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static void RestartUnityEditor()
|
||||
{
|
||||
restartPending = true;
|
||||
EditorApplication.OpenProject(GetCurrentProjectPath());
|
||||
}
|
||||
}
|
||||
12
Assets/Oculus/VR/Editor/OVRPluginUpdater.cs.meta
Normal file
12
Assets/Oculus/VR/Editor/OVRPluginUpdater.cs.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9e64a3a065da39f4caa17a7372962df6
|
||||
timeCreated: 1493086775
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
29
Assets/Oculus/VR/Editor/OVRPluginUpdaterStub.cs
Normal file
29
Assets/Oculus/VR/Editor/OVRPluginUpdaterStub.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
/************************************************************************************
|
||||
|
||||
Copyright : Copyright 2017 Oculus VR, LLC. All Rights reserved.
|
||||
|
||||
Licensed under the Oculus VR Rift SDK License Version 3.4.1 (the "License");
|
||||
you may not use the Oculus VR Rift SDK except in compliance with the License,
|
||||
which is provided at the time of installation or download, or which
|
||||
otherwise accompanies this software in either electronic or hard copy form.
|
||||
|
||||
You may obtain a copy of the License at
|
||||
|
||||
https://developer.oculus.com/licenses/sdk-3.4.1
|
||||
|
||||
Unless required by applicable law or agreed to in writing, the Oculus VR 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.
|
||||
|
||||
************************************************************************************/
|
||||
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
public class OVRPluginUpdaterStub : ScriptableObject
|
||||
{
|
||||
// Stub helper class to locate OVR Utilities Path through Unity Editor API.
|
||||
// Required to be a standalone class in a separate file or else MonoScript.FromScriptableObject() returns an empty string path.
|
||||
}
|
||||
12
Assets/Oculus/VR/Editor/OVRPluginUpdaterStub.cs.meta
Normal file
12
Assets/Oculus/VR/Editor/OVRPluginUpdaterStub.cs.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 791840c2fc67dd3409b79f212fad7dd4
|
||||
timeCreated: 1493148044
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
195
Assets/Oculus/VR/Editor/OVRScreenshotWizard.cs
Normal file
195
Assets/Oculus/VR/Editor/OVRScreenshotWizard.cs
Normal file
@@ -0,0 +1,195 @@
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
using System.IO;
|
||||
|
||||
/// <summary>
|
||||
/// From the selected transform, takes a cubemap screenshot that can be submitted with the application
|
||||
/// as a screenshot (or additionally used for reflection shaders).
|
||||
/// </summary>
|
||||
class OVRScreenshotWizard : ScriptableWizard
|
||||
{
|
||||
public enum TexFormat
|
||||
{
|
||||
JPEG, // 512kb at 1k x 1k resolution vs
|
||||
PNG, // 5.3mb
|
||||
}
|
||||
|
||||
public enum SaveMode {
|
||||
SaveCubemapScreenshot,
|
||||
SaveUnityCubemap,
|
||||
SaveBoth,
|
||||
}
|
||||
|
||||
public GameObject renderFrom = null;
|
||||
public int size = 2048;
|
||||
public SaveMode saveMode = SaveMode.SaveUnityCubemap;
|
||||
public string cubeMapFolder = "Assets/Textures/Cubemaps";
|
||||
public TexFormat textureFormat = TexFormat.PNG;
|
||||
|
||||
/// <summary>
|
||||
/// Validates the user's input
|
||||
/// </summary>
|
||||
void OnWizardUpdate()
|
||||
{
|
||||
helpString = "Select a game object positioned in the place where\nyou want to render the cubemap screenshot from: ";
|
||||
isValid = (renderFrom != null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Create the asset path if it is not available.
|
||||
/// Assuming the newFolderPath is stated with "Assets", which is a requirement.
|
||||
/// </summary>
|
||||
static bool CreateAssetPath( string newFolderPath )
|
||||
{
|
||||
const int maxFoldersCount = 32;
|
||||
string currentPath;
|
||||
string[] pathFolders;
|
||||
|
||||
pathFolders = newFolderPath.Split (new char[]{ '/' }, maxFoldersCount);
|
||||
|
||||
if (!string.Equals ("Assets", pathFolders [0], System.StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
Debug.LogError( "Folder path has to be started with \" Assets \" " );
|
||||
return false;
|
||||
}
|
||||
|
||||
currentPath = "Assets";
|
||||
for (int i = 1; i < pathFolders.Length; i++)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(pathFolders[i]))
|
||||
{
|
||||
string newPath = currentPath + "/" + pathFolders[i];
|
||||
if (!AssetDatabase.IsValidFolder(newPath))
|
||||
AssetDatabase.CreateFolder(currentPath, pathFolders[i]);
|
||||
currentPath = newPath;
|
||||
}
|
||||
}
|
||||
|
||||
Debug.Log( "Created path: " + currentPath );
|
||||
return true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Renders the cubemap
|
||||
/// </summary>
|
||||
void OnWizardCreate()
|
||||
{
|
||||
if ( !AssetDatabase.IsValidFolder( cubeMapFolder ) )
|
||||
{
|
||||
if (!CreateAssetPath(cubeMapFolder))
|
||||
{
|
||||
Debug.LogError( "Created path failed: " + cubeMapFolder );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
bool existingCamera = true;
|
||||
bool existingCameraStateSave = true;
|
||||
Camera camera = renderFrom.GetComponent<Camera>();
|
||||
if (camera == null)
|
||||
{
|
||||
camera = renderFrom.AddComponent<Camera>();
|
||||
camera.farClipPlane = 10000f;
|
||||
existingCamera = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
existingCameraStateSave = camera.enabled;
|
||||
camera.enabled = true;
|
||||
}
|
||||
// find the last screenshot saved
|
||||
if (cubeMapFolder[cubeMapFolder.Length-1] != '/')
|
||||
{
|
||||
cubeMapFolder += "/";
|
||||
}
|
||||
int idx = 0;
|
||||
string[] fileNames = Directory.GetFiles(cubeMapFolder);
|
||||
foreach(string fileName in fileNames)
|
||||
{
|
||||
if (!fileName.ToLower().EndsWith(".cubemap"))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
string temp = fileName.Replace(cubeMapFolder + "vr_screenshot_", string.Empty);
|
||||
temp = temp.Replace(".cubemap", string.Empty);
|
||||
int tempIdx = 0;
|
||||
if (int.TryParse( temp, out tempIdx ))
|
||||
{
|
||||
if (tempIdx > idx)
|
||||
{
|
||||
idx = tempIdx;
|
||||
}
|
||||
}
|
||||
}
|
||||
string pathName = string.Format("{0}vr_screenshot_{1}.cubemap", cubeMapFolder, (++idx).ToString("d2"));
|
||||
Cubemap cubemap = new Cubemap(size, TextureFormat.RGB24, false);
|
||||
|
||||
// render into cubemap
|
||||
if ((camera != null) && (cubemap != null))
|
||||
{
|
||||
// set up cubemap defaults
|
||||
OVRCubemapCapture.RenderIntoCubemap(camera, cubemap);
|
||||
if (existingCamera)
|
||||
{
|
||||
camera.enabled = existingCameraStateSave;
|
||||
}
|
||||
else
|
||||
{
|
||||
DestroyImmediate(camera);
|
||||
}
|
||||
// generate a regular texture as well?
|
||||
if ( ( saveMode == SaveMode.SaveCubemapScreenshot ) || ( saveMode == SaveMode.SaveBoth ) )
|
||||
{
|
||||
GenerateTexture(cubemap, pathName);
|
||||
}
|
||||
|
||||
if ( ( saveMode == SaveMode.SaveUnityCubemap ) || ( saveMode == SaveMode.SaveBoth ) )
|
||||
{
|
||||
Debug.Log( "Saving: " + pathName );
|
||||
// by default the unity cubemap isn't saved
|
||||
AssetDatabase.CreateAsset( cubemap, pathName );
|
||||
// reimport as necessary
|
||||
AssetDatabase.SaveAssets();
|
||||
// select it in the project tree so developers can find it
|
||||
EditorGUIUtility.PingObject( cubemap );
|
||||
Selection.activeObject = cubemap;
|
||||
}
|
||||
AssetDatabase.Refresh();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Generates a NPOT 6x1 cubemap in the following format PX NX PY NY PZ NZ
|
||||
/// </summary>
|
||||
void GenerateTexture(Cubemap cubemap, string pathName)
|
||||
{
|
||||
// Encode the texture and save it to disk
|
||||
pathName = pathName.Replace(".cubemap", (textureFormat == TexFormat.PNG) ? ".png" : ".jpg" ).ToLower();
|
||||
pathName = pathName.Replace( cubeMapFolder.ToLower(), "" );
|
||||
string format = textureFormat.ToString();
|
||||
string fullPath = EditorUtility.SaveFilePanel( string.Format( "Save Cubemap Screenshot as {0}", format ), "", pathName, format.ToLower() );
|
||||
if ( !string.IsNullOrEmpty( fullPath ) )
|
||||
{
|
||||
Debug.Log( "Saving: " + fullPath );
|
||||
OVRCubemapCapture.SaveCubemapCapture(cubemap, fullPath);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unity Editor menu option to take a screenshot
|
||||
/// </summary>
|
||||
[MenuItem("Tools/Oculus/OVR Screenshot Wizard",false,100000)]
|
||||
static void TakeOVRScreenshot()
|
||||
{
|
||||
OVRScreenshotWizard wizard = ScriptableWizard.DisplayWizard<OVRScreenshotWizard>("OVR Screenshot Wizard", "Render Cubemap");
|
||||
if (wizard != null)
|
||||
{
|
||||
if (Selection.activeGameObject != null)
|
||||
wizard.renderFrom = Selection.activeGameObject;
|
||||
else
|
||||
wizard.renderFrom = Camera.main.gameObject;
|
||||
|
||||
wizard.isValid = (wizard.renderFrom != null);
|
||||
}
|
||||
}
|
||||
}
|
||||
13
Assets/Oculus/VR/Editor/OVRScreenshotWizard.cs.meta
Normal file
13
Assets/Oculus/VR/Editor/OVRScreenshotWizard.cs.meta
Normal file
@@ -0,0 +1,13 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b8b9ee1d7b188284f90d944cd54eb026
|
||||
timeCreated: 1462825988
|
||||
licenseType: Pro
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences:
|
||||
- renderFrom: {fileID: 168286, guid: a5014611cefbb6b4398b7e4c82203d08, type: 2}
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
4
Assets/Oculus/VR/Materials.meta
Normal file
4
Assets/Oculus/VR/Materials.meta
Normal file
@@ -0,0 +1,4 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 981b5bce7fc4a2d43a2169710da4b892
|
||||
DefaultImporter:
|
||||
userData:
|
||||
64
Assets/Oculus/VR/Materials/Arrow.mat
Normal file
64
Assets/Oculus/VR/Materials/Arrow.mat
Normal file
@@ -0,0 +1,64 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 3
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: Arrow
|
||||
m_Shader: {fileID: 10101, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_ShaderKeywords: []
|
||||
m_CustomRenderQueue: -1
|
||||
m_SavedProperties:
|
||||
serializedVersion: 2
|
||||
m_TexEnvs:
|
||||
data:
|
||||
first:
|
||||
name: _MainTex
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Floats:
|
||||
data:
|
||||
first:
|
||||
name: _Shininess
|
||||
second: .699999988
|
||||
data:
|
||||
first:
|
||||
name: _Stencil
|
||||
second: 0
|
||||
data:
|
||||
first:
|
||||
name: _StencilReadMask
|
||||
second: 255
|
||||
data:
|
||||
first:
|
||||
name: _StencilWriteMask
|
||||
second: 255
|
||||
data:
|
||||
first:
|
||||
name: _StencilComp
|
||||
second: 8
|
||||
data:
|
||||
first:
|
||||
name: _StencilOp
|
||||
second: 1
|
||||
data:
|
||||
first:
|
||||
name: _ColorMask
|
||||
second: 15
|
||||
m_Colors:
|
||||
data:
|
||||
first:
|
||||
name: _Color
|
||||
second: {r: 1, g: 0, b: 0, a: 1}
|
||||
data:
|
||||
first:
|
||||
name: _Emission
|
||||
second: {r: 0, g: 0, b: 0, a: 0}
|
||||
data:
|
||||
first:
|
||||
name: _SpecColor
|
||||
second: {r: 1, g: 1, b: 1, a: 1}
|
||||
4
Assets/Oculus/VR/Materials/Arrow.mat.meta
Normal file
4
Assets/Oculus/VR/Materials/Arrow.mat.meta
Normal file
@@ -0,0 +1,4 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 669025377795b574da66d9bb2472fcab
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
29
Assets/Oculus/VR/Materials/CubeMaterial.mat
Normal file
29
Assets/Oculus/VR/Materials/CubeMaterial.mat
Normal file
@@ -0,0 +1,29 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 5
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: CubeMaterial
|
||||
m_Shader: {fileID: 7, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_ShaderKeywords:
|
||||
m_LightmapFlags: 5
|
||||
m_CustomRenderQueue: -1
|
||||
m_SavedProperties:
|
||||
serializedVersion: 2
|
||||
m_TexEnvs:
|
||||
data:
|
||||
first:
|
||||
name: _MainTex
|
||||
second:
|
||||
m_Texture: {fileID: 2800000, guid: 020d1a102a7f2a14ebf6cefe7b977303, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Floats: {}
|
||||
m_Colors:
|
||||
data:
|
||||
first:
|
||||
name: _Color
|
||||
second: {r: 1, g: 1, b: 1, a: 1}
|
||||
4
Assets/Oculus/VR/Materials/CubeMaterial.mat.meta
Normal file
4
Assets/Oculus/VR/Materials/CubeMaterial.mat.meta
Normal file
@@ -0,0 +1,4 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 62db2d638434d5a488dfb1e789e34b37
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
43
Assets/Oculus/VR/Materials/GazePointer.mat
Normal file
43
Assets/Oculus/VR/Materials/GazePointer.mat
Normal file
@@ -0,0 +1,43 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 6
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: GazePointer
|
||||
m_Shader: {fileID: 4800000, guid: 38ad33c152e32ee46a9bbbb0e656f7e1, type: 3}
|
||||
m_ShaderKeywords:
|
||||
m_LightmapFlags: 5
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _AlphaTex:
|
||||
m_Texture: {fileID: 2800000, guid: 8b000a1e9077a124f9ad4e81392fccba, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _Illum:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 2800000, guid: 82026cb669304dc4897d2c11d3753141, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Floats:
|
||||
- _AlphaCutoff: 0
|
||||
- _Cutoff: 0.5
|
||||
- _EmissionLM: 0
|
||||
- _EndRadius: 0.8
|
||||
- _Fill: 0.5
|
||||
- _InvFade: 1.11
|
||||
- _StartRadius: 0.2
|
||||
m_Colors:
|
||||
- _Color: {r: 0, g: 1, b: 0.006896496, a: 1}
|
||||
- _TintColor: {r: 0.5, g: 0.5, b: 0.5, a: 0.5}
|
||||
4
Assets/Oculus/VR/Materials/GazePointer.mat.meta
Normal file
4
Assets/Oculus/VR/Materials/GazePointer.mat.meta
Normal file
@@ -0,0 +1,4 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3fac3b9744290eb4c89b0e4ffd5fe085
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
9
Assets/Oculus/VR/Materials/GearVrController.meta
Normal file
9
Assets/Oculus/VR/Materials/GearVrController.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 856d6414a7cf7e94888ee2d5f959efd7
|
||||
folderAsset: yes
|
||||
timeCreated: 1488168366
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,76 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 6
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: GearVrControllerMat_1024
|
||||
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_ShaderKeywords: _NORMALMAP
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 2800000, guid: ab629f733cdfcfa4ba04695645307f24, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 2800000, guid: 8dcaddcb07fa3214989bf16d62f3efbc, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 2800000, guid: 4b12fa22be3f7f143b055ad60e483684, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Floats:
|
||||
- _BumpScale: 1
|
||||
- _Cutoff: 0.5
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0.4
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 1
|
||||
- _Mode: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a62abb16d1535b647956d3be68acdd59
|
||||
timeCreated: 1488144668
|
||||
licenseType: Free
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,76 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 6
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: GearVrControllerMat_128
|
||||
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_ShaderKeywords: _NORMALMAP
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 2800000, guid: cd52447b7b5ad174bb3858eb22a8fe2e, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 2800000, guid: 2cf74d0adf6b17348bb03c979684482b, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 2800000, guid: 8556f6ca8690f0a47bcc8c5adec768da, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Floats:
|
||||
- _BumpScale: 1
|
||||
- _Cutoff: 0.5
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0.4
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 1
|
||||
- _Mode: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f6ccc53b9bcfb114996e76ee88ce6948
|
||||
timeCreated: 1488144149
|
||||
licenseType: Free
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
43
Assets/Oculus/VR/Materials/cursor_timer_material.mat
Normal file
43
Assets/Oculus/VR/Materials/cursor_timer_material.mat
Normal file
@@ -0,0 +1,43 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 3
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: cursor_timer_material
|
||||
m_Shader: {fileID: 4800000, guid: b95caf64e2cc3614892026a94bb2be84, type: 3}
|
||||
m_ShaderKeywords: []
|
||||
m_CustomRenderQueue: -1
|
||||
m_SavedProperties:
|
||||
serializedVersion: 2
|
||||
m_TexEnvs:
|
||||
data:
|
||||
first:
|
||||
name: _MainTex
|
||||
second:
|
||||
m_Texture: {fileID: 2800000, guid: 79a33e7a7166c6142ad50f46a9a23d3e, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
data:
|
||||
first:
|
||||
name: _ColorRamp
|
||||
second:
|
||||
m_Texture: {fileID: 2800000, guid: 8929c8bc5148a624b8c9d6df0ee6f0ca, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Floats:
|
||||
data:
|
||||
first:
|
||||
name: _Cutoff
|
||||
second: 1
|
||||
data:
|
||||
first:
|
||||
name: _ColorRampOffset
|
||||
second: 0
|
||||
m_Colors:
|
||||
data:
|
||||
first:
|
||||
name: _Color
|
||||
second: {r: 1, g: 1, b: 1, a: 1}
|
||||
@@ -0,0 +1,4 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9531aa878fd5c4749b288b72024e8d2f
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
28
Assets/Oculus/VR/Materials/gaze_cursor.mat
Normal file
28
Assets/Oculus/VR/Materials/gaze_cursor.mat
Normal file
@@ -0,0 +1,28 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 3
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: gaze_cursor
|
||||
m_Shader: {fileID: 4800000, guid: 05b53b473302943b58b8e33c93a38dac, type: 3}
|
||||
m_ShaderKeywords: []
|
||||
m_CustomRenderQueue: -1
|
||||
m_SavedProperties:
|
||||
serializedVersion: 2
|
||||
m_TexEnvs:
|
||||
data:
|
||||
first:
|
||||
name: _MainTex
|
||||
second:
|
||||
m_Texture: {fileID: 2800000, guid: 077028084dceb584798dade6c58d1978, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Floats: {}
|
||||
m_Colors:
|
||||
data:
|
||||
first:
|
||||
name: _Color
|
||||
second: {r: 1, g: 1, b: 1, a: 1}
|
||||
4
Assets/Oculus/VR/Materials/gaze_cursor.mat.meta
Normal file
4
Assets/Oculus/VR/Materials/gaze_cursor.mat.meta
Normal file
@@ -0,0 +1,4 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7f31de375e167154aa45929466af30e4
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
5
Assets/Oculus/VR/Meshes.meta
Normal file
5
Assets/Oculus/VR/Meshes.meta
Normal file
@@ -0,0 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: db348133d6680dd459f3e1cb19922746
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
userData:
|
||||
187
Assets/Oculus/VR/Meshes/Cone.obj
Normal file
187
Assets/Oculus/VR/Meshes/Cone.obj
Normal file
@@ -0,0 +1,187 @@
|
||||
# Alias OBJ Model File
|
||||
# Exported from SketchUp, (c) 2000-2012 Trimble Navigation Limited
|
||||
# File units = meters
|
||||
|
||||
mtllib cone.mtl
|
||||
|
||||
g Mesh1 Model
|
||||
|
||||
usemtl FrontColor
|
||||
v 0.492734 0 0.0849313
|
||||
vt -19.399 -3.34375
|
||||
vn 0 -1 -0
|
||||
v 0.453963 0 0.209566
|
||||
vt -17.8725 -8.25064
|
||||
v 0.384254 0 0.31992
|
||||
vt -15.1281 -12.5953
|
||||
v 0.28836 0 0.408471
|
||||
vt -11.3528 -16.0815
|
||||
v 0.172814 0 0.469186
|
||||
vt -6.80371 -18.4719
|
||||
v 0.0454916 0 0.497926
|
||||
vt -1.79101 -19.6034
|
||||
v -0.0849313 0 0.492734
|
||||
vt 3.34375 -19.399
|
||||
v -0.209566 0 0.453963
|
||||
vt 8.25064 -17.8725
|
||||
v -0.31992 0 0.384254
|
||||
vt 12.5953 -15.1281
|
||||
v -0.408471 0 0.28836
|
||||
vt 16.0815 -11.3528
|
||||
v -0.469186 0 0.172814
|
||||
vt 18.4719 -6.80371
|
||||
v -0.497926 0 0.0454916
|
||||
vt 19.6034 -1.79101
|
||||
v -0.492734 0 -0.0849313
|
||||
vt 19.399 3.34375
|
||||
v -0.453963 0 -0.209566
|
||||
vt 17.8725 8.25064
|
||||
v -0.384254 0 -0.31992
|
||||
vt 15.1281 12.5953
|
||||
v -0.28836 0 -0.408471
|
||||
vt 11.3528 16.0815
|
||||
v -0.172814 0 -0.469186
|
||||
vt 6.80371 18.4719
|
||||
v -0.0454916 0 -0.497926
|
||||
vt 1.79101 19.6034
|
||||
v 0.0849313 0 -0.492734
|
||||
vt -3.34375 19.399
|
||||
v 0.209566 0 -0.453963
|
||||
vt -8.25064 17.8725
|
||||
v 0.31992 0 -0.384254
|
||||
vt -12.5953 15.1281
|
||||
v 0.408471 0 -0.28836
|
||||
vt -16.0815 11.3528
|
||||
v 0.469186 0 -0.172814
|
||||
vt -18.4719 6.80371
|
||||
v 0.497926 0 -0.0454916
|
||||
vt -19.6034 1.79101
|
||||
f 1/1/1 2/2/1 3/3/1 4/4/1 5/5/1 6/6/1 7/7/1 8/8/1 9/9/1 10/10/1 11/11/1 12/12/1 13/13/1 14/14/1 15/15/1 16/16/1 17/17/1 18/18/1 19/19/1 20/20/1 21/21/1 22/22/1 23/23/1 24/24/1
|
||||
|
||||
vt -2.56941 -8.65407
|
||||
vn 0.812403 0.446486 0.375036
|
||||
vt 2.56941 -8.65407
|
||||
vn 0.881787 0.446486 0.151991
|
||||
v 0.00100113 1 0.000172563
|
||||
vt 0.00522052 35.2704
|
||||
v 0.000922359 1 0.000425796
|
||||
vt -0.00522052 35.2704
|
||||
f 2/25/2 1/26/3 25/27/3 26/28/2
|
||||
|
||||
vn 0.891079 0.446486 -0.0814109
|
||||
v 0.00101168 1 -9.24296e-005
|
||||
f 1/25/3 24/26/4 27/27/4 25/28/3
|
||||
|
||||
vn 0.839646 0.446486 -0.309265
|
||||
v 0.000953289 1 -0.000351123
|
||||
f 27/28/4 24/25/4 23/26/5 28/27/5
|
||||
|
||||
vn 0.730992 0.446486 -0.516044
|
||||
v 0.000829929 1 -0.000585888
|
||||
f 28/28/5 23/25/5 22/26/6 29/27/6
|
||||
|
||||
vn 0.572522 0.446486 -0.687654
|
||||
v 0.000650011 1 -0.000780726
|
||||
f 29/28/6 22/25/6 21/26/7 30/27/7
|
||||
|
||||
vn 0.375036 0.446486 -0.812403
|
||||
v 0.000425796 1 -0.000922359
|
||||
f 30/28/7 21/25/7 20/26/8 31/27/8
|
||||
|
||||
vn 0.151991 0.446486 -0.881787
|
||||
v 0.000172563 1 -0.00100113
|
||||
f 31/28/8 20/25/8 19/26/9 32/27/9
|
||||
|
||||
vn -0.0814109 0.446486 -0.891079
|
||||
v -9.24296e-005 1 -0.00101168
|
||||
f 32/28/9 19/25/9 18/26/10 33/27/10
|
||||
|
||||
vn -0.309265 0.446486 -0.839646
|
||||
v -0.000351123 1 -0.000953289
|
||||
f 33/28/10 18/25/10 17/26/11 34/27/11
|
||||
|
||||
vn -0.516044 0.446486 -0.730992
|
||||
v -0.000585888 1 -0.000829929
|
||||
f 34/28/11 17/25/11 16/26/12 35/27/12
|
||||
|
||||
vn -0.687654 0.446486 -0.572522
|
||||
v -0.000780726 1 -0.000650011
|
||||
f 35/28/12 16/25/12 15/26/13 36/27/13
|
||||
|
||||
vn -0.812403 0.446486 -0.375036
|
||||
v -0.000922359 1 -0.000425796
|
||||
f 36/28/13 15/25/13 14/26/14 37/27/14
|
||||
|
||||
vn -0.881787 0.446486 -0.151991
|
||||
v -0.00100113 1 -0.000172563
|
||||
f 37/28/14 14/25/14 13/26/15 38/27/15
|
||||
|
||||
vn -0.891079 0.446486 0.0814109
|
||||
v -0.00101168 1 9.24296e-005
|
||||
f 38/28/15 13/25/15 12/26/16 39/27/16
|
||||
|
||||
vn -0.839646 0.446486 0.309265
|
||||
v -0.000953289 1 0.000351123
|
||||
f 12/25/16 11/26/17 40/27/17 39/28/16
|
||||
|
||||
vn -0.730992 0.446486 0.516044
|
||||
v -0.000829929 1 0.000585888
|
||||
f 11/25/17 10/26/18 41/27/18 40/28/17
|
||||
|
||||
vn -0.572522 0.446486 0.687654
|
||||
v -0.000650011 1 0.000780726
|
||||
f 10/25/18 9/26/19 42/27/19 41/28/18
|
||||
|
||||
vn -0.375036 0.446486 0.812403
|
||||
v -0.000425796 1 0.000922359
|
||||
f 9/25/19 8/26/20 43/27/20 42/28/19
|
||||
|
||||
vn -0.151991 0.446486 0.881787
|
||||
v -0.000172563 1 0.00100113
|
||||
f 8/25/20 7/26/21 44/27/21 43/28/20
|
||||
|
||||
vn 0.0814109 0.446486 0.891079
|
||||
v 9.24296e-005 1 0.00101168
|
||||
f 7/25/21 6/26/22 45/27/22 44/28/21
|
||||
|
||||
vn 0.309265 0.446486 0.839646
|
||||
v 0.000351123 1 0.000953289
|
||||
f 6/25/22 5/26/23 46/27/23 45/28/22
|
||||
|
||||
vn 0.516044 0.446486 0.730992
|
||||
v 0.000585888 1 0.000829929
|
||||
f 5/25/23 4/26/24 47/27/24 46/28/23
|
||||
|
||||
vn 0.687654 0.446486 0.572522
|
||||
v 0.000780726 1 0.000650011
|
||||
f 4/25/24 3/26/25 48/27/25 47/28/24
|
||||
|
||||
f 3/25/25 2/26/2 26/27/2 48/28/25
|
||||
|
||||
vt 0.0398301 0.00363896
|
||||
vn 0 1 -0
|
||||
vt 0.0375311 0.0138237
|
||||
vt 0.0326744 0.0230665
|
||||
vt 0.025591 0.0307372
|
||||
vt 0.0167636 0.0363133
|
||||
vt 0.00679382 0.0394147
|
||||
vt -0.00363896 0.0398301
|
||||
vt -0.0138237 0.0375311
|
||||
vt -0.0230665 0.0326744
|
||||
vt -0.0307372 0.025591
|
||||
vt -0.0363133 0.0167636
|
||||
vt -0.0394147 0.00679382
|
||||
vt -0.0398301 -0.00363896
|
||||
vt -0.0375311 -0.0138237
|
||||
vt -0.0326744 -0.0230665
|
||||
vt -0.025591 -0.0307372
|
||||
vt -0.0167636 -0.0363133
|
||||
vt -0.00679382 -0.0394147
|
||||
vt 0.00363896 -0.0398301
|
||||
vt 0.0138237 -0.0375311
|
||||
vt 0.0230665 -0.0326744
|
||||
vt 0.0307372 -0.025591
|
||||
vt 0.0363133 -0.0167636
|
||||
vt 0.0394147 -0.00679382
|
||||
f 27/29/26 28/30/26 29/31/26 30/32/26 31/33/26 32/34/26 33/35/26 34/36/26 35/37/26 36/38/26 37/39/26 38/40/26 39/41/26 40/42/26 41/43/26 42/44/26 43/45/26 44/46/26 45/47/26 46/48/26 47/49/26 48/50/26 26/51/26 25/52/26
|
||||
|
||||
67
Assets/Oculus/VR/Meshes/Cone.obj.meta
Normal file
67
Assets/Oculus/VR/Meshes/Cone.obj.meta
Normal file
@@ -0,0 +1,67 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c28fa8d61f81fb742b1180a6d4516625
|
||||
ModelImporter:
|
||||
serializedVersion: 16
|
||||
fileIDToRecycleName:
|
||||
100000: //RootNode
|
||||
100002: Mesh1_Model
|
||||
400000: //RootNode
|
||||
400002: Mesh1_Model
|
||||
2300000: Mesh1_Model
|
||||
3300000: Mesh1_Model
|
||||
4300000: Mesh1_Model
|
||||
9500000: //RootNode
|
||||
materials:
|
||||
importMaterials: 0
|
||||
materialName: 0
|
||||
materialSearch: 1
|
||||
animations:
|
||||
legacyGenerateAnimations: 4
|
||||
bakeSimulation: 0
|
||||
optimizeGameObjects: 0
|
||||
motionNodeName:
|
||||
animationCompression: 1
|
||||
animationRotationError: .5
|
||||
animationPositionError: .5
|
||||
animationScaleError: .5
|
||||
animationWrapMode: 0
|
||||
extraExposedTransformPaths: []
|
||||
clipAnimations: []
|
||||
isReadable: 1
|
||||
meshes:
|
||||
lODScreenPercentages: []
|
||||
globalScale: 1
|
||||
meshCompression: 0
|
||||
addColliders: 0
|
||||
importBlendShapes: 1
|
||||
swapUVChannels: 0
|
||||
generateSecondaryUV: 0
|
||||
useFileUnits: 1
|
||||
optimizeMeshForGPU: 1
|
||||
weldVertices: 1
|
||||
secondaryUVAngleDistortion: 8
|
||||
secondaryUVAreaDistortion: 15.000001
|
||||
secondaryUVHardAngle: 88
|
||||
secondaryUVPackMargin: 4
|
||||
tangentSpace:
|
||||
normalSmoothAngle: 90
|
||||
splitTangentsAcrossUV: 0
|
||||
normalImportMode: 0
|
||||
tangentImportMode: 1
|
||||
importAnimation: 1
|
||||
copyAvatar: 0
|
||||
humanDescription:
|
||||
human: []
|
||||
skeleton: []
|
||||
armTwist: .5
|
||||
foreArmTwist: .5
|
||||
upperLegTwist: .5
|
||||
legTwist: .5
|
||||
armStretch: .0500000007
|
||||
legStretch: .0500000007
|
||||
feetSpacing: 0
|
||||
rootMotionBoneName:
|
||||
lastHumanDescriptionAvatarSource: {instanceID: 0}
|
||||
animationType: 2
|
||||
additionalBone: 0
|
||||
userData:
|
||||
9
Assets/Oculus/VR/Meshes/GearVrController.meta
Normal file
9
Assets/Oculus/VR/Meshes/GearVrController.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1f5d118b13c965a40a0cd4e358205ac3
|
||||
folderAsset: yes
|
||||
timeCreated: 1486168258
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Oculus/VR/Meshes/GearVrController/GearVrController.fbx
Normal file
BIN
Assets/Oculus/VR/Meshes/GearVrController/GearVrController.fbx
Normal file
Binary file not shown.
@@ -0,0 +1,108 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 84c37137326e7b943a87be7ae2a7ea19
|
||||
timeCreated: 1488144149
|
||||
licenseType: Free
|
||||
ModelImporter:
|
||||
serializedVersion: 19
|
||||
fileIDToRecycleName:
|
||||
100000: back_button_PLY
|
||||
100002: center_button_PLY
|
||||
100004: chassis_PLY
|
||||
100006: disc_button_PLY
|
||||
100008: home_button_PLY
|
||||
100010: //RootNode
|
||||
100012: text_PLY
|
||||
100014: trigger_PLY
|
||||
400000: back_button_PLY
|
||||
400002: center_button_PLY
|
||||
400004: chassis_PLY
|
||||
400006: disc_button_PLY
|
||||
400008: home_button_PLY
|
||||
400010: //RootNode
|
||||
400012: text_PLY
|
||||
400014: trigger_PLY
|
||||
2300000: back_button_PLY
|
||||
2300002: center_button_PLY
|
||||
2300004: chassis_PLY
|
||||
2300006: disc_button_PLY
|
||||
2300008: home_button_PLY
|
||||
2300010: text_PLY
|
||||
2300012: trigger_PLY
|
||||
3300000: back_button_PLY
|
||||
3300002: center_button_PLY
|
||||
3300004: chassis_PLY
|
||||
3300006: disc_button_PLY
|
||||
3300008: home_button_PLY
|
||||
3300010: text_PLY
|
||||
3300012: trigger_PLY
|
||||
4300000: text_PLY
|
||||
4300002: center_button_PLY
|
||||
4300004: trigger_PLY
|
||||
4300006: home_button_PLY
|
||||
4300008: back_button_PLY
|
||||
4300010: disc_button_PLY
|
||||
4300012: chassis_PLY
|
||||
materials:
|
||||
importMaterials: 1
|
||||
materialName: 0
|
||||
materialSearch: 1
|
||||
animations:
|
||||
legacyGenerateAnimations: 4
|
||||
bakeSimulation: 0
|
||||
resampleCurves: 1
|
||||
optimizeGameObjects: 0
|
||||
motionNodeName:
|
||||
animationImportErrors:
|
||||
animationImportWarnings:
|
||||
animationRetargetingWarnings:
|
||||
animationDoRetargetingWarnings: 0
|
||||
animationCompression: 1
|
||||
animationRotationError: 0.5
|
||||
animationPositionError: 0.5
|
||||
animationScaleError: 0.5
|
||||
animationWrapMode: 0
|
||||
extraExposedTransformPaths: []
|
||||
clipAnimations: []
|
||||
isReadable: 1
|
||||
meshes:
|
||||
lODScreenPercentages: []
|
||||
globalScale: 1
|
||||
meshCompression: 0
|
||||
addColliders: 0
|
||||
importBlendShapes: 1
|
||||
swapUVChannels: 0
|
||||
generateSecondaryUV: 0
|
||||
useFileUnits: 1
|
||||
optimizeMeshForGPU: 1
|
||||
keepQuads: 0
|
||||
weldVertices: 1
|
||||
secondaryUVAngleDistortion: 8
|
||||
secondaryUVAreaDistortion: 15.000001
|
||||
secondaryUVHardAngle: 88
|
||||
secondaryUVPackMargin: 4
|
||||
useFileScale: 1
|
||||
tangentSpace:
|
||||
normalSmoothAngle: 60
|
||||
normalImportMode: 0
|
||||
tangentImportMode: 3
|
||||
importAnimation: 1
|
||||
copyAvatar: 0
|
||||
humanDescription:
|
||||
human: []
|
||||
skeleton: []
|
||||
armTwist: 0.5
|
||||
foreArmTwist: 0.5
|
||||
upperLegTwist: 0.5
|
||||
legTwist: 0.5
|
||||
armStretch: 0.05
|
||||
legStretch: 0.05
|
||||
feetSpacing: 0
|
||||
rootMotionBoneName:
|
||||
hasTranslationDoF: 0
|
||||
lastHumanDescriptionAvatarSource: {instanceID: 0}
|
||||
animationType: 0
|
||||
humanoidOversampling: 1
|
||||
additionalBone: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Oculus/VR/Meshes/GearVrController/Materials.meta
Normal file
9
Assets/Oculus/VR/Meshes/GearVrController/Materials.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1f3bd5b7b89f2bc43b851174a56851f3
|
||||
folderAsset: yes
|
||||
timeCreated: 1488174699
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,76 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 6
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: malibuController_color_1024
|
||||
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_ShaderKeywords: _EMISSION
|
||||
m_LightmapFlags: 1
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Floats:
|
||||
- _BumpScale: 1
|
||||
- _Cutoff: 0.5
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0.5
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 0
|
||||
- _Mode: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 54fb84af388c3734b9a4cae0b38e2c68
|
||||
timeCreated: 1488174699
|
||||
licenseType: Free
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Oculus/VR/Meshes/OculusGoController.meta
Normal file
9
Assets/Oculus/VR/Meshes/OculusGoController.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2f5a65d8d712ba9458f8b931e7db3113
|
||||
folderAsset: yes
|
||||
timeCreated: 1513040713
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8be9af30e3bae8c47a188358ead030df
|
||||
folderAsset: yes
|
||||
timeCreated: 1513040723
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,76 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 6
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: OculusGoControllerMat
|
||||
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_ShaderKeywords: _SMOOTHNESS_TEXTURE_ALBEDO_CHANNEL_A
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 2800000, guid: 6fd132ea4bdd3ec4298a583f001ed5ab, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Floats:
|
||||
- _BumpScale: 1
|
||||
- _Cutoff: 0.5
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _GlossMapScale: 0.75
|
||||
- _Glossiness: 0.492
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 0
|
||||
- _Mode: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _SmoothnessTextureChannel: 1
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6c0b208d35ece4a459821be19df69561
|
||||
timeCreated: 1513127267
|
||||
licenseType: Free
|
||||
NativeFormatImporter:
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,82 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e0f1914fdbfd3764faeff5474c0cbe1e
|
||||
timeCreated: 1513040723
|
||||
licenseType: Free
|
||||
ModelImporter:
|
||||
serializedVersion: 19
|
||||
fileIDToRecycleName:
|
||||
100000: //RootNode
|
||||
400000: //RootNode
|
||||
2300000: //RootNode
|
||||
3300000: //RootNode
|
||||
4300000: Mesh
|
||||
materials:
|
||||
importMaterials: 0
|
||||
materialName: 0
|
||||
materialSearch: 1
|
||||
animations:
|
||||
legacyGenerateAnimations: 4
|
||||
bakeSimulation: 0
|
||||
resampleCurves: 1
|
||||
optimizeGameObjects: 0
|
||||
motionNodeName:
|
||||
rigImportErrors:
|
||||
rigImportWarnings:
|
||||
animationImportErrors:
|
||||
animationImportWarnings:
|
||||
animationRetargetingWarnings:
|
||||
animationDoRetargetingWarnings: 0
|
||||
animationCompression: 1
|
||||
animationRotationError: 0.5
|
||||
animationPositionError: 0.5
|
||||
animationScaleError: 0.5
|
||||
animationWrapMode: 0
|
||||
extraExposedTransformPaths: []
|
||||
clipAnimations: []
|
||||
isReadable: 1
|
||||
meshes:
|
||||
lODScreenPercentages: []
|
||||
globalScale: 1
|
||||
meshCompression: 0
|
||||
addColliders: 0
|
||||
importBlendShapes: 0
|
||||
swapUVChannels: 0
|
||||
generateSecondaryUV: 0
|
||||
useFileUnits: 1
|
||||
optimizeMeshForGPU: 1
|
||||
keepQuads: 0
|
||||
weldVertices: 1
|
||||
secondaryUVAngleDistortion: 8
|
||||
secondaryUVAreaDistortion: 15.000001
|
||||
secondaryUVHardAngle: 88
|
||||
secondaryUVPackMargin: 4
|
||||
useFileScale: 1
|
||||
tangentSpace:
|
||||
normalSmoothAngle: 60
|
||||
normalImportMode: 0
|
||||
tangentImportMode: 3
|
||||
importAnimation: 0
|
||||
copyAvatar: 0
|
||||
humanDescription:
|
||||
serializedVersion: 2
|
||||
human: []
|
||||
skeleton: []
|
||||
armTwist: 0.5
|
||||
foreArmTwist: 0.5
|
||||
upperLegTwist: 0.5
|
||||
legTwist: 0.5
|
||||
armStretch: 0.05
|
||||
legStretch: 0.05
|
||||
feetSpacing: 0
|
||||
rootMotionBoneName:
|
||||
rootMotionBoneRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
hasTranslationDoF: 0
|
||||
hasExtraRoot: 0
|
||||
skeletonHasParents: 1
|
||||
lastHumanDescriptionAvatarSource: {instanceID: 0}
|
||||
animationType: 0
|
||||
humanoidOversampling: 1
|
||||
additionalBone: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Oculus/VR/Plugins.meta
Normal file
9
Assets/Oculus/VR/Plugins.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e1f06b56b3e7614419c5db24e2262938
|
||||
folderAsset: yes
|
||||
timeCreated: 1493321336
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Oculus/VR/Plugins/1.28.0.meta
Normal file
9
Assets/Oculus/VR/Plugins/1.28.0.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 81e00085a0c870d4887bd95a665b52a9
|
||||
folderAsset: yes
|
||||
timeCreated: 1532112173
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Oculus/VR/Plugins/1.28.0/Android.meta
Normal file
9
Assets/Oculus/VR/Plugins/1.28.0/Android.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: dd48523288d814a448e08f162164c3d5
|
||||
folderAsset: yes
|
||||
timeCreated: 1528423694
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Oculus/VR/Plugins/1.28.0/Android/OVRPlugin.aar
Normal file
BIN
Assets/Oculus/VR/Plugins/1.28.0/Android/OVRPlugin.aar
Normal file
Binary file not shown.
30
Assets/Oculus/VR/Plugins/1.28.0/Android/OVRPlugin.aar.meta
Normal file
30
Assets/Oculus/VR/Plugins/1.28.0/Android/OVRPlugin.aar.meta
Normal file
@@ -0,0 +1,30 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 860cba4d1c3daba448d8983ed6b29cf0
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
platformData:
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: ARMv7
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Oculus/VR/Plugins/1.28.0/Win.meta
Normal file
9
Assets/Oculus/VR/Plugins/1.28.0/Win.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0af5073aba509df41afa8a8bcee34be0
|
||||
folderAsset: yes
|
||||
timeCreated: 1528423694
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Oculus/VR/Plugins/1.28.0/Win/OVRPlugin.dll
Normal file
BIN
Assets/Oculus/VR/Plugins/1.28.0/Win/OVRPlugin.dll
Normal file
Binary file not shown.
44
Assets/Oculus/VR/Plugins/1.28.0/Win/OVRPlugin.dll.meta
Normal file
44
Assets/Oculus/VR/Plugins/1.28.0/Win/OVRPlugin.dll.meta
Normal file
@@ -0,0 +1,44 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e1099179ec97b2743b1e800ec42ea393
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
platformData:
|
||||
- first:
|
||||
'': Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: X86
|
||||
OS: Windows
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: ARMv7
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: X86
|
||||
DefaultValueInitialized: true
|
||||
OS: Windows
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Oculus/VR/Plugins/1.28.0/Win64.meta
Normal file
9
Assets/Oculus/VR/Plugins/1.28.0/Win64.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f7bf981afd593e14fba8320eddff0368
|
||||
folderAsset: yes
|
||||
timeCreated: 1528423694
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Oculus/VR/Plugins/1.28.0/Win64/OVRPlugin.dll
Normal file
BIN
Assets/Oculus/VR/Plugins/1.28.0/Win64/OVRPlugin.dll
Normal file
Binary file not shown.
44
Assets/Oculus/VR/Plugins/1.28.0/Win64/OVRPlugin.dll.meta
Normal file
44
Assets/Oculus/VR/Plugins/1.28.0/Win64/OVRPlugin.dll.meta
Normal file
@@ -0,0 +1,44 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fa484251c443b3244925e141c448c862
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
platformData:
|
||||
- first:
|
||||
'': Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: X86_64
|
||||
OS: Windows
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: ARMv7
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: X86_64
|
||||
DefaultValueInitialized: true
|
||||
OS: Windows
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Oculus/VR/Plugins/MacOSX.meta
Normal file
9
Assets/Oculus/VR/Plugins/MacOSX.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3b0808cda9a8d4b458fad2788f63ff7f
|
||||
folderAsset: yes
|
||||
timeCreated: 1522878718
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
141
Assets/Oculus/VR/Plugins/MacOSX/OVRGamepad.bundle.meta
Normal file
141
Assets/Oculus/VR/Plugins/MacOSX/OVRGamepad.bundle.meta
Normal file
@@ -0,0 +1,141 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 537f08a1aac8553459f3574a939a05ed
|
||||
folderAsset: yes
|
||||
timeCreated: 1441326310
|
||||
licenseType: Pro
|
||||
PluginImporter:
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
platformData:
|
||||
data:
|
||||
first:
|
||||
'': WP8
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
DontProcess: False
|
||||
PlaceholderPath:
|
||||
data:
|
||||
first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
data:
|
||||
first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
data:
|
||||
first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
DefaultValueInitialized: true
|
||||
OS: OSX
|
||||
data:
|
||||
first:
|
||||
Facebook: Win
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
data:
|
||||
first:
|
||||
Facebook: Win64
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
data:
|
||||
first:
|
||||
Samsung TV: SamsungTV
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
STV_MODEL: STANDARD_13
|
||||
data:
|
||||
first:
|
||||
Standalone: Linux
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86
|
||||
data:
|
||||
first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86_64
|
||||
data:
|
||||
first:
|
||||
Standalone: LinuxUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
data:
|
||||
first:
|
||||
Standalone: OSXIntel
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
data:
|
||||
first:
|
||||
Standalone: OSXIntel64
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
data:
|
||||
first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
data:
|
||||
first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
data:
|
||||
first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
data:
|
||||
first:
|
||||
Windows Store Apps: WindowsStoreApps
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
DontProcess: False
|
||||
PlaceholderPath:
|
||||
SDK: AnySDK
|
||||
data:
|
||||
first:
|
||||
iPhone: iOS
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CompileFlags:
|
||||
FrameworkDependencies:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 648a2605a2bc848728f27adc59fe8010
|
||||
folderAsset: yes
|
||||
timeCreated: 1441327083
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>OVRGamepad</string>
|
||||
<key>CFBundleGetInfoString</key>
|
||||
<string></string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string></string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string></string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleLongVersionString</key>
|
||||
<string></string>
|
||||
<key>CFBundleName</key>
|
||||
<string></string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string></string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string></string>
|
||||
<key>CSResourcesFileMapped</key>
|
||||
<true/>
|
||||
<key>LSRequiresCarbon</key>
|
||||
<true/>
|
||||
<key>NSHumanReadableCopyright</key>
|
||||
<string></string>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5de957de5187b406687f99aa5a30871b
|
||||
timeCreated: 1441327083
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8fad9c333897547a59f91edacd69f7db
|
||||
folderAsset: yes
|
||||
timeCreated: 1441327083
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3af79ea9cc1984e498b6a7e5409cdcac
|
||||
timeCreated: 1441327083
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
0
Assets/Oculus/VR/Plugins/placeholder.txt
Normal file
0
Assets/Oculus/VR/Plugins/placeholder.txt
Normal file
8
Assets/Oculus/VR/Plugins/placeholder.txt.meta
Normal file
8
Assets/Oculus/VR/Plugins/placeholder.txt.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6c111fff50cd6404baf2b833432e6ee8
|
||||
timeCreated: 1493325988
|
||||
licenseType: Free
|
||||
TextScriptImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
5
Assets/Oculus/VR/Prefabs.meta
Normal file
5
Assets/Oculus/VR/Prefabs.meta
Normal file
@@ -0,0 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bfe39332fdb4cb044b619b3e4b890396
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
userData:
|
||||
70
Assets/Oculus/VR/Prefabs/Cursor_Timer.prefab
Normal file
70
Assets/Oculus/VR/Prefabs/Cursor_Timer.prefab
Normal file
@@ -0,0 +1,70 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &100000
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 400000}
|
||||
- 33: {fileID: 3300000}
|
||||
- 23: {fileID: 2300000}
|
||||
m_Layer: 0
|
||||
m_Name: Cursor_Timer
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &400000
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100000}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 1.70000005, z: 1}
|
||||
m_LocalScale: {x: .25, y: .25, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
--- !u!23 &2300000
|
||||
Renderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100000}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 0
|
||||
m_ReceiveShadows: 0
|
||||
m_LightmapIndex: 255
|
||||
m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0}
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: 9531aa878fd5c4749b288b72024e8d2f, type: 2}
|
||||
m_SubsetIndices:
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_UseLightProbes: 0
|
||||
m_LightProbeAnchor: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_SortingLayerID: 0
|
||||
m_SortingOrder: 0
|
||||
--- !u!33 &3300000
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100000}
|
||||
m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0}
|
||||
--- !u!1001 &100100000
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 1
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications: []
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 100000}
|
||||
m_IsPrefabParent: 1
|
||||
m_IsExploded: 1
|
||||
4
Assets/Oculus/VR/Prefabs/Cursor_Timer.prefab.meta
Normal file
4
Assets/Oculus/VR/Prefabs/Cursor_Timer.prefab.meta
Normal file
@@ -0,0 +1,4 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5a7682c244a150b49965c007720bdbb7
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
400
Assets/Oculus/VR/Prefabs/OVRCameraRig.prefab
Normal file
400
Assets/Oculus/VR/Prefabs/OVRCameraRig.prefab
Normal file
@@ -0,0 +1,400 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &100000
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 400000}
|
||||
- 20: {fileID: 20000010189485334}
|
||||
m_Layer: 0
|
||||
m_Name: RightEyeAnchor
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &100002
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 400002}
|
||||
- 81: {fileID: 8100000}
|
||||
- 20: {fileID: 2037080}
|
||||
m_Layer: 0
|
||||
m_Name: CenterEyeAnchor
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &100004
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 400004}
|
||||
- 114: {fileID: 11400010}
|
||||
- 114: {fileID: 11400000}
|
||||
m_Layer: 0
|
||||
m_Name: OVRCameraRig
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &100006
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 400006}
|
||||
- 20: {fileID: 20000012175207052}
|
||||
m_Layer: 0
|
||||
m_Name: LeftEyeAnchor
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &109308
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 482130}
|
||||
m_Layer: 0
|
||||
m_Name: LeftHandAnchor
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &113768
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 487254}
|
||||
m_Layer: 0
|
||||
m_Name: RightHandAnchor
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &159718
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 459718}
|
||||
m_Layer: 0
|
||||
m_Name: TrackingSpace
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &168682
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 468682}
|
||||
m_Layer: 0
|
||||
m_Name: TrackerAnchor
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &400000
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100000}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 459718}
|
||||
m_RootOrder: 2
|
||||
--- !u!4 &400002
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100002}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 459718}
|
||||
m_RootOrder: 1
|
||||
--- !u!4 &400004
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100004}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_Children:
|
||||
- {fileID: 459718}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
--- !u!4 &400006
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100006}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 459718}
|
||||
m_RootOrder: 0
|
||||
--- !u!4 &459718
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 159718}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_Children:
|
||||
- {fileID: 400006}
|
||||
- {fileID: 400002}
|
||||
- {fileID: 400000}
|
||||
- {fileID: 468682}
|
||||
- {fileID: 482130}
|
||||
- {fileID: 487254}
|
||||
m_Father: {fileID: 400004}
|
||||
m_RootOrder: 0
|
||||
--- !u!4 &468682
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 168682}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 459718}
|
||||
m_RootOrder: 3
|
||||
--- !u!4 &482130
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 109308}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 459718}
|
||||
m_RootOrder: 4
|
||||
--- !u!4 &487254
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 113768}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 459718}
|
||||
m_RootOrder: 5
|
||||
--- !u!20 &2037080
|
||||
Camera:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100002}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 1
|
||||
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0.019607844}
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: 0.1
|
||||
far clip plane: 1000
|
||||
field of view: 90
|
||||
orthographic: 0
|
||||
orthographic size: 5
|
||||
m_Depth: 0
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 3
|
||||
m_HDR: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: 0.022
|
||||
m_StereoMirrorMode: 0
|
||||
--- !u!81 &8100000
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100002}
|
||||
m_Enabled: 1
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100004}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 7e933e81d3c20c74ea6fdc708a67e3a5, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
queueAhead: 1
|
||||
useRecommendedMSAALevel: 0
|
||||
enableAdaptiveResolution: 0
|
||||
minRenderScale: 0.7
|
||||
maxRenderScale: 1
|
||||
enableMixedReality: 0
|
||||
useDirectComposition: 0
|
||||
greenScreenColorToleranceA: 20
|
||||
greenScreenColorToleranceB: 15
|
||||
greenScreenColorAlphaCutoff: 0.01
|
||||
greenScreenColorShadows: 0.02
|
||||
_trackingOriginType: 0
|
||||
usePositionTracking: 1
|
||||
useRotationTracking: 1
|
||||
useIPDInPositionTracking: 1
|
||||
resetTrackerOnLoad: 0
|
||||
multipleMainCameraWarningPresented: 0
|
||||
--- !u!114 &11400010
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100004}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: df9f338034892c44ebb62d97894772f1, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
usePerEyeCameras: 0
|
||||
useFixedUpdateForTracking: 0
|
||||
--- !u!1001 &100100000
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 1
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications: []
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 100004}
|
||||
m_IsPrefabParent: 1
|
||||
--- !u!20 &20000010189485334
|
||||
Camera:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100000}
|
||||
m_Enabled: 0
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 1
|
||||
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: 0.3
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 0
|
||||
orthographic size: 5
|
||||
m_Depth: 0
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 2
|
||||
m_HDR: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: 0.022
|
||||
m_StereoMirrorMode: 0
|
||||
--- !u!20 &20000012175207052
|
||||
Camera:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100006}
|
||||
m_Enabled: 0
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 1
|
||||
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: 0.3
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 0
|
||||
orthographic size: 5
|
||||
m_Depth: 0
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 1
|
||||
m_HDR: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: 0.022
|
||||
m_StereoMirrorMode: 0
|
||||
4
Assets/Oculus/VR/Prefabs/OVRCameraRig.prefab.meta
Normal file
4
Assets/Oculus/VR/Prefabs/OVRCameraRig.prefab.meta
Normal file
@@ -0,0 +1,4 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 126d619cf4daa52469682f85c1378b4a
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
58
Assets/Oculus/VR/Prefabs/OVRCubemapCaptureProbe.prefab
Normal file
58
Assets/Oculus/VR/Prefabs/OVRCubemapCaptureProbe.prefab
Normal file
@@ -0,0 +1,58 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &115974
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 4: {fileID: 400110}
|
||||
- 114: {fileID: 11407504}
|
||||
m_Layer: 0
|
||||
m_Name: OVRCubemapCaptureProbe
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 2974397684917235467, guid: 0000000000000000d000000000000000, type: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &400110
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 115974}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 3.74, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
--- !u!114 &11407504
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 115974}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 7a489178b0acf0147846b3873447beaf, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
autoTriggerAfterLaunch: 1
|
||||
autoTriggerDelay: 1
|
||||
triggeredByKey: 289
|
||||
pathName:
|
||||
cubemapSize: 2048
|
||||
--- !u!1001 &100100000
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 1
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications: []
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 115974}
|
||||
m_IsPrefabParent: 1
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7a400e96d4650ff4e827a7e727fad81d
|
||||
timeCreated: 1464847331
|
||||
licenseType: Pro
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
491
Assets/Oculus/VR/Prefabs/OVRPlayerController.prefab
Normal file
491
Assets/Oculus/VR/Prefabs/OVRPlayerController.prefab
Normal file
@@ -0,0 +1,491 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &100004
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 400008}
|
||||
- component: {fileID: 11400020}
|
||||
- component: {fileID: 11400002}
|
||||
m_Layer: 0
|
||||
m_Name: OVRCameraRig
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &100006
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 400002}
|
||||
m_Layer: 0
|
||||
m_Name: ForwardDirection
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &100008
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 400006}
|
||||
- component: {fileID: 14300000}
|
||||
- component: {fileID: 11400010}
|
||||
- component: {fileID: 11462408}
|
||||
- component: {fileID: 11493974}
|
||||
m_Layer: 0
|
||||
m_Name: OVRPlayerController
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &100010
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 400010}
|
||||
m_Layer: 0
|
||||
m_Name: LeftEyeAnchor
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &100012
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 400012}
|
||||
- component: {fileID: 8100000}
|
||||
- component: {fileID: 2015248}
|
||||
- component: {fileID: 11414578}
|
||||
m_Layer: 0
|
||||
m_Name: CenterEyeAnchor
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &100014
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 400014}
|
||||
m_Layer: 0
|
||||
m_Name: RightEyeAnchor
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &134650
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 481164}
|
||||
m_Layer: 0
|
||||
m_Name: RightHandAnchor
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &162066
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 462066}
|
||||
m_Layer: 0
|
||||
m_Name: TrackingSpace
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &162068
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 462068}
|
||||
m_Layer: 0
|
||||
m_Name: TrackerAnchor
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &168962
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 477154}
|
||||
m_Layer: 0
|
||||
m_Name: LeftHandAnchor
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &400002
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100006}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 400006}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!4 &400006
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100008}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 400002}
|
||||
- {fileID: 400008}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!4 &400008
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100004}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 462066}
|
||||
m_Father: {fileID: 400006}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!4 &400010
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100010}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 462066}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!4 &400012
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100012}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 462066}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!4 &400014
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100014}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 462066}
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!4 &462066
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 162066}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 400010}
|
||||
- {fileID: 400012}
|
||||
- {fileID: 400014}
|
||||
- {fileID: 462068}
|
||||
- {fileID: 477154}
|
||||
- {fileID: 481164}
|
||||
m_Father: {fileID: 400008}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!4 &462068
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 162068}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 462066}
|
||||
m_RootOrder: 3
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!4 &477154
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 168962}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 462066}
|
||||
m_RootOrder: 4
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!4 &481164
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 134650}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 462066}
|
||||
m_RootOrder: 5
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!20 &2015248
|
||||
Camera:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100012}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 1
|
||||
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0.019607844}
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: 0.1
|
||||
far clip plane: 1000
|
||||
field of view: 90
|
||||
orthographic: 0
|
||||
orthographic size: 5
|
||||
m_Depth: 0
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 3
|
||||
m_HDR: 0
|
||||
m_AllowMSAA: 1
|
||||
m_ForceIntoRT: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: 0.022
|
||||
m_StereoMirrorMode: 0
|
||||
--- !u!81 &8100000
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100012}
|
||||
m_Enabled: 1
|
||||
--- !u!114 &11400002
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100004}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 7e933e81d3c20c74ea6fdc708a67e3a5, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
queueAhead: 1
|
||||
useRecommendedMSAALevel: 0
|
||||
enableAdaptiveResolution: 0
|
||||
minRenderScale: 0.7
|
||||
maxRenderScale: 1
|
||||
expandMixedRealityCapturePropertySheet: 0
|
||||
enableMixedReality: 0
|
||||
compositionMethod: 0
|
||||
extraHiddenLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
capturingCameraDevice: 0
|
||||
flipCameraFrameHorizontally: 0
|
||||
flipCameraFrameVertically: 0
|
||||
handPoseStateLatency: 0
|
||||
sandwichCompositionRenderLatency: 0
|
||||
sandwichCompositionBufferedFrames: 8
|
||||
chromaKeyColor: {r: 0, g: 1, b: 0, a: 1}
|
||||
chromaKeySimilarity: 0.6
|
||||
chromaKeySmoothRange: 0.03
|
||||
chromaKeySpillRange: 0.06
|
||||
useDynamicLighting: 0
|
||||
depthQuality: 1
|
||||
dynamicLightingSmoothFactor: 8
|
||||
dynamicLightingDepthVariationClampingValue: 0.001
|
||||
virtualGreenScreenType: 0
|
||||
virtualGreenScreenTopY: 10
|
||||
virtualGreenScreenBottomY: -10
|
||||
virtualGreenScreenApplyDepthCulling: 0
|
||||
virtualGreenScreenDepthTolerance: 0.2
|
||||
_trackingOriginType: 0
|
||||
usePositionTracking: 1
|
||||
useRotationTracking: 1
|
||||
useIPDInPositionTracking: 1
|
||||
resetTrackerOnLoad: 0
|
||||
--- !u!114 &11400010
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100008}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 0950df82e7936c84983497630bde5b54, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
Acceleration: 0.1
|
||||
Damping: 0.3
|
||||
BackAndSideDampen: 0.5
|
||||
JumpForce: 0.3
|
||||
RotationAmount: 1.5
|
||||
RotationRatchet: 45
|
||||
HmdResetsY: 1
|
||||
HmdRotatesY: 1
|
||||
GravityModifier: 1
|
||||
useProfileData: 1
|
||||
--- !u!114 &11400020
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100004}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: df9f338034892c44ebb62d97894772f1, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
usePerEyeCameras: 0
|
||||
useFixedUpdateForTracking: 0
|
||||
--- !u!114 &11414578
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100012}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: df8e1d778abf442e4bec449c360e9e1c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
fadeTime: 2
|
||||
fadeColor: {r: 0.01, g: 0.01, b: 0.01, a: 1}
|
||||
fadeOnStart: 1
|
||||
--- !u!114 &11462408
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100008}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4f07515ada089df47868559a20dd6783, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
quitKey: 27
|
||||
fadeInTexture: {fileID: 0}
|
||||
speedRotationIncrement: 0.05
|
||||
layerName: Default
|
||||
--- !u!114 &11493974
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100008}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: b71d1996d67004241a3b69960856ffcb, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!143 &14300000
|
||||
CharacterController:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 100008}
|
||||
m_Material: {fileID: 0}
|
||||
m_IsTrigger: 0
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_Height: 2
|
||||
m_Radius: 0.5
|
||||
m_SlopeLimit: 45
|
||||
m_StepOffset: 0.3
|
||||
m_SkinWidth: 0.01
|
||||
m_MinMoveDistance: 0
|
||||
m_Center: {x: 0, y: 0, z: 0}
|
||||
--- !u!1001 &100100000
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 1
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications: []
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 100008}
|
||||
m_IsPrefabParent: 1
|
||||
4
Assets/Oculus/VR/Prefabs/OVRPlayerController.prefab.meta
Normal file
4
Assets/Oculus/VR/Prefabs/OVRPlayerController.prefab.meta
Normal file
@@ -0,0 +1,4 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ce816f2e6abb0504092c23ed9b970dfd
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
645
Assets/Oculus/VR/Prefabs/TrackedRemote.prefab
Normal file
645
Assets/Oculus/VR/Prefabs/TrackedRemote.prefab
Normal file
@@ -0,0 +1,645 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &112276
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 488160}
|
||||
- component: {fileID: 11479374}
|
||||
m_Layer: 0
|
||||
m_Name: TrackedRemote
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &488160
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 112276}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 4000011296770734}
|
||||
- {fileID: 4464436526328426}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &11479374
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 112276}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: aed62bf3ae2456c408f247f96808ce96, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_modelGearVrController: {fileID: 1000010178323718}
|
||||
m_modelOculusGoController: {fileID: 1956530202777762}
|
||||
m_controller: 33554432
|
||||
--- !u!1001 &100100000
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 1
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications: []
|
||||
m_RemovedComponents: []
|
||||
m_ParentPrefab: {fileID: 0}
|
||||
m_RootGameObject: {fileID: 112276}
|
||||
m_IsPrefabParent: 1
|
||||
--- !u!1 &1000010178323718
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 4000011296770734}
|
||||
m_Layer: 0
|
||||
m_Name: GearVrControllerModel
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &1000011436655710
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 4000012142331768}
|
||||
- component: {fileID: 33000013153656990}
|
||||
- component: {fileID: 23000011768000172}
|
||||
m_Layer: 0
|
||||
m_Name: home_button_PLY
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &1000011549955176
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 4000012748093882}
|
||||
- component: {fileID: 33000013186836272}
|
||||
- component: {fileID: 23000013477210968}
|
||||
m_Layer: 0
|
||||
m_Name: trigger_PLY
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &1000012388513744
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 4000010547406920}
|
||||
- component: {fileID: 33000013134621756}
|
||||
- component: {fileID: 23000010895726220}
|
||||
m_Layer: 0
|
||||
m_Name: chassis_PLY
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &1000012567764716
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 4000010554578882}
|
||||
- component: {fileID: 33000013511306870}
|
||||
- component: {fileID: 23000012129420234}
|
||||
m_Layer: 0
|
||||
m_Name: disc_button_PLY
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &1000013696185028
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 4000011347987256}
|
||||
- component: {fileID: 33000013945561740}
|
||||
- component: {fileID: 23000010818504298}
|
||||
m_Layer: 0
|
||||
m_Name: back_button_PLY
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &1000013718830530
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 4000011835757296}
|
||||
- component: {fileID: 33000010177796194}
|
||||
- component: {fileID: 23000011389392996}
|
||||
m_Layer: 0
|
||||
m_Name: text_PLY
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &1000014047055526
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 4000012637917122}
|
||||
- component: {fileID: 33000013874298672}
|
||||
- component: {fileID: 23000010051961506}
|
||||
m_Layer: 0
|
||||
m_Name: center_button_PLY
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!1 &1956530202777762
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
serializedVersion: 5
|
||||
m_Component:
|
||||
- component: {fileID: 4464436526328426}
|
||||
- component: {fileID: 33356632527651328}
|
||||
- component: {fileID: 23705978566827108}
|
||||
m_Layer: 0
|
||||
m_Name: OculusGoControllerModel
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &4000010547406920
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1000012388513744}
|
||||
m_LocalRotation: {x: 0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: -0, y: 0.00007190227, z: -0.023617705}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 4000011296770734}
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!4 &4000010554578882
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1000012567764716}
|
||||
m_LocalRotation: {x: 0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: -0, y: 0.00007190227, z: -0.023617705}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 4000011296770734}
|
||||
m_RootOrder: 3
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!4 &4000011296770734
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1000010178323718}
|
||||
m_LocalRotation: {x: 0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: -0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 4000011347987256}
|
||||
- {fileID: 4000012637917122}
|
||||
- {fileID: 4000010547406920}
|
||||
- {fileID: 4000010554578882}
|
||||
- {fileID: 4000012142331768}
|
||||
- {fileID: 4000011835757296}
|
||||
- {fileID: 4000012748093882}
|
||||
m_Father: {fileID: 488160}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!4 &4000011347987256
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1000013696185028}
|
||||
m_LocalRotation: {x: 0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: -0, y: 0.00007190227, z: -0.023617705}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 4000011296770734}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!4 &4000011835757296
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1000013718830530}
|
||||
m_LocalRotation: {x: 0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: -0, y: 0.00007190227, z: -0.023617705}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 4000011296770734}
|
||||
m_RootOrder: 5
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!4 &4000012142331768
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1000011436655710}
|
||||
m_LocalRotation: {x: 0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: -0, y: 0.00007190227, z: -0.023617705}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 4000011296770734}
|
||||
m_RootOrder: 4
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!4 &4000012637917122
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1000014047055526}
|
||||
m_LocalRotation: {x: 0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: -0, y: 0.00007190227, z: -0.023617705}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 4000011296770734}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!4 &4000012748093882
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1000011549955176}
|
||||
m_LocalRotation: {x: 0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: -0, y: 0.00007190227, z: -0.023617705}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 4000011296770734}
|
||||
m_RootOrder: 6
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!4 &4464436526328426
|
||||
Transform:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1956530202777762}
|
||||
m_LocalRotation: {x: 6.123234e-17, y: -0.0000000754979, z: 6.1232336e-17, w: 1}
|
||||
m_LocalPosition: {x: -0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 488160}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!23 &23000010051961506
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1000014047055526}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 0
|
||||
m_ReceiveShadows: 0
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: f6ccc53b9bcfb114996e76ee88ce6948, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
--- !u!23 &23000010818504298
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1000013696185028}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 0
|
||||
m_ReceiveShadows: 0
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: f6ccc53b9bcfb114996e76ee88ce6948, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
--- !u!23 &23000010895726220
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1000012388513744}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 0
|
||||
m_ReceiveShadows: 0
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: f6ccc53b9bcfb114996e76ee88ce6948, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
--- !u!23 &23000011389392996
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1000013718830530}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 0
|
||||
m_ReceiveShadows: 0
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: f6ccc53b9bcfb114996e76ee88ce6948, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
--- !u!23 &23000011768000172
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1000011436655710}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 0
|
||||
m_ReceiveShadows: 0
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: f6ccc53b9bcfb114996e76ee88ce6948, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
--- !u!23 &23000012129420234
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1000012567764716}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 0
|
||||
m_ReceiveShadows: 0
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: f6ccc53b9bcfb114996e76ee88ce6948, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
--- !u!23 &23000013477210968
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1000011549955176}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 0
|
||||
m_ReceiveShadows: 0
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: f6ccc53b9bcfb114996e76ee88ce6948, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
--- !u!23 &23705978566827108
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1956530202777762}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 0
|
||||
m_ReceiveShadows: 0
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: 6c0b208d35ece4a459821be19df69561, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
--- !u!33 &33000010177796194
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1000013718830530}
|
||||
m_Mesh: {fileID: 4300000, guid: 84c37137326e7b943a87be7ae2a7ea19, type: 3}
|
||||
--- !u!33 &33000013134621756
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1000012388513744}
|
||||
m_Mesh: {fileID: 4300012, guid: 84c37137326e7b943a87be7ae2a7ea19, type: 3}
|
||||
--- !u!33 &33000013153656990
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1000011436655710}
|
||||
m_Mesh: {fileID: 4300006, guid: 84c37137326e7b943a87be7ae2a7ea19, type: 3}
|
||||
--- !u!33 &33000013186836272
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1000011549955176}
|
||||
m_Mesh: {fileID: 4300004, guid: 84c37137326e7b943a87be7ae2a7ea19, type: 3}
|
||||
--- !u!33 &33000013511306870
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1000012567764716}
|
||||
m_Mesh: {fileID: 4300010, guid: 84c37137326e7b943a87be7ae2a7ea19, type: 3}
|
||||
--- !u!33 &33000013874298672
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1000014047055526}
|
||||
m_Mesh: {fileID: 4300002, guid: 84c37137326e7b943a87be7ae2a7ea19, type: 3}
|
||||
--- !u!33 &33000013945561740
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1000013696185028}
|
||||
m_Mesh: {fileID: 4300008, guid: 84c37137326e7b943a87be7ae2a7ea19, type: 3}
|
||||
--- !u!33 &33356632527651328
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 100100000}
|
||||
m_GameObject: {fileID: 1956530202777762}
|
||||
m_Mesh: {fileID: 4300000, guid: e0f1914fdbfd3764faeff5474c0cbe1e, type: 3}
|
||||
8
Assets/Oculus/VR/Prefabs/TrackedRemote.prefab.meta
Normal file
8
Assets/Oculus/VR/Prefabs/TrackedRemote.prefab.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d9809c5e8418bb047bf2c8ba1d1a2cec
|
||||
timeCreated: 1486168892
|
||||
licenseType: Free
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
9
Assets/Oculus/VR/Resources.meta
Normal file
9
Assets/Oculus/VR/Resources.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 807714291dbf2a54c9b3975c271b2493
|
||||
folderAsset: yes
|
||||
timeCreated: 1466707364
|
||||
licenseType: Pro
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
75
Assets/Oculus/VR/Resources/Cubemap Blit.shader
Normal file
75
Assets/Oculus/VR/Resources/Cubemap Blit.shader
Normal file
@@ -0,0 +1,75 @@
|
||||
Shader "Oculus/Cubemap Blit" {
|
||||
Properties{
|
||||
_MainTex("Base (RGB) Trans (A)", CUBE) = "white" {}
|
||||
_face("Face", Int) = 0
|
||||
_linearToSrgb("Perform linear-to-gamma conversion", Int) = 0
|
||||
_premultiply("Cubemap Blit", Int) = 0
|
||||
}
|
||||
SubShader{
|
||||
Tags{ "Queue" = "Transparent" "IgnoreProjector" = "True" "RenderType" = "Transparent" }
|
||||
|
||||
Pass{
|
||||
ZWrite Off
|
||||
ColorMask RGBA
|
||||
|
||||
CGPROGRAM
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
|
||||
#include "UnityCG.cginc"
|
||||
|
||||
struct appdata_t
|
||||
{
|
||||
float4 vertex : POSITION;
|
||||
float2 texcoord : TEXCOORD0;
|
||||
};
|
||||
|
||||
struct v2f
|
||||
{
|
||||
float4 vertex : SV_POSITION;
|
||||
half3 cubedir : TEXCOORD0;
|
||||
};
|
||||
|
||||
samplerCUBE _MainTex;
|
||||
float4 _MainTex_ST;
|
||||
int _face;
|
||||
int _linearToSrgb;
|
||||
int _premultiply;
|
||||
|
||||
v2f vert (appdata_t va)
|
||||
{
|
||||
v2f vo;
|
||||
vo.vertex = UnityObjectToClipPos(va.vertex);
|
||||
|
||||
//Face bases, assuming +x, -x, +z, -z, +y, -y with origin at bottom-left.
|
||||
float3 o[6] = { {1.0, -1.0, 1.0}, {-1.0, -1.0, -1.0}, {-1.0, 1.0, 1.0}, {-1.0, -1.0, -1.0}, {-1.0, -1.0, 1.0}, { 1.0, -1.0, -1.0} };
|
||||
float3 u[6] = { {0.0, 0.0, -1.0}, { 0.0, 0.0, 1.0}, { 1.0, 0.0, 0.0}, { 1.0, 0.0, 0.0}, { 1.0, 0.0, 0.0}, {-1.0, 0.0, 0.0} };
|
||||
float3 v[6] = { {0.0, 1.0, 0.0}, { 0.0, 1.0, 0.0}, { 0.0, 0.0, -1.0}, { 0.0, 0.0, 1.0}, { 0.0, 1.0, 0.0}, { 0.0, 1.0, 0.0} };
|
||||
|
||||
//Map the input UV to the corresponding face basis.
|
||||
vo.cubedir = o[_face] + 2.0*va.texcoord.x * u[_face] + 2.0*(1.0 - va.texcoord.y) * v[_face];
|
||||
|
||||
return vo;
|
||||
}
|
||||
|
||||
fixed4 frag (v2f vi) : COLOR
|
||||
{
|
||||
fixed4 col = texCUBE(_MainTex, vi.cubedir);
|
||||
|
||||
if (_linearToSrgb)
|
||||
{
|
||||
float3 S1 = sqrt(col.rgb);
|
||||
float3 S2 = sqrt(S1);
|
||||
float3 S3 = sqrt(S2);
|
||||
col.rgb = 0.662002687 * S1 + 0.684122060 * S2 - 0.323583601 * S3 - 0.0225411470 * col.rgb;
|
||||
}
|
||||
|
||||
if (_premultiply)
|
||||
col.rgb *= col.a;
|
||||
|
||||
return col;
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
}
|
||||
9
Assets/Oculus/VR/Resources/Cubemap Blit.shader.meta
Normal file
9
Assets/Oculus/VR/Resources/Cubemap Blit.shader.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 561ccac587275c745aec500620f12fc7
|
||||
timeCreated: 1507678760
|
||||
licenseType: Free
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
99
Assets/Oculus/VR/Resources/OVRMRCameraFrame.shader
Normal file
99
Assets/Oculus/VR/Resources/OVRMRCameraFrame.shader
Normal file
@@ -0,0 +1,99 @@
|
||||
Shader "Oculus/OVRMRCameraFrame"
|
||||
{
|
||||
Properties
|
||||
{
|
||||
_Color("Main Color", Color) = (1,1,1,1)
|
||||
_MainTex("Main Texture", 2D) = "white" {}
|
||||
_Visible("Visible", Range(0.0,1.0)) = 1.0
|
||||
_ChromaAlphaCutoff("ChromaAlphaCutoff", Range(0.0,1.0)) = 0.01
|
||||
_ChromaToleranceA("ChromaToleranceA", Range(0.0,50.0)) = 20.0
|
||||
_ChromaToleranceB("ChromaToleranceB", Range(0.0,50.0)) = 15.0
|
||||
_ChromaShadows("ChromaShadows", Range(0.0,1.0)) = 0.02
|
||||
}
|
||||
SubShader
|
||||
{
|
||||
Tags { "Queue" = "Transparent" "IgnoreProjector" = "True" "RenderType" = "Transparent" }
|
||||
Blend SrcAlpha OneMinusSrcAlpha
|
||||
AlphaTest Greater .01
|
||||
Fog{ Mode Off }
|
||||
LOD 100
|
||||
Cull Off
|
||||
|
||||
Pass
|
||||
{
|
||||
CGPROGRAM
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
|
||||
#include "UnityCG.cginc"
|
||||
#include "OVRMRChromaKey.cginc"
|
||||
|
||||
struct appdata
|
||||
{
|
||||
float4 vertex : POSITION;
|
||||
float2 texcoord : TEXCOORD0;
|
||||
};
|
||||
|
||||
struct v2f
|
||||
{
|
||||
float4 vertex : SV_POSITION;
|
||||
float2 texcoord : TEXCOORD0;
|
||||
};
|
||||
|
||||
sampler2D _MainTex;
|
||||
float4 _MainTex_ST;
|
||||
sampler2D _MaskTex;
|
||||
|
||||
float4 _TextureDimension; // (w, h, 1/w, 1/h)
|
||||
|
||||
fixed4 _Color;
|
||||
fixed _Visible;
|
||||
float4 _FlipParams; // (flip_h, flip_v, 0, 0)
|
||||
|
||||
v2f vert (appdata v)
|
||||
{
|
||||
v2f o;
|
||||
o.vertex = UnityObjectToClipPos(v.vertex);
|
||||
o.vertex *= _Visible;
|
||||
o.texcoord = TRANSFORM_TEX(float2(v.texcoord.x, 1.0-v.texcoord.y), _MainTex);
|
||||
return o;
|
||||
}
|
||||
|
||||
fixed GetMask(float2 uv)
|
||||
{
|
||||
return tex2D(_MaskTex, uv).r;
|
||||
}
|
||||
|
||||
fixed4 GetCameraColor(float2 colorUV)
|
||||
{
|
||||
fixed4 c = tex2D(_MainTex, colorUV) * _Color;
|
||||
return c;
|
||||
}
|
||||
|
||||
fixed4 frag (v2f i) : SV_Target
|
||||
{
|
||||
float2 colorUV = i.texcoord;
|
||||
if (_FlipParams.x > 0.0)
|
||||
{
|
||||
colorUV.x = 1.0 - colorUV.x;
|
||||
}
|
||||
if (_FlipParams.y > 0.0)
|
||||
{
|
||||
colorUV.y = 1.0 - colorUV.y;
|
||||
}
|
||||
float mask = GetMask(float2(colorUV.x, 1.0 - colorUV.y));
|
||||
if (mask == 0.0)
|
||||
{
|
||||
discard;
|
||||
}
|
||||
float4 col = GetColorAfterChromaKey(colorUV, _TextureDimension.zw, 1.0);
|
||||
if (col.a < 0.0)
|
||||
{
|
||||
discard;
|
||||
}
|
||||
return col;
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
}
|
||||
9
Assets/Oculus/VR/Resources/OVRMRCameraFrame.shader.meta
Normal file
9
Assets/Oculus/VR/Resources/OVRMRCameraFrame.shader.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2bd7618c3fa0e4b4ab8e08dc3fadc376
|
||||
timeCreated: 1497574409
|
||||
licenseType: Pro
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
112
Assets/Oculus/VR/Resources/OVRMRCameraFrameLit.shader
Normal file
112
Assets/Oculus/VR/Resources/OVRMRCameraFrameLit.shader
Normal file
@@ -0,0 +1,112 @@
|
||||
Shader "Oculus/OVRMRCameraFrameLit" {
|
||||
Properties{
|
||||
_Color("Color", Color) = (1,1,1,1)
|
||||
_MainTex("Albedo (RGB)", 2D) = "white" {}
|
||||
_DepthTex("Depth (cm)", 2D) = "black" {}
|
||||
_InconfidenceTex("Inconfidence (0-100)", 2D) = "black" {}
|
||||
_Visible("Visible", Range(0.0,1.0)) = 1.0
|
||||
}
|
||||
SubShader{
|
||||
Tags{ "Queue" = "Transparent" "RenderType" = "Transparent" }
|
||||
LOD 200
|
||||
|
||||
CGPROGRAM
|
||||
#pragma surface surf Lambert alpha:fade
|
||||
#pragma target 3.0
|
||||
|
||||
#include "OVRMRChromaKey.cginc"
|
||||
|
||||
#define TEST_ENVIRONMENT 0
|
||||
|
||||
sampler2D _MainTex;
|
||||
sampler2D _DepthTex;
|
||||
sampler2D _MaskTex;
|
||||
|
||||
float4 _TextureDimension; // (w, h, 1/w, 1/h)
|
||||
float4 _TextureWorldSize; // (width_in_meter, height_in_meter, 0, 0)
|
||||
|
||||
float _SmoothFactor;
|
||||
float _DepthVariationClamp;
|
||||
|
||||
float _CullingDistance;
|
||||
|
||||
struct Input {
|
||||
#if TEST_ENVIRONMENT
|
||||
float2 uv_MainTex;
|
||||
#endif
|
||||
float4 screenPos;
|
||||
};
|
||||
|
||||
fixed4 _Color;
|
||||
fixed _Visible;
|
||||
float4 _FlipParams; // (flip_h, flip_v, 0, 0)
|
||||
|
||||
fixed GetMask(float2 uv)
|
||||
{
|
||||
return tex2D(_MaskTex, uv).r;
|
||||
}
|
||||
|
||||
fixed4 GetCameraColor(float2 colorUV)
|
||||
{
|
||||
fixed4 c = tex2D(_MainTex, colorUV) * _Color;
|
||||
return c;
|
||||
}
|
||||
|
||||
float GetDepth(float2 uv)
|
||||
{
|
||||
float depth = tex2D(_DepthTex, uv).x * 1.0 / 100;
|
||||
return depth;
|
||||
}
|
||||
|
||||
float3 GetNormal(float2 uv)
|
||||
{
|
||||
float dz_x = GetDepth(uv + float2(_TextureDimension.z, 0)) - GetDepth(uv - float2(_TextureDimension.z, 0));
|
||||
float dz_y = GetDepth(uv + float2(0, _TextureDimension.w)) - GetDepth(uv - float2(0, _TextureDimension.w));
|
||||
dz_x = clamp(dz_x, -_DepthVariationClamp, _DepthVariationClamp);
|
||||
dz_y = clamp(dz_y, -_DepthVariationClamp, _DepthVariationClamp);
|
||||
//float dist = 0.01;
|
||||
//float3 normal = cross(float3(dist, 0, dz_x), float3(0, dist, dz_y));
|
||||
float3 normal = cross(float3(_TextureWorldSize.x * _TextureDimension.z * 2.0 * _SmoothFactor, 0, dz_x), float3(0, _TextureWorldSize.y * _TextureDimension.w * 2.0 * _SmoothFactor, dz_y));
|
||||
normal = normalize(normal);
|
||||
return normal;
|
||||
}
|
||||
|
||||
void surf(Input IN, inout SurfaceOutput o) {
|
||||
#if TEST_ENVIRONMENT
|
||||
float2 colorUV = float2(IN.uv_MainTex.x, IN.uv_MainTex.y);
|
||||
#else
|
||||
float2 screenUV = IN.screenPos.xy / IN.screenPos.w;
|
||||
float2 colorUV = float2(screenUV.x, 1.0 - screenUV.y);
|
||||
#endif
|
||||
if (_FlipParams.x > 0.0)
|
||||
{
|
||||
colorUV.x = 1.0 - colorUV.x;
|
||||
}
|
||||
if (_FlipParams.y > 0.0)
|
||||
{
|
||||
colorUV.y = 1.0 - colorUV.y;
|
||||
}
|
||||
float mask = GetMask(colorUV);
|
||||
if (mask == 0.0)
|
||||
{
|
||||
discard;
|
||||
}
|
||||
float4 col = GetColorAfterChromaKey(colorUV, _TextureDimension.zw, 1.0);
|
||||
if (col.a < 0.0)
|
||||
{
|
||||
discard;
|
||||
}
|
||||
float depth = GetDepth(colorUV);
|
||||
if (depth > _CullingDistance)
|
||||
{
|
||||
discard;
|
||||
}
|
||||
float3 normal = GetNormal(colorUV);
|
||||
o.Albedo = col.rgb;
|
||||
o.Normal = normal;
|
||||
o.Alpha = col.a *_Visible;
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
FallBack "Alpha-Diffuse"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a8577c885e80d8043946ac5b7abcf9a1
|
||||
timeCreated: 1497574409
|
||||
licenseType: Pro
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
103
Assets/Oculus/VR/Resources/OVRMRChromaKey.cginc
Normal file
103
Assets/Oculus/VR/Resources/OVRMRChromaKey.cginc
Normal file
@@ -0,0 +1,103 @@
|
||||
fixed4 _ChromaKeyColor;
|
||||
float _ChromaKeySimilarity;
|
||||
float _ChromaKeySmoothRange;
|
||||
float _ChromaKeySpillRange;
|
||||
|
||||
// https://en.wikipedia.org/wiki/YUV
|
||||
float3 RGB2YUV(float3 rgb)
|
||||
{
|
||||
float r = rgb.x;
|
||||
float g = rgb.y;
|
||||
float b = rgb.z;
|
||||
float y = 0.2126 * r + 0.7152 * g + 0.0722 * b;
|
||||
float u = -0.09991 * r - 0.33609 * g + 0.436 * b;
|
||||
float v = 0.615 * r - 0.55861 * g - 0.05639 * b;
|
||||
return float3(y, u, v);
|
||||
}
|
||||
|
||||
float3 YUV2RGB(float3 yuv)
|
||||
{
|
||||
float y = yuv.x;
|
||||
float u = yuv.y;
|
||||
float v = yuv.z;
|
||||
float r = y + 1.28033 * v;
|
||||
float g = y - 0.21482 * u - 0.38059 * v;
|
||||
float b = y + 2.12798 * u;
|
||||
return float3(r, g, b);
|
||||
}
|
||||
|
||||
fixed4 GetCameraColor(float2 colorUV);
|
||||
|
||||
float ColorDistance_YUV_YUV(float3 yuv1, float3 yuv2)
|
||||
{
|
||||
float dist = distance(yuv1.yz, yuv2.yz);
|
||||
// Increase the distance if the brightness of the first color is too high.
|
||||
// It fixed the error on the over exposure areas
|
||||
dist += saturate(yuv1.x - 0.9);
|
||||
return dist;
|
||||
}
|
||||
|
||||
float ColorDistance_RGB_YUV(float3 rgb1, float3 yuv2)
|
||||
{
|
||||
float3 yuv1 = RGB2YUV(rgb1);
|
||||
return ColorDistance_YUV_YUV(yuv1, yuv2);
|
||||
}
|
||||
|
||||
|
||||
float ColorDistance_RGB_RGB(float3 rgb1, float3 rgb2)
|
||||
{
|
||||
float3 yuv1 = RGB2YUV(rgb1);
|
||||
float3 yuv2 = RGB2YUV(rgb2);
|
||||
return ColorDistance_YUV_YUV(yuv1, yuv2);
|
||||
}
|
||||
|
||||
float RGB2Gray(float3 rgb)
|
||||
{
|
||||
float r = rgb.x;
|
||||
float g = rgb.y;
|
||||
float b = rgb.z;
|
||||
float y = 0.2126 * r + 0.7152 * g + 0.0722 * b;
|
||||
return y;
|
||||
}
|
||||
|
||||
float GetAlphaFromDistance(float dist)
|
||||
{
|
||||
float result = smoothstep(_ChromaKeySimilarity, _ChromaKeySimilarity + _ChromaKeySmoothRange, dist);
|
||||
result = result * result;
|
||||
return result;
|
||||
}
|
||||
|
||||
float GetSpillFromDistance(float dist)
|
||||
{
|
||||
float result = smoothstep(_ChromaKeySimilarity, _ChromaKeySimilarity + _ChromaKeySpillRange, dist);
|
||||
result = result * result * result;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
float4 GetColorAfterChromaKey(float2 UV, float2 deltaUV, float step)
|
||||
{
|
||||
float3 chromaColor = _ChromaKeyColor.rgb;
|
||||
float3 chromaYUV = RGB2YUV(chromaColor);
|
||||
float dist = 0.0;
|
||||
const int samples = 3;
|
||||
float offset = ((float)samples - 1.0) / 2.0;
|
||||
for (int i = 0; i < samples; ++i)
|
||||
{
|
||||
for (int j = 0; j < samples; ++j)
|
||||
{
|
||||
fixed4 color = GetCameraColor(UV + float2((float)i - offset, (float)j - offset) * deltaUV * step);
|
||||
float d = ColorDistance_RGB_YUV(color, chromaYUV);
|
||||
dist += d;
|
||||
}
|
||||
}
|
||||
dist /= (samples * samples);
|
||||
fixed4 centerColor = GetCameraColor(UV);
|
||||
float alpha = GetAlphaFromDistance(dist);
|
||||
float spill = GetSpillFromDistance(dist);
|
||||
float gray = RGB2Gray(centerColor.rgb);
|
||||
float4 outColor;
|
||||
outColor.rgb = lerp(float3(gray, gray, gray), centerColor.rgb, spill);
|
||||
outColor.a = alpha;
|
||||
return outColor;
|
||||
}
|
||||
9
Assets/Oculus/VR/Resources/OVRMRChromaKey.cginc.meta
Normal file
9
Assets/Oculus/VR/Resources/OVRMRChromaKey.cginc.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 680577023e93e564c9b00f18b0164afa
|
||||
timeCreated: 1503944830
|
||||
licenseType: Pro
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
50
Assets/Oculus/VR/Resources/OVRMRClipPlane.shader
Normal file
50
Assets/Oculus/VR/Resources/OVRMRClipPlane.shader
Normal file
@@ -0,0 +1,50 @@
|
||||
Shader "Oculus/OVRMRClipPlane"
|
||||
{
|
||||
Properties
|
||||
{
|
||||
_Color("Chroma Key Color", Color) = (0,1,0,1)
|
||||
_Visible("Visible", Range(0.0,1.0)) = 1.0
|
||||
}
|
||||
SubShader
|
||||
{
|
||||
Tags { "RenderType"="Opaque" }
|
||||
LOD 100
|
||||
|
||||
Pass
|
||||
{
|
||||
CGPROGRAM
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
|
||||
#include "UnityCG.cginc"
|
||||
|
||||
struct appdata
|
||||
{
|
||||
float4 vertex : POSITION;
|
||||
};
|
||||
|
||||
struct v2f
|
||||
{
|
||||
float4 vertex : SV_POSITION;
|
||||
};
|
||||
|
||||
fixed4 _Color;
|
||||
fixed _Visible;
|
||||
|
||||
v2f vert (appdata v)
|
||||
{
|
||||
v2f o;
|
||||
o.vertex = UnityObjectToClipPos(v.vertex);
|
||||
o.vertex *= _Visible;
|
||||
return o;
|
||||
}
|
||||
|
||||
fixed4 frag (v2f i) : SV_Target
|
||||
{
|
||||
fixed4 col = _Color;
|
||||
return col;
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
}
|
||||
9
Assets/Oculus/VR/Resources/OVRMRClipPlane.shader.meta
Normal file
9
Assets/Oculus/VR/Resources/OVRMRClipPlane.shader.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2ab721dccaa7e6f4693cedd904dfdcac
|
||||
timeCreated: 1494743027
|
||||
licenseType: Pro
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
48
Assets/Oculus/VR/Resources/OVRMRUnlit.shader
Normal file
48
Assets/Oculus/VR/Resources/OVRMRUnlit.shader
Normal file
@@ -0,0 +1,48 @@
|
||||
Shader "Oculus/Unlit" {
|
||||
Properties{
|
||||
_Color("Main Color", Color) = (1,1,1,1)
|
||||
}
|
||||
|
||||
SubShader{
|
||||
Tags{ "RenderType" = "Opaque" }
|
||||
LOD 100
|
||||
|
||||
Pass{
|
||||
CGPROGRAM
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
#pragma target 2.0
|
||||
#pragma multi_compile_fog
|
||||
|
||||
#include "UnityCG.cginc"
|
||||
|
||||
struct appdata_t {
|
||||
float4 vertex : POSITION;
|
||||
};
|
||||
|
||||
struct v2f {
|
||||
float4 vertex : SV_POSITION;
|
||||
UNITY_FOG_COORDS(0)
|
||||
};
|
||||
|
||||
fixed4 _Color;
|
||||
|
||||
v2f vert(appdata_t v)
|
||||
{
|
||||
v2f o;
|
||||
o.vertex = UnityObjectToClipPos(v.vertex);
|
||||
UNITY_TRANSFER_FOG(o,o.vertex);
|
||||
return o;
|
||||
}
|
||||
|
||||
fixed4 frag(v2f i) : COLOR
|
||||
{
|
||||
fixed4 col = _Color;
|
||||
UNITY_APPLY_FOG(i.fogCoord, col);
|
||||
UNITY_OPAQUE_ALPHA(col.a);
|
||||
return col;
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
}
|
||||
9
Assets/Oculus/VR/Resources/OVRMRUnlit.shader.meta
Normal file
9
Assets/Oculus/VR/Resources/OVRMRUnlit.shader.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9aa46566e1d86644c9a55e3037e935f6
|
||||
timeCreated: 1504826310
|
||||
licenseType: Pro
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
54
Assets/Oculus/VR/Resources/OVRMRUnlitTransparent.shader
Normal file
54
Assets/Oculus/VR/Resources/OVRMRUnlitTransparent.shader
Normal file
@@ -0,0 +1,54 @@
|
||||
Shader "Oculus/UnlitTransparent" {
|
||||
Properties{
|
||||
_MainTex("Base (RGB) Trans (A)", 2D) = "white" {}
|
||||
}
|
||||
|
||||
SubShader{
|
||||
Tags{ "Queue" = "Transparent" "IgnoreProjector" = "True" "RenderType" = "Transparent" }
|
||||
LOD 100
|
||||
|
||||
ZWrite Off
|
||||
Blend SrcAlpha OneMinusSrcAlpha
|
||||
|
||||
Pass{
|
||||
CGPROGRAM
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
#pragma target 2.0
|
||||
#pragma multi_compile_fog
|
||||
|
||||
#include "UnityCG.cginc"
|
||||
|
||||
struct appdata_t {
|
||||
float4 vertex : POSITION;
|
||||
float2 texcoord : TEXCOORD0;
|
||||
};
|
||||
|
||||
struct v2f {
|
||||
float4 vertex : SV_POSITION;
|
||||
half2 texcoord : TEXCOORD0;
|
||||
UNITY_FOG_COORDS(1)
|
||||
};
|
||||
|
||||
sampler2D _MainTex;
|
||||
float4 _MainTex_ST;
|
||||
|
||||
v2f vert(appdata_t v)
|
||||
{
|
||||
v2f o;
|
||||
o.vertex = UnityObjectToClipPos(v.vertex);
|
||||
o.texcoord = TRANSFORM_TEX(v.texcoord, _MainTex);
|
||||
UNITY_TRANSFER_FOG(o,o.vertex);
|
||||
return o;
|
||||
}
|
||||
|
||||
fixed4 frag(v2f i) : SV_Target
|
||||
{
|
||||
fixed4 col = tex2D(_MainTex, i.texcoord);
|
||||
UNITY_APPLY_FOG(i.fogCoord, col);
|
||||
return col;
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 38ad33c152e32ee46a9bbbb0e656f7e1
|
||||
timeCreated: 1504826310
|
||||
licenseType: Pro
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
64
Assets/Oculus/VR/Resources/Texture2D Blit.shader
Normal file
64
Assets/Oculus/VR/Resources/Texture2D Blit.shader
Normal file
@@ -0,0 +1,64 @@
|
||||
Shader "Oculus/Texture2D Blit" {
|
||||
Properties{
|
||||
_MainTex("Base (RGB) Trans (A)", 2D) = "white" {}
|
||||
_linearToSrgb("Perform linear-to-gamma conversion", Int) = 0
|
||||
_premultiply("Pre-multiply alpha", Int) = 0
|
||||
}
|
||||
SubShader{
|
||||
Tags{ "Queue" = "Transparent" "IgnoreProjector" = "True" "RenderType" = "Transparent" }
|
||||
|
||||
Pass{
|
||||
ZWrite Off
|
||||
ColorMask RGBA
|
||||
|
||||
CGPROGRAM
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
|
||||
#include "UnityCG.cginc"
|
||||
|
||||
struct appdata_t
|
||||
{
|
||||
float4 vertex : POSITION;
|
||||
float2 texcoord : TEXCOORD0;
|
||||
};
|
||||
|
||||
struct v2f
|
||||
{
|
||||
float4 vertex : SV_POSITION;
|
||||
half2 texcoord : TEXCOORD0;
|
||||
};
|
||||
|
||||
sampler2D _MainTex;
|
||||
float4 _MainTex_ST;
|
||||
int _linearToSrgb;
|
||||
int _premultiply;
|
||||
|
||||
v2f vert (appdata_t v)
|
||||
{
|
||||
v2f o;
|
||||
o.vertex = UnityObjectToClipPos(v.vertex);
|
||||
o.texcoord = TRANSFORM_TEX(v.texcoord, _MainTex);
|
||||
return o;
|
||||
}
|
||||
|
||||
fixed4 frag (v2f i) : COLOR
|
||||
{
|
||||
fixed4 col = tex2D(_MainTex, i.texcoord);
|
||||
if (_linearToSrgb)
|
||||
{
|
||||
float3 S1 = sqrt(col.rgb);
|
||||
float3 S2 = sqrt(S1);
|
||||
float3 S3 = sqrt(S2);
|
||||
col.rgb = 0.662002687 * S1 + 0.684122060 * S2 - 0.323583601 * S3 - 0.0225411470 * col.rgb;
|
||||
}
|
||||
|
||||
if (_premultiply)
|
||||
col.rgb *= col.a;
|
||||
|
||||
return col;
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
}
|
||||
9
Assets/Oculus/VR/Resources/Texture2D Blit.shader.meta
Normal file
9
Assets/Oculus/VR/Resources/Texture2D Blit.shader.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a31796e9e8816c7448b55d584c9417f1
|
||||
timeCreated: 1498190241
|
||||
licenseType: Pro
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
48
Assets/Oculus/VR/Resources/Underlay Impostor.shader
Normal file
48
Assets/Oculus/VR/Resources/Underlay Impostor.shader
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
This shader is used to render the impostor while clearing out the alpha of the eye buffer
|
||||
The important details here are:
|
||||
- the use of the Geometry+1 queue to make sure the impostor is drawn after all other opaque objects but before alpha
|
||||
- the keepalpha parameter that allow unity to actually write the alpha we return at the end of the shader.
|
||||
*/
|
||||
|
||||
Shader "Oculus/Underlay Impostor" {
|
||||
Properties{
|
||||
_Color("Color", Color) = (1,1,1,1)
|
||||
_MainTex("Albedo (RGB)", 2D) = "white" {}
|
||||
_Glossiness("Smoothness", Range(0,1)) = 0.5
|
||||
_Metallic("Metallic", Range(0,1)) = 0.0
|
||||
}
|
||||
SubShader{
|
||||
Tags { "Queue" = "Geometry+1" "RenderType" = "Opaque" }
|
||||
LOD 200
|
||||
|
||||
CGPROGRAM
|
||||
// Physically based Standard lighting model, and enable shadows on all light types
|
||||
#pragma surface surf Standard fullforwardshadows keepalpha
|
||||
|
||||
// Use shader model 3.0 target, to get nicer looking lighting
|
||||
#pragma target 3.0
|
||||
|
||||
sampler2D _MainTex;
|
||||
|
||||
struct Input {
|
||||
float2 uv_MainTex;
|
||||
};
|
||||
|
||||
half _Glossiness;
|
||||
half _Metallic;
|
||||
fixed4 _Color;
|
||||
|
||||
void surf(Input IN, inout SurfaceOutputStandard o) {
|
||||
// Albedo comes from a texture tinted by color
|
||||
fixed4 c = tex2D(_MainTex, IN.uv_MainTex) * _Color;
|
||||
o.Albedo = c.rgb;
|
||||
// Metallic and smoothness come from slider variables
|
||||
o.Metallic = _Metallic;
|
||||
o.Smoothness = _Glossiness;
|
||||
o.Alpha = 0.f;
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
FallBack "Diffuse"
|
||||
}
|
||||
9
Assets/Oculus/VR/Resources/Underlay Impostor.shader.meta
Normal file
9
Assets/Oculus/VR/Resources/Underlay Impostor.shader.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: eaeac9ce83896a04691d2590189776f5
|
||||
timeCreated: 1471282585
|
||||
licenseType: Pro
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
Code for transparent object in front of the overlay
|
||||
The keepalpha option is important to let unity maintain the alpha we return from the shader
|
||||
*/
|
||||
|
||||
Shader "Oculus/Underlay Transparent Occluder" {
|
||||
Properties{
|
||||
_Color("Main Color", Color) = (1,1,1,1)
|
||||
_MainTex("Base (RGB) Trans (A)", 2D) = "white" {}
|
||||
}
|
||||
SubShader{
|
||||
Tags{ "Queue" = "Transparent" "IgnoreProjector" = "True" "RenderType" = "Transparent" }
|
||||
Blend SrcAlpha OneMinusSrcAlpha
|
||||
|
||||
// extra pass that renders to depth buffer only
|
||||
Pass{
|
||||
ZWrite On
|
||||
ColorMask 0
|
||||
}
|
||||
|
||||
CGPROGRAM
|
||||
#pragma surface surf Lambert keepalpha
|
||||
fixed4 _Color;
|
||||
struct Input {
|
||||
float4 color : COLOR;
|
||||
};
|
||||
void surf(Input IN, inout SurfaceOutput o) {
|
||||
o.Albedo = _Color.rgb;
|
||||
o.Alpha = _Color.a;
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
|
||||
|
||||
Fallback "Transparent/VertexLit"
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user