├── CHANGELOG.md ├── CHANGELOG.md.meta ├── Editor.meta ├── Editor ├── Varjo.XR.Editor.asmdef ├── Varjo.XR.Editor.asmdef.meta ├── VarjoBuildProcessor.cs ├── VarjoBuildProcessor.cs.meta ├── VarjoPackageMetadata.cs ├── VarjoPackageMetadata.cs.meta ├── VarjoSettingsEditor.cs └── VarjoSettingsEditor.cs.meta ├── LICENSE.md ├── LICENSE.md.meta ├── README.md ├── README.md.meta ├── Runtime.meta ├── Runtime ├── BlendControlMask.meta ├── BlendControlMask │ ├── VarjoBlendControlMask.cs │ └── VarjoBlendControlMask.cs.meta ├── ChromaKey.meta ├── ChromaKey │ ├── VarjoChromaKey.cs │ └── VarjoChromaKey.cs.meta ├── EyeTracking.meta ├── EyeTracking │ ├── VarjoEyeTracking.cs │ ├── VarjoEyeTracking.cs.meta │ ├── VarjoHeadsetIPD.cs │ └── VarjoHeadsetIPD.cs.meta ├── Input.meta ├── Input │ ├── Configs.meta │ ├── Configs │ │ ├── actions.json │ │ ├── actions.json.meta │ │ ├── bindings_knuckles.json │ │ ├── bindings_knuckles.json.meta │ │ ├── bindings_vive_controller.json │ │ ├── bindings_vive_controller.json.meta │ │ ├── bindings_vive_tracker_camera.json │ │ ├── bindings_vive_tracker_camera.json.meta │ │ ├── bindings_vive_tracker_chest.json │ │ ├── bindings_vive_tracker_chest.json.meta │ │ ├── bindings_vive_tracker_handed.json │ │ ├── bindings_vive_tracker_handed.json.meta │ │ ├── bindings_vive_tracker_keyboard.json │ │ ├── bindings_vive_tracker_keyboard.json.meta │ │ ├── bindings_vive_tracker_left_elbow.json │ │ ├── bindings_vive_tracker_left_elbow.json.meta │ │ ├── bindings_vive_tracker_left_foot.json │ │ ├── bindings_vive_tracker_left_foot.json.meta │ │ ├── bindings_vive_tracker_left_knee.json │ │ ├── bindings_vive_tracker_left_knee.json.meta │ │ ├── bindings_vive_tracker_left_shoulder.json │ │ ├── bindings_vive_tracker_left_shoulder.json.meta │ │ ├── bindings_vive_tracker_right_elbow.json │ │ ├── bindings_vive_tracker_right_elbow.json.meta │ │ ├── bindings_vive_tracker_right_foot.json │ │ ├── bindings_vive_tracker_right_foot.json.meta │ │ ├── bindings_vive_tracker_right_knee.json │ │ ├── bindings_vive_tracker_right_knee.json.meta │ │ ├── bindings_vive_tracker_right_shoulder.json │ │ ├── bindings_vive_tracker_right_shoulder.json.meta │ │ ├── bindings_vive_tracker_waist.json │ │ └── bindings_vive_tracker_waist.json.meta │ ├── DeviceLayouts.cs │ └── DeviceLayouts.cs.meta ├── Markers.meta ├── Markers │ ├── VarjoMarkers.cs │ └── VarjoMarkers.cs.meta ├── MixedReality.meta ├── MixedReality │ ├── Resources.meta │ ├── Resources │ │ ├── Materials.meta │ │ ├── Materials │ │ │ ├── VSTBackground.mat │ │ │ └── VSTBackground.mat.meta │ │ ├── Shaders.meta │ │ └── Shaders │ │ │ ├── Undistort.shader │ │ │ ├── Undistort.shader.meta │ │ │ ├── VSTBackground.shader │ │ │ └── VSTBackground.shader.meta │ ├── Streams.meta │ ├── Streams │ │ ├── VarjoCameraMetadata.cs │ │ ├── VarjoCameraMetadata.cs.meta │ │ ├── VarjoCameraMetadataStream.cs │ │ ├── VarjoCameraMetadataStream.cs.meta │ │ ├── VarjoCubemapMetadata.cs │ │ ├── VarjoCubemapMetadata.cs.meta │ │ ├── VarjoDistortedColorStream.cs │ │ ├── VarjoDistortedColorStream.cs.meta │ │ ├── VarjoEnvironmentCubemapStream.cs │ │ ├── VarjoEnvironmentCubemapStream.cs.meta │ │ ├── VarjoFrameStream.cs │ │ ├── VarjoFrameStream.cs.meta │ │ ├── VarjoStreams.cs │ │ ├── VarjoStreams.cs.meta │ │ ├── VarjoTextureBuffer.cs │ │ └── VarjoTextureBuffer.cs.meta │ ├── VarjoCameraProperties.cs │ ├── VarjoCameraProperties.cs.meta │ ├── VarjoCpuImageAPI.cs │ ├── VarjoCpuImageAPI.cs.meta │ ├── VarjoMixedReality.cs │ └── VarjoMixedReality.cs.meta ├── Rendering.meta ├── Rendering │ ├── VarjoRendering.cs │ └── VarjoRendering.cs.meta ├── UnitySubsystemsManifest.json ├── UnitySubsystemsManifest.json.meta ├── Varjo.XR.asmdef ├── Varjo.XR.asmdef.meta ├── Varjo.cs ├── Varjo.cs.meta ├── VarjoError.cs ├── VarjoError.cs.meta ├── VarjoEventManager.cs ├── VarjoEventManager.cs.meta ├── VarjoLoader.cs ├── VarjoLoader.cs.meta ├── VarjoMathUtils.cs ├── VarjoMathUtils.cs.meta ├── VarjoSettings.cs ├── VarjoSettings.cs.meta ├── VarjoTime.cs ├── VarjoTime.cs.meta ├── Windows.meta ├── Windows │ ├── x64.meta │ └── x64 │ │ ├── VarjoLib.dll │ │ ├── VarjoLib.dll.meta │ │ ├── VarjoUnityXR.dll │ │ ├── VarjoUnityXR.dll.meta │ │ ├── openvr_api.dll │ │ └── openvr_api.dll.meta ├── XRSubsystems.meta └── XRSubsystems │ ├── VarjoCameraSubsystem.cs │ ├── VarjoCameraSubsystem.cs.meta │ ├── VarjoOcclusionSubsystem.cs │ ├── VarjoOcclusionSubsystem.cs.meta │ ├── VarjoSessionSubsystem.cs │ └── VarjoSessionSubsystem.cs.meta ├── Samples~ ├── HDRP.meta └── HDRP │ ├── ControllerInput.meta │ ├── ControllerInput │ ├── Scenes.meta │ ├── Scenes │ │ ├── ControllerInput.meta │ │ ├── ControllerInput.unity │ │ ├── ControllerInput.unity.meta │ │ ├── ControllerInput │ │ │ ├── ControllerInputScenePostProcessingSettings.asset │ │ │ ├── ControllerInputScenePostProcessingSettings.asset.meta │ │ │ ├── ControllerInputSceneSkyandFogSettings.asset │ │ │ └── ControllerInputSceneSkyandFogSettings.asset.meta │ │ ├── README.md │ │ └── README.md.meta │ ├── Scripts.meta │ └── Scripts │ │ ├── Controller.cs │ │ ├── Controller.cs.meta │ │ ├── EnableDisableControllers.cs │ │ ├── EnableDisableControllers.cs.meta │ │ ├── Hand.cs │ │ └── hand.cs.meta │ ├── EyeTracking.meta │ ├── EyeTracking │ ├── Scenes.meta │ ├── Scenes │ │ ├── EyeTracking.meta │ │ ├── EyeTracking.unity │ │ ├── EyeTracking.unity.meta │ │ ├── EyeTracking │ │ │ ├── ReflectionProbe-1.exr │ │ │ └── ReflectionProbe-1.exr.meta │ │ ├── EyeTrackingSettings.lighting │ │ ├── EyeTrackingSettings.lighting.meta │ │ ├── README.md │ │ └── README.md.meta │ ├── Scripts.meta │ └── Scripts │ │ ├── EyeTrackingExample.cs │ │ └── EyeTrackingExample.cs.meta │ ├── Markers.meta │ ├── Markers │ ├── Materials.meta │ ├── Materials │ │ ├── Blue.mat │ │ ├── Blue.mat.meta │ │ ├── Green.mat │ │ ├── Green.mat.meta │ │ ├── MarkerMaterial.mat │ │ ├── MarkerMaterial.mat.meta │ │ ├── Red.mat │ │ └── Red.mat.meta │ ├── Prefabs.meta │ ├── Prefabs │ │ ├── MarkerVisualizer.prefab │ │ └── MarkerVisualizer.prefab.meta │ ├── Scenes.meta │ ├── Scenes │ │ ├── Markers.unity │ │ ├── Markers.unity.meta │ │ ├── MarkersMasking.unity │ │ ├── MarkersMasking.unity.meta │ │ ├── MarkersSettings.lighting │ │ ├── MarkersSettings.lighting.meta │ │ ├── README.md │ │ └── README.md.meta │ ├── Scripts.meta │ └── Scripts │ │ ├── MarkerManager.cs │ │ ├── MarkerManager.cs.meta │ │ ├── MarkerMask.cs │ │ ├── MarkerMask.cs.meta │ │ ├── MarkerVisualizer.cs │ │ └── MarkerVisualizer.cs.meta │ ├── MixedReality.meta │ ├── MixedReality │ ├── Materials.meta │ ├── Materials │ │ ├── VSTMask.mat │ │ └── VSTMask.mat.meta │ ├── Scenes.meta │ ├── Scenes │ │ ├── MixedReality.meta │ │ ├── MixedReality.unity │ │ ├── MixedReality.unity.meta │ │ ├── MixedReality │ │ │ ├── Ambient Light Volume Profile.asset │ │ │ ├── Ambient Light Volume Profile.asset.meta │ │ │ ├── MixedRealityPostProcessingSettings.asset │ │ │ ├── MixedRealityPostProcessingSettings.asset.meta │ │ │ ├── MixedRealitySceneSkyandFogSettings.asset │ │ │ ├── MixedRealitySceneSkyandFogSettings.asset.meta │ │ │ ├── ReflectionProbe-1.exr │ │ │ └── ReflectionProbe-1.exr.meta │ │ ├── MixedRealityMasking.unity │ │ ├── MixedRealityMasking.unity.meta │ │ ├── README.md │ │ └── README.md.meta │ ├── Scripts.meta │ └── Scripts │ │ ├── MixedRealityExample.cs │ │ ├── MixedRealityExample.cs.meta │ │ ├── SimpleMixedRealityExample.cs │ │ ├── SimpleMixedRealityExample.cs.meta │ │ ├── ToggleMixedRealityFeatures.cs │ │ └── ToggleMixedRealityFeatures.cs.meta │ ├── Shared.meta │ └── Shared │ ├── Materials.meta │ ├── Materials │ ├── Black_Shiny.mat │ ├── Black_Shiny.mat.meta │ ├── Blue_Unlit.mat │ ├── Blue_Unlit.mat.meta │ ├── Chrome.mat │ ├── Chrome.mat.meta │ ├── CubePhysicsMaterial.physicMaterial │ ├── CubePhysicsMaterial.physicMaterial.meta │ ├── DefaultHDRISky.exr │ ├── DefaultHDRISky.exr.meta │ ├── FlatMaterial.mat │ ├── FlatMaterial.mat.meta │ ├── GazeTarget.mat │ ├── GazeTarget.mat.meta │ ├── Green_Unlit.mat │ ├── Green_Unlit.mat.meta │ ├── GroundMaterial.mat │ ├── GroundMaterial.mat.meta │ ├── Matte Material.mat │ ├── Matte Material.mat.meta │ ├── Red_Unlit.mat │ ├── Red_Unlit.mat.meta │ ├── Target.png │ ├── Target.png.meta │ ├── TeleportMaterial.mat │ ├── TeleportMaterial.mat.meta │ ├── TransparentMaterial.mat │ ├── TransparentMaterial.mat.meta │ ├── White_Shiny.mat │ ├── White_Shiny.mat.meta │ ├── White_Unlit.mat │ ├── White_Unlit.mat.meta │ ├── Yellow_Unlit.mat │ └── Yellow_Unlit.mat.meta │ ├── Models.meta │ ├── Models │ ├── Cube.meta │ ├── Cube │ │ ├── Cube_SmallBevel_Fractured.fbx │ │ ├── Cube_SmallBevel_Fractured.fbx.meta │ │ ├── Materials.meta │ │ ├── Materials │ │ │ ├── Black.mat │ │ │ ├── Black.mat.meta │ │ │ ├── Fracture_Shader.mat │ │ │ ├── Fracture_Shader.mat.meta │ │ │ ├── Varjo_Material.mat │ │ │ ├── Varjo_Material.mat.meta │ │ │ ├── Varjo_Material_BaseColor.png │ │ │ ├── Varjo_Material_BaseColor.png.meta │ │ │ ├── Varjo_Material_MaskMap.png │ │ │ ├── Varjo_Material_MaskMap.png.meta │ │ │ ├── lambert1.mat │ │ │ └── lambert1.mat.meta │ │ ├── Varjo_Cube_SmallBevel.fbx │ │ └── Varjo_Cube_SmallBevel.fbx.meta │ ├── TeleportTarget.meta │ ├── TeleportTarget │ │ ├── Materials.meta │ │ ├── Materials │ │ │ ├── Varjo_Logo_Black_mtl.mat │ │ │ └── Varjo_Logo_Black_mtl.mat.meta │ │ ├── Varjo_V.fbx │ │ ├── Varjo_V.fbx.meta │ │ ├── Varjo_V_Beveled.fbx │ │ └── Varjo_V_Beveled.fbx.meta │ ├── VarjoController.meta │ ├── VarjoController │ │ ├── Materials.meta │ │ ├── Materials │ │ │ ├── ButtonPressedMaterial.mat │ │ │ ├── ButtonPressedMaterial.mat.meta │ │ │ ├── Collider.mat │ │ │ ├── Collider.mat.meta │ │ │ ├── Controller.mat │ │ │ ├── Controller.mat.meta │ │ │ ├── ControllerMaterial.mat │ │ │ ├── ControllerMaterial.mat.meta │ │ │ ├── Controller_BaseColor.png │ │ │ ├── Controller_BaseColor.png.meta │ │ │ ├── Controller_MaskMap.png │ │ │ ├── Controller_MaskMap.png.meta │ │ │ ├── Controller_Normal.png │ │ │ ├── Controller_Normal.png.meta │ │ │ ├── TouchpadTouchMaterial.mat │ │ │ └── TouchpadTouchMaterial.mat.meta │ │ ├── VarjoController.fbx │ │ └── VarjoController.fbx.meta │ ├── Varjo_VR-1.meta │ └── Varjo_VR-1 │ │ ├── Materials.meta │ │ ├── Materials │ │ ├── VR1_HDRP_BaseMap.png │ │ ├── VR1_HDRP_BaseMap.png.meta │ │ ├── VR1_HDRP_MaskMap.png │ │ ├── VR1_HDRP_MaskMap.png.meta │ │ ├── VR1_HDRP_Normal.png │ │ ├── VR1_HDRP_Normal.png.meta │ │ ├── VR1_Material.mat │ │ └── VR1_Material.mat.meta │ │ ├── VR1_Collider 1.fbx │ │ ├── VR1_Collider 1.fbx.meta │ │ ├── VRHeadset.fbx │ │ └── VRHeadset.fbx.meta │ ├── PostProcessing.meta │ ├── PostProcessing │ ├── VSTWhiteBalance.meta │ └── VSTWhiteBalance │ │ ├── Scripts.meta │ │ ├── Scripts │ │ ├── VSTWhiteBalance.cs │ │ └── VSTWhiteBalance.cs.meta │ │ ├── Shaders.meta │ │ └── Shaders │ │ ├── VSTWhiteBalance.shader │ │ └── VSTWhiteBalance.shader.meta │ ├── Prefabs.meta │ ├── Prefabs │ ├── Controller.prefab │ ├── Controller.prefab.meta │ ├── Cube.prefab │ ├── Cube.prefab.meta │ ├── CubeMarker.prefab │ ├── CubeMarker.prefab.meta │ ├── Cube_SmallBevel_Fractured.prefab │ ├── Cube_SmallBevel_Fractured.prefab.meta │ ├── ExplosiveProjectile.prefab │ ├── ExplosiveProjectile.prefab.meta │ ├── FracturingCube.prefab │ ├── FracturingCube.prefab.meta │ ├── GazeTarget.prefab │ ├── GazeTarget.prefab.meta │ ├── Projectile.prefab │ ├── Projectile.prefab.meta │ ├── TeleportPointer.prefab │ ├── TeleportPointer.prefab.meta │ ├── VRHeadset.prefab │ ├── VRHeadset.prefab.meta │ ├── VarjoController.prefab │ ├── VarjoController.prefab.meta │ ├── VarjoCubeFreeRotation.prefab │ ├── VarjoCubeFreeRotation.prefab.meta │ ├── VarjoTeleportTarget.prefab │ ├── VarjoTeleportTarget.prefab.meta │ ├── Varjo_Cube_SmallBevel.prefab │ └── Varjo_Cube_SmallBevel.prefab.meta │ ├── Scripts.meta │ └── Scripts │ ├── ConstantRotate.cs │ ├── ConstantRotate.cs.meta │ ├── DestroyByPosition.cs │ ├── DestroyByPosition.cs.meta │ ├── Explosion.cs │ ├── Explosion.cs.meta │ ├── Fracture.cs │ ├── Fracture.cs.meta │ ├── FreeMovement.cs │ ├── FreeMovement.cs.meta │ ├── Interactable.cs │ ├── Interactable.cs.meta │ ├── QuitDemo.cs │ ├── QuitDemo.cs.meta │ ├── RotateWithGaze.cs │ ├── RotateWithGaze.cs.meta │ ├── Shoot.cs │ ├── Shoot.cs.meta │ ├── Teleporter.cs │ └── Teleporter.cs.meta ├── package.json └── package.json.meta /CHANGELOG.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f5bbbda4d076cf940896b29dde03182b 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 29b6112f9ed3cc446aabeff80efd46fc 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Editor/Varjo.XR.Editor.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Varjo.XR.Editor", 3 | "references": [ 4 | "Varjo.XR", 5 | "Unity.XR.Management.Editor", 6 | "Unity.XR.Management" 7 | ], 8 | "optionalUnityReferences": [ 9 | ], 10 | "includePlatforms": [ 11 | "Editor" 12 | ], 13 | "excludePlatforms": [], 14 | "allowUnsafeCode": false, 15 | "overrideReferences": false, 16 | "precompiledReferences": [], 17 | "autoReferenced": true, 18 | "defineConstraints": [], 19 | "versionDefines": [ 20 | { 21 | "name": "com.unity.xr.management", 22 | "expression": "3.2.0", 23 | "define": "XR_MGMT_320" 24 | } 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /Editor/Varjo.XR.Editor.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b1dac0f09d3825743b4d62de1d8ced8d 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Editor/VarjoBuildProcessor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5994029e6f228ab4084de3da13de8ab3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Editor/VarjoPackageMetadata.cs: -------------------------------------------------------------------------------- 1 | #if XR_MGMT_320 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using UnityEditor; 5 | using UnityEngine; 6 | using UnityEngine.XR.Management; 7 | using UnityEditor.XR.Management.Metadata; 8 | using Varjo.XR; 9 | 10 | class VarjoPackage : IXRPackage 11 | { 12 | private class VarjoLoaderMetadata : IXRLoaderMetadata 13 | { 14 | public string loaderName { get; set; } 15 | public string loaderType { get; set; } 16 | public List supportedBuildTargets { get; set; } 17 | } 18 | 19 | private class VarjoPackageMetadata : IXRPackageMetadata 20 | { 21 | public string packageName { get; set; } 22 | public string packageId { get; set; } 23 | public string settingsType { get; set; } 24 | public List loaderMetadata { get; set; } 25 | } 26 | 27 | private static IXRPackageMetadata s_Metadata = new VarjoPackageMetadata() 28 | { 29 | packageName = "Varjo XR Plugin", 30 | packageId = "com.varjo.xr", 31 | settingsType = "Varjo.XR.VarjoSettings", 32 | loaderMetadata = new List() { 33 | new VarjoLoaderMetadata() { 34 | loaderName = "Varjo", 35 | loaderType = "Varjo.XR.VarjoLoader", 36 | supportedBuildTargets = new List() { 37 | BuildTargetGroup.Standalone 38 | } 39 | }, 40 | } 41 | }; 42 | 43 | public IXRPackageMetadata metadata => s_Metadata; 44 | 45 | public bool PopulateNewSettingsInstance(ScriptableObject obj) 46 | { 47 | return true; 48 | } 49 | } 50 | #endif -------------------------------------------------------------------------------- /Editor/VarjoPackageMetadata.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c3675c28f6c111a43b174b95b52b4f88 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Editor/VarjoSettingsEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 16ca8866dce128e40b6bccebe3cce620 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /LICENSE.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7edcc9984d0139245950602f0e8a867a 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /README.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e8790c999884b6d4b9f75d711f7b3776 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Runtime.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6234446c9d5a56d4b8dbcabacb454ed2 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/BlendControlMask.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3c3277cf6c7fa1c49bedc8743657d416 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/BlendControlMask/VarjoBlendControlMask.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f9db97ead0babb04baecccd2e1b786c5 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/ChromaKey.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9ffef6b3065bf8547b70ece4a380526f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/ChromaKey/VarjoChromaKey.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 130fed3e0f6229b4a9b17517b623e20a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/EyeTracking.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: db6907d281fee7c44bd7d404d8b14616 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/EyeTracking/VarjoEyeTracking.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c0896a83b1db7a747837c7a8ef8a142e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/EyeTracking/VarjoHeadsetIPD.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7f0a5aa37076c514aaca6bc9d92f9aed 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Input.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ae95befb69bd06d40a988a15dbd73dcb 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Input/Configs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d0b7bf5e2814fea4f9e3421bff35805d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Input/Configs/actions.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 48c904b6f76162645b9304082799660d 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Runtime/Input/Configs/bindings_knuckles.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 09fcc0f2e313add4f930ec4c8ebb2c94 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Runtime/Input/Configs/bindings_vive_controller.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 337fad0160863104ba25bc3357eca9a2 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Runtime/Input/Configs/bindings_vive_tracker_camera.json: -------------------------------------------------------------------------------- 1 | { 2 | "action_manifest_version": 0, 3 | "alias_info": {}, 4 | "bindings": { 5 | "/actions/default": { 6 | "poses": [ 7 | { 8 | "output": "/actions/default/in/pose", 9 | "path": "/user/camera/pose/raw" 10 | } 11 | ], 12 | "sources": [ 13 | { 14 | "inputs": { 15 | "value": { 16 | "output": "/actions/default/in/grip" 17 | } 18 | }, 19 | "mode": "scalar_constant", 20 | "path": "/user/camera/input/grip" 21 | }, 22 | { 23 | "inputs": { 24 | "click": { 25 | "output": "/actions/default/in/grip_pressed" 26 | } 27 | }, 28 | "mode": "button", 29 | "path": "/user/camera/input/grip" 30 | }, 31 | { 32 | "inputs": { 33 | "click": { 34 | "output": "/actions/default/in/primary" 35 | } 36 | }, 37 | "mode": "button", 38 | "path": "/user/camera/input/application_menu" 39 | }, 40 | { 41 | "inputs": { 42 | "click": { 43 | "output": "/actions/default/in/system" 44 | } 45 | }, 46 | "mode": "button", 47 | "path": "/user/camera/input/power" 48 | }, 49 | { 50 | "inputs": { 51 | "click": { 52 | "output": "/actions/default/in/trackpad_pressed" 53 | } 54 | }, 55 | "mode": "button", 56 | "path": "/user/camera/input/thumb" 57 | }, 58 | { 59 | "inputs": { 60 | "click": { 61 | "output": "/actions/default/in/trigger_pressed" 62 | } 63 | }, 64 | "mode": "button", 65 | "path": "/user/camera/input/trigger" 66 | } 67 | ] 68 | } 69 | }, 70 | "category": "steamvr_input", 71 | "controller_type": "vive_tracker_camera", 72 | "description": "Bindings for SteamVR Trackers (Camera)", 73 | "name": "Default Bindings for SteamVR Trackers (Camera)", 74 | "options": {}, 75 | "simulated_actions": [] 76 | } 77 | -------------------------------------------------------------------------------- /Runtime/Input/Configs/bindings_vive_tracker_camera.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b69d630e2a1919c459c29c6e02e7373c 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Runtime/Input/Configs/bindings_vive_tracker_chest.json: -------------------------------------------------------------------------------- 1 | { 2 | "action_manifest_version": 0, 3 | "alias_info": {}, 4 | "bindings": { 5 | "/actions/default": { 6 | "poses": [ 7 | { 8 | "output": "/actions/default/in/pose", 9 | "path": "/user/chest/pose/raw" 10 | } 11 | ], 12 | "sources": [ 13 | { 14 | "inputs": { 15 | "value": { 16 | "output": "/actions/default/in/grip" 17 | } 18 | }, 19 | "mode": "scalar_constant", 20 | "path": "/user/chest/input/grip" 21 | }, 22 | { 23 | "inputs": { 24 | "click": { 25 | "output": "/actions/default/in/grip_pressed" 26 | } 27 | }, 28 | "mode": "button", 29 | "path": "/user/chest/input/grip" 30 | }, 31 | { 32 | "inputs": { 33 | "click": { 34 | "output": "/actions/default/in/primary" 35 | } 36 | }, 37 | "mode": "button", 38 | "path": "/user/chest/input/application_menu" 39 | }, 40 | { 41 | "inputs": { 42 | "click": { 43 | "output": "/actions/default/in/system" 44 | } 45 | }, 46 | "mode": "button", 47 | "path": "/user/chest/input/power" 48 | }, 49 | { 50 | "inputs": { 51 | "click": { 52 | "output": "/actions/default/in/trackpad_pressed" 53 | } 54 | }, 55 | "mode": "button", 56 | "path": "/user/chest/input/thumb" 57 | }, 58 | { 59 | "inputs": { 60 | "click": { 61 | "output": "/actions/default/in/trigger_pressed" 62 | } 63 | }, 64 | "mode": "button", 65 | "path": "/user/chest/input/trigger" 66 | } 67 | ] 68 | } 69 | }, 70 | "category": "steamvr_input", 71 | "controller_type": "vive_tracker_chest", 72 | "description": "Bindings for SteamVR Trackers (Chest)", 73 | "name": "Default Bindings for SteamVR Trackers (Chest)", 74 | "options": {}, 75 | "simulated_actions": [] 76 | } 77 | -------------------------------------------------------------------------------- /Runtime/Input/Configs/bindings_vive_tracker_chest.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a1461a029f18ca24fb367bba739ba6dd 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Runtime/Input/Configs/bindings_vive_tracker_handed.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 07a55289a1aaef040b654a5b93cfcf96 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Runtime/Input/Configs/bindings_vive_tracker_keyboard.json: -------------------------------------------------------------------------------- 1 | { 2 | "action_manifest_version": 0, 3 | "alias_info": {}, 4 | "bindings": { 5 | "/actions/default": { 6 | "poses": [ 7 | { 8 | "output": "/actions/default/in/pose", 9 | "path": "/user/keyboard/pose/raw" 10 | } 11 | ], 12 | "sources": [ 13 | { 14 | "inputs": { 15 | "value": { 16 | "output": "/actions/default/in/grip" 17 | } 18 | }, 19 | "mode": "scalar_constant", 20 | "path": "/user/keyboard/input/grip" 21 | }, 22 | { 23 | "inputs": { 24 | "click": { 25 | "output": "/actions/default/in/grip_pressed" 26 | } 27 | }, 28 | "mode": "button", 29 | "path": "/user/keyboard/input/grip" 30 | }, 31 | { 32 | "inputs": { 33 | "click": { 34 | "output": "/actions/default/in/primary" 35 | } 36 | }, 37 | "mode": "button", 38 | "path": "/user/keyboard/input/application_menu" 39 | }, 40 | { 41 | "inputs": { 42 | "click": { 43 | "output": "/actions/default/in/system" 44 | } 45 | }, 46 | "mode": "button", 47 | "path": "/user/keyboard/input/power" 48 | }, 49 | { 50 | "inputs": { 51 | "click": { 52 | "output": "/actions/default/in/trackpad_pressed" 53 | } 54 | }, 55 | "mode": "button", 56 | "path": "/user/keyboard/input/thumb" 57 | }, 58 | { 59 | "inputs": { 60 | "click": { 61 | "output": "/actions/default/in/trigger_pressed" 62 | } 63 | }, 64 | "mode": "button", 65 | "path": "/user/keyboard/input/trigger" 66 | } 67 | ] 68 | } 69 | }, 70 | "category": "steamvr_input", 71 | "controller_type": "vive_tracker_keyboard", 72 | "description": "Bindings for SteamVR Trackers (Keyboard)", 73 | "name": "Default Bindings for SteamVR Trackers (Keyboard)", 74 | "options": {}, 75 | "simulated_actions": [] 76 | } 77 | -------------------------------------------------------------------------------- /Runtime/Input/Configs/bindings_vive_tracker_keyboard.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f6ce791237e9ceb4e8dfce5211cda224 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Runtime/Input/Configs/bindings_vive_tracker_left_elbow.json: -------------------------------------------------------------------------------- 1 | { 2 | "action_manifest_version": 0, 3 | "alias_info": {}, 4 | "bindings": { 5 | "/actions/default": { 6 | "poses": [ 7 | { 8 | "output": "/actions/default/in/pose", 9 | "path": "/user/elbow/left/pose/raw" 10 | } 11 | ], 12 | "sources": [ 13 | { 14 | "inputs": { 15 | "value": { 16 | "output": "/actions/default/in/grip" 17 | } 18 | }, 19 | "mode": "scalar_constant", 20 | "path": "/user/elbow/left/input/grip" 21 | }, 22 | { 23 | "inputs": { 24 | "click": { 25 | "output": "/actions/default/in/grip_pressed" 26 | } 27 | }, 28 | "mode": "button", 29 | "path": "/user/elbow/left/input/grip" 30 | }, 31 | { 32 | "inputs": { 33 | "click": { 34 | "output": "/actions/default/in/primary" 35 | } 36 | }, 37 | "mode": "button", 38 | "path": "/user/elbow/left/input/application_menu" 39 | }, 40 | { 41 | "inputs": { 42 | "click": { 43 | "output": "/actions/default/in/system" 44 | } 45 | }, 46 | "mode": "button", 47 | "path": "/user/elbow/left/input/power" 48 | }, 49 | { 50 | "inputs": { 51 | "click": { 52 | "output": "/actions/default/in/trackpad_pressed" 53 | } 54 | }, 55 | "mode": "button", 56 | "path": "/user/elbow/left/input/thumb" 57 | }, 58 | { 59 | "inputs": { 60 | "click": { 61 | "output": "/actions/default/in/trigger_pressed" 62 | } 63 | }, 64 | "mode": "button", 65 | "path": "/user/elbow/left/input/trigger" 66 | } 67 | ] 68 | } 69 | }, 70 | "category": "steamvr_input", 71 | "controller_type": "vive_tracker_left_elbow", 72 | "description": "Bindings for SteamVR Trackers (Left Elbow)", 73 | "name": "Default Bindings for SteamVR Trackers (Left Elbow)", 74 | "options": {}, 75 | "simulated_actions": [] 76 | } 77 | -------------------------------------------------------------------------------- /Runtime/Input/Configs/bindings_vive_tracker_left_elbow.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ad616bec054796d47a107949971dd4ae 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Runtime/Input/Configs/bindings_vive_tracker_left_foot.json: -------------------------------------------------------------------------------- 1 | { 2 | "action_manifest_version": 0, 3 | "alias_info": {}, 4 | "bindings": { 5 | "/actions/default": { 6 | "poses": [ 7 | { 8 | "output": "/actions/default/in/pose", 9 | "path": "/user/foot/left/pose/raw" 10 | } 11 | ], 12 | "sources": [ 13 | { 14 | "inputs": { 15 | "value": { 16 | "output": "/actions/default/in/grip" 17 | } 18 | }, 19 | "mode": "scalar_constant", 20 | "path": "/user/foot/left/input/grip" 21 | }, 22 | { 23 | "inputs": { 24 | "click": { 25 | "output": "/actions/default/in/grip_pressed" 26 | } 27 | }, 28 | "mode": "button", 29 | "path": "/user/foot/left/input/grip" 30 | }, 31 | { 32 | "inputs": { 33 | "click": { 34 | "output": "/actions/default/in/primary" 35 | } 36 | }, 37 | "mode": "button", 38 | "path": "/user/foot/left/input/application_menu" 39 | }, 40 | { 41 | "inputs": { 42 | "click": { 43 | "output": "/actions/default/in/system" 44 | } 45 | }, 46 | "mode": "button", 47 | "path": "/user/foot/left/input/power" 48 | }, 49 | { 50 | "inputs": { 51 | "click": { 52 | "output": "/actions/default/in/trackpad_pressed" 53 | } 54 | }, 55 | "mode": "button", 56 | "path": "/user/foot/left/input/thumb" 57 | }, 58 | { 59 | "inputs": { 60 | "click": { 61 | "output": "/actions/default/in/trigger_pressed" 62 | } 63 | }, 64 | "mode": "button", 65 | "path": "/user/foot/left/input/trigger" 66 | } 67 | ] 68 | } 69 | }, 70 | "category": "steamvr_input", 71 | "controller_type": "vive_tracker_left_foot", 72 | "description": "Bindings for SteamVR Trackers (Left Foot)", 73 | "name": "Default Bindings for SteamVR Trackers (Left Foot)", 74 | "options": {}, 75 | "simulated_actions": [] 76 | } 77 | -------------------------------------------------------------------------------- /Runtime/Input/Configs/bindings_vive_tracker_left_foot.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 78755d902034f7648b404d73b5471b48 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Runtime/Input/Configs/bindings_vive_tracker_left_knee.json: -------------------------------------------------------------------------------- 1 | { 2 | "action_manifest_version": 0, 3 | "alias_info": {}, 4 | "bindings": { 5 | "/actions/default": { 6 | "poses": [ 7 | { 8 | "output": "/actions/default/in/pose", 9 | "path": "/user/knee/left/pose/raw" 10 | } 11 | ], 12 | "sources": [ 13 | { 14 | "inputs": { 15 | "value": { 16 | "output": "/actions/default/in/grip" 17 | } 18 | }, 19 | "mode": "scalar_constant", 20 | "path": "/user/knee/left/input/grip" 21 | }, 22 | { 23 | "inputs": { 24 | "click": { 25 | "output": "/actions/default/in/grip_pressed" 26 | } 27 | }, 28 | "mode": "button", 29 | "path": "/user/knee/left/input/grip" 30 | }, 31 | { 32 | "inputs": { 33 | "click": { 34 | "output": "/actions/default/in/primary" 35 | } 36 | }, 37 | "mode": "button", 38 | "path": "/user/knee/left/input/application_menu" 39 | }, 40 | { 41 | "inputs": { 42 | "click": { 43 | "output": "/actions/default/in/system" 44 | } 45 | }, 46 | "mode": "button", 47 | "path": "/user/knee/left/input/power" 48 | }, 49 | { 50 | "inputs": { 51 | "click": { 52 | "output": "/actions/default/in/trackpad_pressed" 53 | } 54 | }, 55 | "mode": "button", 56 | "path": "/user/knee/left/input/thumb" 57 | }, 58 | { 59 | "inputs": { 60 | "click": { 61 | "output": "/actions/default/in/trigger_pressed" 62 | } 63 | }, 64 | "mode": "button", 65 | "path": "/user/knee/left/input/trigger" 66 | } 67 | ] 68 | } 69 | }, 70 | "category": "steamvr_input", 71 | "controller_type": "vive_tracker_left_knee", 72 | "description": "Bindings for SteamVR Trackers (Left Knee)", 73 | "name": "Default Bindings for SteamVR Trackers (Left Knee)", 74 | "options": {}, 75 | "simulated_actions": [] 76 | } 77 | -------------------------------------------------------------------------------- /Runtime/Input/Configs/bindings_vive_tracker_left_knee.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 03b7406661a31b643a6688620d994447 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Runtime/Input/Configs/bindings_vive_tracker_left_shoulder.json: -------------------------------------------------------------------------------- 1 | { 2 | "action_manifest_version": 0, 3 | "alias_info": {}, 4 | "bindings": { 5 | "/actions/default": { 6 | "poses": [ 7 | { 8 | "output": "/actions/default/in/pose", 9 | "path": "/user/shoulder/left/pose/raw" 10 | } 11 | ], 12 | "sources": [ 13 | { 14 | "inputs": { 15 | "value": { 16 | "output": "/actions/default/in/grip" 17 | } 18 | }, 19 | "mode": "scalar_constant", 20 | "path": "/user/shoulder/left/input/grip" 21 | }, 22 | { 23 | "inputs": { 24 | "click": { 25 | "output": "/actions/default/in/grip_pressed" 26 | } 27 | }, 28 | "mode": "button", 29 | "path": "/user/shoulder/left/input/grip" 30 | }, 31 | { 32 | "inputs": { 33 | "click": { 34 | "output": "/actions/default/in/primary" 35 | } 36 | }, 37 | "mode": "button", 38 | "path": "/user/shoulder/left/input/application_menu" 39 | }, 40 | { 41 | "inputs": { 42 | "click": { 43 | "output": "/actions/default/in/system" 44 | } 45 | }, 46 | "mode": "button", 47 | "path": "/user/shoulder/left/input/power" 48 | }, 49 | { 50 | "inputs": { 51 | "click": { 52 | "output": "/actions/default/in/trackpad_pressed" 53 | } 54 | }, 55 | "mode": "button", 56 | "path": "/user/shoulder/left/input/thumb" 57 | }, 58 | { 59 | "inputs": { 60 | "click": { 61 | "output": "/actions/default/in/trigger_pressed" 62 | } 63 | }, 64 | "mode": "button", 65 | "path": "/user/shoulder/left/input/trigger" 66 | } 67 | ] 68 | } 69 | }, 70 | "category": "steamvr_input", 71 | "controller_type": "vive_tracker_left_shoulder", 72 | "description": "Bindings for SteamVR Trackers (Left Shoulder)", 73 | "name": "Default Bindings for SteamVR Trackers (Left Shoulder)", 74 | "options": {}, 75 | "simulated_actions": [] 76 | } 77 | -------------------------------------------------------------------------------- /Runtime/Input/Configs/bindings_vive_tracker_left_shoulder.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 70dbffdaa5dbbfc4f86e1971e2cecb3c 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Runtime/Input/Configs/bindings_vive_tracker_right_elbow.json: -------------------------------------------------------------------------------- 1 | { 2 | "action_manifest_version": 0, 3 | "alias_info": {}, 4 | "bindings": { 5 | "/actions/default": { 6 | "poses": [ 7 | { 8 | "output": "/actions/default/in/pose", 9 | "path": "/user/elbow/right/pose/raw" 10 | } 11 | ], 12 | "sources": [ 13 | { 14 | "inputs": { 15 | "value": { 16 | "output": "/actions/default/in/grip" 17 | } 18 | }, 19 | "mode": "scalar_constant", 20 | "path": "/user/elbow/right/input/grip" 21 | }, 22 | { 23 | "inputs": { 24 | "click": { 25 | "output": "/actions/default/in/grip_pressed" 26 | } 27 | }, 28 | "mode": "button", 29 | "path": "/user/elbow/right/input/grip" 30 | }, 31 | { 32 | "inputs": { 33 | "click": { 34 | "output": "/actions/default/in/primary" 35 | } 36 | }, 37 | "mode": "button", 38 | "path": "/user/elbow/right/input/application_menu" 39 | }, 40 | { 41 | "inputs": { 42 | "click": { 43 | "output": "/actions/default/in/system" 44 | } 45 | }, 46 | "mode": "button", 47 | "path": "/user/elbow/right/input/power" 48 | }, 49 | { 50 | "inputs": { 51 | "click": { 52 | "output": "/actions/default/in/trackpad_pressed" 53 | } 54 | }, 55 | "mode": "button", 56 | "path": "/user/elbow/right/input/thumb" 57 | }, 58 | { 59 | "inputs": { 60 | "click": { 61 | "output": "/actions/default/in/trigger_pressed" 62 | } 63 | }, 64 | "mode": "button", 65 | "path": "/user/elbow/right/input/trigger" 66 | } 67 | ] 68 | } 69 | }, 70 | "category": "steamvr_input", 71 | "controller_type": "vive_tracker_right_elbow", 72 | "description": "Bindings for SteamVR Trackers (Right Elbow)", 73 | "name": "Default Bindings for SteamVR Trackers (Right Elbow)", 74 | "options": {}, 75 | "simulated_actions": [] 76 | } 77 | -------------------------------------------------------------------------------- /Runtime/Input/Configs/bindings_vive_tracker_right_elbow.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: efb10272165851b45b7feb645781663c 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Runtime/Input/Configs/bindings_vive_tracker_right_foot.json: -------------------------------------------------------------------------------- 1 | { 2 | "action_manifest_version": 0, 3 | "alias_info": {}, 4 | "bindings": { 5 | "/actions/default": { 6 | "poses": [ 7 | { 8 | "output": "/actions/default/in/pose", 9 | "path": "/user/foot/right/pose/raw" 10 | } 11 | ], 12 | "sources": [ 13 | { 14 | "inputs": { 15 | "value": { 16 | "output": "/actions/default/in/grip" 17 | } 18 | }, 19 | "mode": "scalar_constant", 20 | "path": "/user/foot/right/input/grip" 21 | }, 22 | { 23 | "inputs": { 24 | "click": { 25 | "output": "/actions/default/in/grip_pressed" 26 | } 27 | }, 28 | "mode": "button", 29 | "path": "/user/foot/right/input/grip" 30 | }, 31 | { 32 | "inputs": { 33 | "click": { 34 | "output": "/actions/default/in/primary" 35 | } 36 | }, 37 | "mode": "button", 38 | "path": "/user/foot/right/input/application_menu" 39 | }, 40 | { 41 | "inputs": { 42 | "click": { 43 | "output": "/actions/default/in/system" 44 | } 45 | }, 46 | "mode": "button", 47 | "path": "/user/foot/right/input/power" 48 | }, 49 | { 50 | "inputs": { 51 | "click": { 52 | "output": "/actions/default/in/trackpad_pressed" 53 | } 54 | }, 55 | "mode": "button", 56 | "path": "/user/foot/right/input/thumb" 57 | }, 58 | { 59 | "inputs": { 60 | "click": { 61 | "output": "/actions/default/in/trigger_pressed" 62 | } 63 | }, 64 | "mode": "button", 65 | "path": "/user/foot/right/input/trigger" 66 | } 67 | ] 68 | } 69 | }, 70 | "category": "steamvr_input", 71 | "controller_type": "vive_tracker_right_foot", 72 | "description": "Bindings for SteamVR Trackers (Right Foot)", 73 | "name": "Default Bindings for SteamVR Trackers (Right Foot)", 74 | "options": {}, 75 | "simulated_actions": [] 76 | } 77 | -------------------------------------------------------------------------------- /Runtime/Input/Configs/bindings_vive_tracker_right_foot.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b398b16df1bc35d48bbc7c03ce671f6c 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Runtime/Input/Configs/bindings_vive_tracker_right_knee.json: -------------------------------------------------------------------------------- 1 | { 2 | "action_manifest_version": 0, 3 | "alias_info": {}, 4 | "bindings": { 5 | "/actions/default": { 6 | "poses": [ 7 | { 8 | "output": "/actions/default/in/pose", 9 | "path": "/user/knee/right/pose/raw" 10 | } 11 | ], 12 | "sources": [ 13 | { 14 | "inputs": { 15 | "value": { 16 | "output": "/actions/default/in/grip" 17 | } 18 | }, 19 | "mode": "scalar_constant", 20 | "path": "/user/knee/right/input/grip" 21 | }, 22 | { 23 | "inputs": { 24 | "click": { 25 | "output": "/actions/default/in/grip_pressed" 26 | } 27 | }, 28 | "mode": "button", 29 | "path": "/user/knee/right/input/grip" 30 | }, 31 | { 32 | "inputs": { 33 | "click": { 34 | "output": "/actions/default/in/primary" 35 | } 36 | }, 37 | "mode": "button", 38 | "path": "/user/knee/right/input/application_menu" 39 | }, 40 | { 41 | "inputs": { 42 | "click": { 43 | "output": "/actions/default/in/system" 44 | } 45 | }, 46 | "mode": "button", 47 | "path": "/user/knee/right/input/power" 48 | }, 49 | { 50 | "inputs": { 51 | "click": { 52 | "output": "/actions/default/in/trackpad_pressed" 53 | } 54 | }, 55 | "mode": "button", 56 | "path": "/user/knee/right/input/thumb" 57 | }, 58 | { 59 | "inputs": { 60 | "click": { 61 | "output": "/actions/default/in/trigger_pressed" 62 | } 63 | }, 64 | "mode": "button", 65 | "path": "/user/knee/right/input/trigger" 66 | } 67 | ] 68 | } 69 | }, 70 | "category": "steamvr_input", 71 | "controller_type": "vive_tracker_right_knee", 72 | "description": "Bindings for SteamVR Trackers (Right Knee)", 73 | "name": "Default Bindings for SteamVR Trackers (Right Knee)", 74 | "options": {}, 75 | "simulated_actions": [] 76 | } 77 | -------------------------------------------------------------------------------- /Runtime/Input/Configs/bindings_vive_tracker_right_knee.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 878da71f673f9d346b87084a4fc02682 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Runtime/Input/Configs/bindings_vive_tracker_right_shoulder.json: -------------------------------------------------------------------------------- 1 | { 2 | "action_manifest_version": 0, 3 | "alias_info": {}, 4 | "bindings": { 5 | "/actions/default": { 6 | "poses": [ 7 | { 8 | "output": "/actions/default/in/pose", 9 | "path": "/user/shoulder/right/pose/raw" 10 | } 11 | ], 12 | "sources": [ 13 | { 14 | "inputs": { 15 | "value": { 16 | "output": "/actions/default/in/grip" 17 | } 18 | }, 19 | "mode": "scalar_constant", 20 | "path": "/user/shoulder/right/input/grip" 21 | }, 22 | { 23 | "inputs": { 24 | "click": { 25 | "output": "/actions/default/in/grip_pressed" 26 | } 27 | }, 28 | "mode": "button", 29 | "path": "/user/shoulder/right/input/grip" 30 | }, 31 | { 32 | "inputs": { 33 | "click": { 34 | "output": "/actions/default/in/primary" 35 | } 36 | }, 37 | "mode": "button", 38 | "path": "/user/shoulder/right/input/application_menu" 39 | }, 40 | { 41 | "inputs": { 42 | "click": { 43 | "output": "/actions/default/in/system" 44 | } 45 | }, 46 | "mode": "button", 47 | "path": "/user/shoulder/right/input/power" 48 | }, 49 | { 50 | "inputs": { 51 | "click": { 52 | "output": "/actions/default/in/trackpad_pressed" 53 | } 54 | }, 55 | "mode": "button", 56 | "path": "/user/shoulder/right/input/thumb" 57 | }, 58 | { 59 | "inputs": { 60 | "click": { 61 | "output": "/actions/default/in/trigger_pressed" 62 | } 63 | }, 64 | "mode": "button", 65 | "path": "/user/shoulder/right/input/trigger" 66 | } 67 | ] 68 | } 69 | }, 70 | "category": "steamvr_input", 71 | "controller_type": "vive_tracker_right_shoulder", 72 | "description": "Bindings for SteamVR Trackers (Right Shoulder)", 73 | "name": "Default Bindings for SteamVR Trackers (Right Shoulder)", 74 | "options": {}, 75 | "simulated_actions": [] 76 | } 77 | -------------------------------------------------------------------------------- /Runtime/Input/Configs/bindings_vive_tracker_right_shoulder.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 97110cb0fc5644c4cbc5c1d7cb06d90e 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Runtime/Input/Configs/bindings_vive_tracker_waist.json: -------------------------------------------------------------------------------- 1 | { 2 | "action_manifest_version": 0, 3 | "alias_info": {}, 4 | "bindings": { 5 | "/actions/default": { 6 | "poses": [ 7 | { 8 | "output": "/actions/default/in/pose", 9 | "path": "/user/waist/pose/raw" 10 | } 11 | ], 12 | "sources": [ 13 | { 14 | "inputs": { 15 | "value": { 16 | "output": "/actions/default/in/grip" 17 | } 18 | }, 19 | "mode": "scalar_constant", 20 | "path": "/user/waist/input/grip" 21 | }, 22 | { 23 | "inputs": { 24 | "click": { 25 | "output": "/actions/default/in/grip_pressed" 26 | } 27 | }, 28 | "mode": "button", 29 | "path": "/user/waist/input/grip" 30 | }, 31 | { 32 | "inputs": { 33 | "click": { 34 | "output": "/actions/default/in/primary" 35 | } 36 | }, 37 | "mode": "button", 38 | "path": "/user/waist/input/application_menu" 39 | }, 40 | { 41 | "inputs": { 42 | "click": { 43 | "output": "/actions/default/in/system" 44 | } 45 | }, 46 | "mode": "button", 47 | "path": "/user/waist/input/power" 48 | }, 49 | { 50 | "inputs": { 51 | "click": { 52 | "output": "/actions/default/in/trackpad_pressed" 53 | } 54 | }, 55 | "mode": "button", 56 | "path": "/user/waist/input/thumb" 57 | }, 58 | { 59 | "inputs": { 60 | "click": { 61 | "output": "/actions/default/in/trigger_pressed" 62 | } 63 | }, 64 | "mode": "button", 65 | "path": "/user/waist/input/trigger" 66 | } 67 | ] 68 | } 69 | }, 70 | "category": "steamvr_input", 71 | "controller_type": "vive_tracker_waist", 72 | "description": "Bindings for SteamVR Trackers (Waist)", 73 | "name": "Default Bindings for SteamVR Trackers (Waist)", 74 | "options": {}, 75 | "simulated_actions": [] 76 | } 77 | -------------------------------------------------------------------------------- /Runtime/Input/Configs/bindings_vive_tracker_waist.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7c207df35c0aa684cb745ed125f0e5fe 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Runtime/Input/DeviceLayouts.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 118077472a478ff4c9ef043a57338e00 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Markers.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 29644dcc15caf434caf529ab75f4afb7 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Markers/VarjoMarkers.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c968af12062d9da45bcf25a93c6c5793 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/MixedReality.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9d5ef7afb9eb74d4ebf69ce9d846ed10 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/MixedReality/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f9378ff7bcb8baa47b9d55a156262947 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/MixedReality/Resources/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bbd18ed30f059e34a96489fd72ba094e 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/MixedReality/Resources/Materials/VSTBackground.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: VSTBackground 11 | m_Shader: {fileID: 4800000, guid: bf7397f3acd5090409fe7b0b82d3e7c2, type: 3} 12 | m_ShaderKeywords: 13 | m_LightmapFlags: 4 14 | m_EnableInstancingVariants: 0 15 | m_DoubleSidedGI: 0 16 | m_CustomRenderQueue: -1 17 | stringTagMap: {} 18 | disabledShaderPasses: [] 19 | m_SavedProperties: 20 | serializedVersion: 3 21 | m_TexEnvs: 22 | - _BumpMap: 23 | m_Texture: {fileID: 0} 24 | m_Scale: {x: 1, y: 1} 25 | m_Offset: {x: 0, y: 0} 26 | - _DetailAlbedoMap: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - _DetailMask: 31 | m_Texture: {fileID: 0} 32 | m_Scale: {x: 1, y: 1} 33 | m_Offset: {x: 0, y: 0} 34 | - _DetailNormalMap: 35 | m_Texture: {fileID: 0} 36 | m_Scale: {x: 1, y: 1} 37 | m_Offset: {x: 0, y: 0} 38 | - _EmissionMap: 39 | m_Texture: {fileID: 0} 40 | m_Scale: {x: 1, y: 1} 41 | m_Offset: {x: 0, y: 0} 42 | - _LeftTex: 43 | m_Texture: {fileID: 0} 44 | m_Scale: {x: 1, y: 1} 45 | m_Offset: {x: 0, y: 0} 46 | - _MainTex: 47 | m_Texture: {fileID: 0} 48 | m_Scale: {x: 1, y: 1} 49 | m_Offset: {x: 0, y: 0} 50 | - _MetallicGlossMap: 51 | m_Texture: {fileID: 0} 52 | m_Scale: {x: 1, y: 1} 53 | m_Offset: {x: 0, y: 0} 54 | - _OcclusionMap: 55 | m_Texture: {fileID: 0} 56 | m_Scale: {x: 1, y: 1} 57 | m_Offset: {x: 0, y: 0} 58 | - _ParallaxMap: 59 | m_Texture: {fileID: 0} 60 | m_Scale: {x: 1, y: 1} 61 | m_Offset: {x: 0, y: 0} 62 | - _RightTex: 63 | m_Texture: {fileID: 0} 64 | m_Scale: {x: 1, y: 1} 65 | m_Offset: {x: 0, y: 0} 66 | m_Floats: 67 | - _BumpScale: 1 68 | - _Cutoff: 0.5 69 | - _DetailNormalMapScale: 1 70 | - _DstBlend: 0 71 | - _GlossMapScale: 1 72 | - _Glossiness: 0.5 73 | - _GlossyReflections: 1 74 | - _Metallic: 0 75 | - _Mode: 0 76 | - _OcclusionStrength: 1 77 | - _Parallax: 0.02 78 | - _SmoothnessTextureChannel: 0 79 | - _SpecularHighlights: 1 80 | - _SrcBlend: 1 81 | - _UVSec: 0 82 | - _ZWrite: 1 83 | m_Colors: 84 | - _Color: {r: 1, g: 1, b: 1, a: 1} 85 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 86 | m_BuildTextureStacks: [] 87 | -------------------------------------------------------------------------------- /Runtime/MixedReality/Resources/Materials/VSTBackground.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 13c8c56046234e240be76a1effae36a5 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/MixedReality/Resources/Shaders.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4e8f7287c9f54794fad19209d3bbab11 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/MixedReality/Resources/Shaders/Undistort.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b737401ee002d5645b4096ee7664e264 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | preprocessorOverride: 0 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Runtime/MixedReality/Resources/Shaders/VSTBackground.shader: -------------------------------------------------------------------------------- 1 | Shader "Skybox/VSTBackground" 2 | { 3 | Properties 4 | { 5 | _LeftTex("Texture", 2D) = "white" {} 6 | _RightTex("Texture", 2D) = "white" {} 7 | } 8 | 9 | SubShader 10 | { 11 | Tags{"Queue" = 12 | "Background" 13 | "RenderType" = 14 | "Background" 15 | "PreviewType" = "Skybox"} Cull Off ZWrite Off 16 | 17 | CGINCLUDE 18 | #include "UnityCG.cginc" 19 | uniform float4x4 _LeftProjection; 20 | uniform float4x4 _RightProjection; 21 | 22 | uniform float _GrayScale; 23 | 24 | struct appdata_t { 25 | float4 vertex : POSITION; 26 | UNITY_VERTEX_INPUT_INSTANCE_ID 27 | }; 28 | 29 | struct v2f { 30 | float4 vertex : SV_POSITION; 31 | float4 posproj : TEXCOORD1; 32 | UNITY_VERTEX_OUTPUT_STEREO 33 | }; 34 | 35 | v2f vert(appdata_t v) 36 | { 37 | v2f o; 38 | 39 | UNITY_SETUP_INSTANCE_ID(v); 40 | UNITY_INITIALIZE_OUTPUT(v2f, o); 41 | UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o); 42 | 43 | o.posproj = mul(UNITY_MATRIX_MV, v.vertex); 44 | o.vertex = mul(UNITY_MATRIX_P, o.posproj); 45 | 46 | if (unity_StereoEyeIndex == 0) { 47 | o.posproj = mul(_LeftProjection, o.posproj); 48 | } else { 49 | o.posproj = mul(_RightProjection, o.posproj); 50 | } 51 | 52 | o.posproj = ComputeScreenPos(o.posproj); 53 | return o; 54 | } 55 | 56 | ENDCG 57 | 58 | Pass 59 | { 60 | CGPROGRAM 61 | #pragma vertex vert 62 | #pragma fragment frag 63 | #pragma target 2.0 64 | 65 | sampler2D _LeftTex; 66 | sampler2D _RightTex; 67 | 68 | half4 frag(v2f i) 69 | : SV_Target 70 | { 71 | UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX(i); 72 | 73 | i.posproj /= i.posproj.w; 74 | i.posproj.y = 1 - i.posproj.y; 75 | float4 col; 76 | if (unity_StereoEyeIndex == 0) 77 | { 78 | col = tex2Dproj(_LeftTex, i.posproj); 79 | } 80 | else 81 | { 82 | col = tex2Dproj(_RightTex, i.posproj); 83 | } 84 | 85 | return float4(col.r, lerp(col.g, col.r, _GrayScale), lerp(col.b, col.r, _GrayScale), 1); 86 | } 87 | ENDCG 88 | } 89 | } 90 | } 91 | -------------------------------------------------------------------------------- /Runtime/MixedReality/Resources/Shaders/VSTBackground.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bf7397f3acd5090409fe7b0b82d3e7c2 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | preprocessorOverride: 0 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Runtime/MixedReality/Streams.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 92d9bdd299f8af64ab28eaea857eca8b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/MixedReality/Streams/VarjoCameraMetadata.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 87c0f21e13fad1a48b2068b8a162b3af 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/MixedReality/Streams/VarjoCameraMetadataStream.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2019 Varjo Technologies Oy. All rights reserved. 2 | 3 | using System; 4 | using UnityEngine; 5 | 6 | namespace Varjo.XR 7 | { 8 | /// 9 | /// Varjo Camera Metadata Stream 10 | /// 11 | public class VarjoCameraMetadataStream : VarjoFrameStream 12 | { 13 | /// 14 | /// Varjo Camera Metadata Frame 15 | /// 16 | public class VarjoCameraMetadataFrame 17 | { 18 | /** Timestamp at end of exposure. */ 19 | public long timestamp { get; internal set; } 20 | /** Camera metadata. */ 21 | public VarjoCameraMetadata metadata { get; internal set; } 22 | } 23 | 24 | private DistortedColorFrameMetadata data; 25 | 26 | /// 27 | /// Gets latest frame from the frame stream. 28 | /// Frames update only if stream has been started. 29 | /// May be called from main thread only. 30 | /// 31 | /// Latest metadata stream frame. 32 | public VarjoCameraMetadataFrame GetFrame() 33 | { 34 | lock (mutex) 35 | { 36 | if (!hasReceivedData) return new VarjoCameraMetadataFrame(); 37 | 38 | var frame = new VarjoCameraMetadataFrame(); 39 | frame.timestamp = data.timestamp; 40 | frame.metadata = new VarjoCameraMetadata(data); 41 | 42 | hasNewFrame = false; 43 | return frame; 44 | } 45 | } 46 | 47 | internal override void NewFrameCallback(VarjoStreamFrame streamData) 48 | { 49 | lock (mutex) 50 | { 51 | Debug.Assert(streamData.type == VarjoStreamType.DistortedColor); 52 | data = streamData.metadata.distortedColorData; 53 | hasReceivedData = true; 54 | hasNewFrame = true; 55 | } 56 | } 57 | 58 | internal override VarjoStreamType StreamType { get { return VarjoStreamType.CameraMetadata; } } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /Runtime/MixedReality/Streams/VarjoCameraMetadataStream.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4398235f7d17d5b4abe1b493fdc2ec12 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/MixedReality/Streams/VarjoCubemapMetadata.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2022 Varjo Technologies Oy. All rights reserved. 2 | 3 | using System; 4 | using UnityEngine; 5 | 6 | namespace Varjo.XR 7 | { 8 | /// 9 | /// Varjo Cubemap Metadata. 10 | /// 11 | public class VarjoCubemapMetadata 12 | { 13 | /** Current environment cubemap mode. */ 14 | public VarjoEnvironmentCubemapMode mode { get; internal set; } 15 | /** White balance temperature in Kelvin degrees. */ 16 | public double whiteBalanceTemperature { get; internal set; } 17 | /** White balance normalization data. */ 18 | public VarjoWBNormalizationData wbNormalizationData { get; internal set; } 19 | 20 | /** */ 21 | public double brightnessNormalizationGain { get; internal set; } 22 | 23 | internal VarjoCubemapMetadata(VarjoEnvironmentCubemapData cubemapData) 24 | { 25 | VarjoEnvironmentCubemapData data = cubemapData; 26 | mode = data.mode; 27 | whiteBalanceTemperature = data.whiteBalanceTemperature; 28 | wbNormalizationData = new VarjoWBNormalizationData(data.wbNormalizationData); 29 | brightnessNormalizationGain = data.brightnessNormalizationGain; 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Runtime/MixedReality/Streams/VarjoCubemapMetadata.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6f68dc309f7702b42b1d21adcbd87934 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/MixedReality/Streams/VarjoDistortedColorStream.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f4177cd01c5860947bdb8621545a7515 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/MixedReality/Streams/VarjoEnvironmentCubemapStream.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 70fdaaba3ba03674ab16161ce221e404 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/MixedReality/Streams/VarjoFrameStream.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 16527ee2ff50a4549ae567b9b4b4a70f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/MixedReality/Streams/VarjoStreams.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e2735567a71e3174d982aaa0dd3dbe29 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/MixedReality/Streams/VarjoTextureBuffer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 64c77f5b0022baf4ab2294df8897b15a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/MixedReality/VarjoCameraProperties.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 03e143add1484a942869124a38b94d94 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/MixedReality/VarjoCpuImageAPI.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5a9196be2534899408ea940124d7742b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/MixedReality/VarjoMixedReality.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 06dbcd0e0905f4644a2c155fef407155 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Rendering.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 51246c750e13ffa4cb46399e4144a9c5 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Rendering/VarjoRendering.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 913e7e3a91f36874f8c34fb8e7cbf84f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/UnitySubsystemsManifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Varjo", 3 | "version": "1.0.0", 4 | "libraryName": "VarjoUnityXR", 5 | 6 | "displays": [ 7 | { 8 | "id": "VarjoDisplay", 9 | "disablesLegacyVr": true 10 | } 11 | ], 12 | "inputs": [ 13 | { 14 | "id": "VarjoInput" 15 | } 16 | ], 17 | "sessions": [ 18 | { 19 | "id": "VarjoSession" 20 | } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /Runtime/UnitySubsystemsManifest.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d9944380801c84e46ba2f58776d9e61e 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Runtime/Varjo.XR.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Varjo.XR", 3 | "rootNamespace": "", 4 | "references": [ 5 | "Unity.XR.Management", 6 | "Unity.XR.Management.Editor", 7 | "Unity.XR.ARSubsystems", 8 | "Unity.XR.ARFoundation", 9 | "Unity.InputSystem" 10 | ], 11 | "includePlatforms": [], 12 | "excludePlatforms": [], 13 | "allowUnsafeCode": true, 14 | "overrideReferences": false, 15 | "precompiledReferences": [], 16 | "autoReferenced": true, 17 | "defineConstraints": [], 18 | "versionDefines": [ 19 | { 20 | "name": "com.unity.inputsystem", 21 | "expression": "", 22 | "define": "UNITY_INPUT_SYSTEM" 23 | } 24 | ], 25 | "noEngineReferences": false 26 | } -------------------------------------------------------------------------------- /Runtime/Varjo.XR.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c4bc6ee480683d344ab65cdeb7831928 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Runtime/Varjo.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | using UnityEngine; 4 | using UnityEngine.XR.Management; 5 | using System.Runtime.InteropServices; 6 | 7 | namespace Varjo.XR 8 | { 9 | [StructLayout(LayoutKind.Sequential)] 10 | public struct VarjoVersion 11 | { 12 | public int major; 13 | public int minor; 14 | public int patch; 15 | public int build; 16 | 17 | public override string ToString() => $"{major}.{minor}.{patch}.{build}"; 18 | }; 19 | 20 | public class Varjo 21 | { 22 | /// 23 | /// Checks whether Varjo system is available. 24 | /// 25 | /// 26 | /// If returns false, it is guaranteed that the session cannot be initialized. 27 | /// If this returns true, application may try initiating a new session. 28 | /// 29 | /// False if Varjo system is not available, true if it is available. 30 | [DllImport("VarjoUnityXR", CharSet = CharSet.Auto)] 31 | public static extern bool IsVarjoSystemInstalled(); 32 | 33 | /// 34 | /// Is HMD Connected. 35 | /// 36 | /// True if connected. 37 | [DllImport("VarjoUnityXR", CharSet = CharSet.Auto)] 38 | public static extern bool IsHMDConnected(); 39 | 40 | /// 41 | /// Get Plugin Version. 42 | /// 43 | /// Plugin Version. 44 | [DllImport("VarjoUnityXR", CharSet = CharSet.Auto)] 45 | public static extern VarjoVersion GetPluginVersion(); 46 | 47 | /// 48 | /// Get Varjo Runtime Version. 49 | /// 50 | /// Runtime Version. 51 | [DllImport("VarjoUnityXR", CharSet = CharSet.Auto)] 52 | public static extern VarjoVersion GetVarjoRuntimeVersion(); 53 | 54 | /// 55 | /// Get Varjo Session. 56 | /// 57 | /// Pointer handle to Varjo session. 58 | [DllImport("VarjoUnityXR")] 59 | public static extern IntPtr GetVarjoSession(); 60 | } 61 | } -------------------------------------------------------------------------------- /Runtime/Varjo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e91ab8cbcb2a44144874debe7aedfa24 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/VarjoError.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ec3a7442526c44d9be8e1b1105f03ab8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/VarjoEventManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 780439e28b37ed945924c1284933b606 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/VarjoLoader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9ed1fb92dd674af4c8c49a92b8189b05 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/VarjoMathUtils.cs: -------------------------------------------------------------------------------- 1 | // Copyright 2021 Varjo Technologies Oy. All rights reserved. 2 | using UnityEngine; 3 | using UnityEngine.Rendering; 4 | using UnityEngine.XR.Management; 5 | using System; 6 | using System.Collections.Generic; 7 | using System.Reflection; 8 | 9 | namespace Varjo.XR 10 | { 11 | class VarjoMathUtils 12 | { 13 | private static Matrix4x4 flipYZ = new Matrix4x4( 14 | new Vector4(1, 0, 0, 0), // 15 | new Vector4(0, -1, 0, 0), // 16 | new Vector4(0, 0, -1, 0), // 17 | new Vector4(0, 0, 0, 1) // 18 | ); 19 | 20 | private static Matrix4x4 flipZ = new Matrix4x4( 21 | new Vector4(1, 0, 0, 0), // 22 | new Vector4(0, 1, 0, 0), // 23 | new Vector4(0, 0, -1, 0), // 24 | new Vector4(0, 0, 0, 1) // 25 | ); 26 | 27 | private static Matrix4x4 reverseZ = new Matrix4x4( 28 | new Vector4(1, 0, 0, 0), // 29 | new Vector4(0, 1, 0, 0), // 30 | new Vector4(0, 0, -1, 0), // 31 | new Vector4(0, 0, 1, 1) // 32 | ); 33 | 34 | public static Matrix4x4 WorldMatrixToUnity(double[] mat) 35 | { 36 | Debug.Assert(mat.Length == 16); 37 | return (flipZ * ConvertDoubleToFloatMatrix(mat) * flipZ); 38 | } 39 | 40 | public static Matrix4x4 ProjectionMatrixToUnity(double[] mat) 41 | { 42 | return reverseZ * ConvertDoubleToFloatMatrix(mat); 43 | } 44 | 45 | public static Matrix4x4 ExtrinsicsToUnity(VarjoMatrix extrinsics, VarjoMatrix streamTransform) 46 | { 47 | return flipYZ * ConvertDoubleToFloatMatrix(extrinsics.value) * flipYZ * 48 | ConvertDoubleToFloatMatrix(streamTransform.value) * flipZ; 49 | } 50 | 51 | public static Matrix4x4 GetRectificationMatrix(VarjoMatrix extrinsics) 52 | { 53 | return flipYZ * ConvertDoubleToFloatMatrixRotation(extrinsics.value).inverse * flipYZ; 54 | } 55 | 56 | private static Matrix4x4 ConvertDoubleToFloatMatrixRotation(double[] mat) 57 | { 58 | Debug.Assert(mat.Length == 16); 59 | Matrix4x4 m = new Matrix4x4(); 60 | for (int i = 0; i < 12; i++) m[i] = (float)mat[i]; 61 | m[3, 3] = 1.0f; 62 | return m; 63 | } 64 | 65 | public static Matrix4x4 ConvertDoubleToFloatMatrix(double[] mat) 66 | { 67 | Debug.Assert(mat.Length == 16); 68 | Matrix4x4 m = new Matrix4x4(); 69 | for (int i = 0; i < 16; i++) m[i] = (float)mat[i]; 70 | return m; 71 | } 72 | } 73 | } -------------------------------------------------------------------------------- /Runtime/VarjoMathUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a8434c07f44868a489807855d944a1b8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/VarjoSettings.cs: -------------------------------------------------------------------------------- 1 | 2 | // Copyright 2019 Varjo Technologies Oy. All rights reserved. 3 | 4 | using System; 5 | using UnityEngine; 6 | using UnityEngine.XR.Management; 7 | 8 | namespace Varjo.XR 9 | { 10 | [System.Serializable] 11 | [XRConfigurationData("Varjo", "Varjo.XR.Settings")] 12 | public class VarjoSettings : ScriptableObject 13 | { 14 | [SerializeField, Tooltip("Set the Stereo Rendering Method")] 15 | public VarjoStereoRenderingMode StereoRenderingMode = VarjoStereoRenderingMode.TwoPass; 16 | 17 | [SerializeField, Tooltip("Perform a separate culling pass for focus displays")] 18 | public bool SeparateCullPass = false; 19 | 20 | [SerializeField, Tooltip("Use foveated rendering")] 21 | public bool FoveatedRendering = true; 22 | 23 | [SerializeField, Tooltip("Scale factor applied to the context display resolution")] 24 | [Range(0.1f, 1.0f)] 25 | public float ContextScalingFactor = 1.0f; 26 | 27 | [SerializeField, Tooltip("Scale factor applied to the focus display resolution")] 28 | [Range(0.1f, 1.0f)] 29 | public float FocusScalingFactor = 1.0f; 30 | 31 | [SerializeField, Tooltip("The compositor should not perform alpha blending with the submitted frame")] 32 | public bool Opaque = true; 33 | 34 | [SerializeField, Tooltip("If enabled, the compositor disables warping for the layer. Use only if the camera is face-locked.")] 35 | public bool FaceLocked = false; 36 | 37 | [SerializeField, Tooltip("Flip the Y axis of the displays")] 38 | public bool FlipY = false; 39 | 40 | [SerializeField, Tooltip("Use occlusion mesh")] 41 | public bool OcclusionMesh = true; 42 | 43 | [SerializeField, Tooltip("Sessions with higher priority render on top of lower ones")] 44 | public int SessionPriority = 0; 45 | 46 | [SerializeField, Tooltip("Submit depth surfaces to the compositor")] 47 | public bool SubmitDepth = true; 48 | 49 | [SerializeField, Tooltip("Participate in depth sorting (Submit Depth should be enabled)")] 50 | public bool DepthSorting = false; 51 | 52 | [SerializeField, Tooltip("If true, the depth test range is enabled. Use Depth Test Near Z and Far Z to control the range inside which the depth test will be evaluated.")] 53 | public bool DepthTestRange = false; 54 | 55 | [SerializeField, Tooltip("Minimum depth included in the depth test range (meters)")] 56 | public double DepthTestNearZ = 0.0f; 57 | 58 | [SerializeField, Tooltip("Maximum depth included in the depth test range (meters)")] 59 | public double DepthTestFarZ = 1.0f; 60 | 61 | 62 | 63 | #if !UNITY_EDITOR 64 | public static VarjoSettings s_Settings; 65 | 66 | public void Awake() 67 | { 68 | s_Settings = this; 69 | } 70 | #endif 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /Runtime/VarjoSettings.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a9904ba1b1ccbb944b07293e121c5431 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/VarjoTime.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | using UnityEngine; 4 | using UnityEngine.XR.Management; 5 | using System.Runtime.InteropServices; 6 | 7 | namespace Varjo.XR 8 | { 9 | public class VarjoTime 10 | { 11 | /// 12 | /// Gets current Varjo system timestamp. 13 | /// 14 | /// 15 | /// Returned timestamp is from a realtime monotonic clock. Its epoch is Varjo system startup specific 16 | /// and is not affected by time-of-day settings. 17 | /// 18 | /// Nanoseconds since Varjo system epoch. 19 | public static long GetVarjoTimestamp() { return Native.GetCurrentTimestamp(); } 20 | 21 | /// 22 | /// Unix epoch constant 23 | /// 24 | private static readonly DateTime UnixEpoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); 25 | 26 | /// 27 | /// Converts Varjo system timestamp to DateTime object 28 | /// 29 | /// 30 | /// Conversion is done by running synchronization of Varjo clock with operating system's time-of-day clock. 31 | /// Note, conversion will fail if requested for a timestamp value preceding the Varjo system launch or if the 32 | /// input value is too old vs current Varjo time. Please check Varjo documentation for more information. 33 | /// When conversion fails, error is raised and handled according to settings in VarjoError class and in case 34 | /// VarjoError.ErrorHandlingMode != VarjoErrorHandlingMode.Throw null is returned. 35 | /// 36 | /// DateTime object if conversion was possible or null on failure. 37 | public static DateTime? ConvertVarjoTimestampToDateTime(long varjoTimestamp) 38 | { 39 | long nanosecondsSinceUnixEpoch = Native.ConvertVarjoTimestampToUnixTime(varjoTimestamp); 40 | if (!VarjoError.CheckError()) 41 | { 42 | return null; 43 | } 44 | 45 | return UnixEpoch.AddTicks(nanosecondsSinceUnixEpoch / 100); 46 | } 47 | 48 | /// 49 | /// Native interface functions 50 | /// 51 | private class Native 52 | { 53 | [DllImport("VarjoUnityXR")] 54 | public static extern long GetCurrentTimestamp(); 55 | 56 | [DllImport("VarjoUnityXR")] 57 | public static extern long ConvertVarjoTimestampToUnixTime(long varjoTimestamp); 58 | } 59 | } 60 | } -------------------------------------------------------------------------------- /Runtime/VarjoTime.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3435dee5684d78248b0994477f7f18ca 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Windows.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 46667ce43a1389245ac0df9e35856c62 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Windows/x64.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9cad32d21138e434397cca6e9d069cda 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Windows/x64/VarjoLib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varjocom/VarjoUnityXRPlugin/d074462f6c99b8e8bc6d83037457973496cb47d9/Runtime/Windows/x64/VarjoLib.dll -------------------------------------------------------------------------------- /Runtime/Windows/x64/VarjoLib.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b3da0e52be804dd41ace9a2503387b52 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 1 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | Any: 16 | second: 17 | enabled: 1 18 | settings: {} 19 | - first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | userData: 26 | assetBundleName: 27 | assetBundleVariant: 28 | -------------------------------------------------------------------------------- /Runtime/Windows/x64/VarjoUnityXR.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varjocom/VarjoUnityXRPlugin/d074462f6c99b8e8bc6d83037457973496cb47d9/Runtime/Windows/x64/VarjoUnityXR.dll -------------------------------------------------------------------------------- /Runtime/Windows/x64/VarjoUnityXR.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 952877ea7d96afa45a6fec97b8a92fc7 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 1 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | Any: 16 | second: 17 | enabled: 1 18 | settings: {} 19 | - first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | userData: 26 | assetBundleName: 27 | assetBundleVariant: 28 | -------------------------------------------------------------------------------- /Runtime/Windows/x64/openvr_api.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varjocom/VarjoUnityXRPlugin/d074462f6c99b8e8bc6d83037457973496cb47d9/Runtime/Windows/x64/openvr_api.dll -------------------------------------------------------------------------------- /Runtime/Windows/x64/openvr_api.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6514bd80bd38d3e47b95644c59389c18 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 1 11 | isExplicitlyReferenced: 0 12 | validateReferences: 1 13 | platformData: 14 | - first: 15 | Any: 16 | second: 17 | enabled: 1 18 | settings: {} 19 | - first: 20 | Editor: Editor 21 | second: 22 | enabled: 0 23 | settings: 24 | DefaultValueInitialized: true 25 | userData: 26 | assetBundleName: 27 | assetBundleVariant: 28 | -------------------------------------------------------------------------------- /Runtime/XRSubsystems.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8aa6425d8e535de47b76271017516f21 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/XRSubsystems/VarjoCameraSubsystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a9b44676cb5236b4dae82d544f5470ec 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/XRSubsystems/VarjoOcclusionSubsystem.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime.InteropServices; 3 | using UnityEngine.XR; 4 | using UnityEngine.XR.ARSubsystems; 5 | using UnityEngine; 6 | 7 | 8 | namespace Varjo.XR 9 | { 10 | /// 11 | /// Varjo implementation of the XROcclusionSubsystem. Do not create this directly. 12 | /// Use VarjoOcclusionSubsystemSubsystemDescriptor.Create() instead. 13 | /// See XROcclusionSubsystemDescriptor. 14 | /// 15 | public sealed class VarjoOcclusionSubsystem : XROcclusionSubsystem 16 | { 17 | public const string VarjoOcclusionID = "Varjo Occlusion"; 18 | 19 | public VarjoOcclusionSubsystem() { } 20 | 21 | [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)] 22 | static void RegisterDescriptor() 23 | { 24 | #if UNITY_6000_0_OR_NEWER 25 | XROcclusionSubsystemDescriptor.Register(new XROcclusionSubsystemDescriptor.Cinfo() 26 | #else 27 | XROcclusionSubsystem.Register(new XROcclusionSubsystemCinfo() 28 | #endif 29 | { 30 | id = VarjoOcclusionID, 31 | providerType = typeof(VarjoOcclusionProvider), 32 | subsystemTypeOverride = typeof(VarjoOcclusionSubsystem) 33 | }); 34 | } 35 | 36 | private class VarjoOcclusionProvider : Provider 37 | { 38 | public VarjoOcclusionProvider() 39 | { } 40 | 41 | 42 | public override void Start() 43 | { 44 | VarjoMixedReality.EnableDepthEstimation(); 45 | } 46 | 47 | public override void Stop() 48 | { 49 | VarjoMixedReality.DisableDepthEstimation(); 50 | } 51 | 52 | public override void Destroy() 53 | { 54 | VarjoMixedReality.DisableDepthEstimation(); 55 | } 56 | } 57 | } 58 | } -------------------------------------------------------------------------------- /Runtime/XRSubsystems/VarjoOcclusionSubsystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0a1700940c8539147bdfead6f8462be3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/XRSubsystems/VarjoSessionSubsystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d95deeaf9442d7749b00a0732ce1395c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Samples~/HDRP.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f9223bc3a15d6ec4a8100b6070fac7d3 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/ControllerInput.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7f494b273b8081949af6e24f767b5b9c 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/ControllerInput/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b92337ca7ad7c7a4dbb327fff410a64f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/ControllerInput/Scenes/ControllerInput.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 548ff5c2924d4d746aea8ba8291e0092 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/ControllerInput/Scenes/ControllerInput.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4d30f2fb9e9232a44bc654918a8e6606 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Samples~/HDRP/ControllerInput/Scenes/ControllerInput/ControllerInputScenePostProcessingSettings.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 568e15a9927bc234b8d93ed5adf9796b 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/ControllerInput/Scenes/ControllerInput/ControllerInputSceneSkyandFogSettings.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7e04c0c4477dcc0438ea6cd1f2253057 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/ControllerInput/Scenes/README.md: -------------------------------------------------------------------------------- 1 | # Controller input 2 | 3 | This scene shows how to access VR controller tracking and buttons with Controller.cs script. 4 | 5 | ## Vive controller inputs 6 | 7 | - Controller highlights pressed buttons. Touchpad is highlighted on touch. 8 | - Controller menu button activates teleporting. 9 | - Touchpad press creates a cube in front of a controller. While touchpad is held down the cube charges energy. On touchpad release cube is launched forward with charged energy. 10 | - Trigger can be used to pick up and throw items. 11 | - Grip button does not have any function in the scene but it gets highlighted if pressed. -------------------------------------------------------------------------------- /Samples~/HDRP/ControllerInput/Scenes/README.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 25d029f0eda5c3e4691d0f8b5dc1c889 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Samples~/HDRP/ControllerInput/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ee84c6a31c053944dae8f179de55ea52 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/ControllerInput/Scripts/Controller.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 28b8ff083eb83eb46a21f58a2bd933e5 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Samples~/HDRP/ControllerInput/Scripts/EnableDisableControllers.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Linq; 3 | using UnityEngine; 4 | using UnityEngine.XR; 5 | 6 | public class EnableDisableControllers : MonoBehaviour 7 | { 8 | [Header("Controllers to hide if device is not valid")] 9 | public GameObject leftController; 10 | public GameObject rightController; 11 | 12 | XRNode XRNodeLeftHand = XRNode.LeftHand; 13 | XRNode XRNodeRightHand = XRNode.RightHand; 14 | 15 | private List devices = new List(); 16 | private InputDevice device; 17 | 18 | void Update() 19 | { 20 | GetDevice(XRNodeLeftHand, leftController); 21 | GetDevice(XRNodeRightHand, rightController); 22 | } 23 | 24 | void GetDevice(XRNode Hand, GameObject controller) 25 | { 26 | InputDevices.GetDevicesAtXRNode(Hand, devices); 27 | device = devices.FirstOrDefault(); 28 | if (!device.isValid) 29 | { 30 | controller.SetActive(false); 31 | } 32 | else 33 | { 34 | controller.SetActive(true); 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /Samples~/HDRP/ControllerInput/Scripts/EnableDisableControllers.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5a7d01d86035e974d91d5c98bbfaad3f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Samples~/HDRP/ControllerInput/Scripts/hand.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4d02ada80d49bea47b667e071b969090 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Samples~/HDRP/EyeTracking.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 24fb2d6d2dab44c46b436fbdb395509e 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/EyeTracking/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c1255603197b7f0479f9a549f855b9e0 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/EyeTracking/Scenes/EyeTracking.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7fff20f0a3b7b134a9696b8236b8fcde 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/EyeTracking/Scenes/EyeTracking.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e76ac0e65ee3e5f498bb5693648bdaf6 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Samples~/HDRP/EyeTracking/Scenes/EyeTracking/ReflectionProbe-1.exr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varjocom/VarjoUnityXRPlugin/d074462f6c99b8e8bc6d83037457973496cb47d9/Samples~/HDRP/EyeTracking/Scenes/EyeTracking/ReflectionProbe-1.exr -------------------------------------------------------------------------------- /Samples~/HDRP/EyeTracking/Scenes/EyeTracking/ReflectionProbe-1.exr.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8040190058304f64f8091b3d1b6e3f45 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 11 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 0 10 | sRGBTexture: 0 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: 1 35 | aniso: 1 36 | mipBias: -100 37 | wrapU: 0 38 | wrapV: 0 39 | wrapW: 0 40 | nPOTScale: 1 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 0 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 0 53 | spriteTessellationDetail: -1 54 | textureType: 0 55 | textureShape: 2 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | applyGammaDecoding: 0 61 | platformSettings: 62 | - serializedVersion: 3 63 | buildTarget: DefaultTexturePlatform 64 | maxTextureSize: 2048 65 | resizeAlgorithm: 0 66 | textureFormat: -1 67 | textureCompression: 0 68 | compressionQuality: 50 69 | crunchedCompression: 0 70 | allowsAlphaSplitting: 0 71 | overridden: 0 72 | androidETC2FallbackOverride: 0 73 | forceMaximumCompressionQuality_BC6H_BC7: 0 74 | spriteSheet: 75 | serializedVersion: 2 76 | sprites: [] 77 | outline: [] 78 | physicsShape: [] 79 | bones: [] 80 | spriteID: 81 | internalID: 0 82 | vertices: [] 83 | indices: 84 | edges: [] 85 | weights: [] 86 | secondaryTextures: [] 87 | spritePackingTag: 88 | pSDRemoveMatte: 0 89 | pSDShowRemoveMatteOption: 0 90 | userData: 91 | assetBundleName: 92 | assetBundleVariant: 93 | -------------------------------------------------------------------------------- /Samples~/HDRP/EyeTracking/Scenes/EyeTrackingSettings.lighting: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!850595691 &4890085278179872738 4 | LightingSettings: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_Name: EyeTrackingSettings 10 | serializedVersion: 3 11 | m_GIWorkflowMode: 1 12 | m_EnableBakedLightmaps: 1 13 | m_EnableRealtimeLightmaps: 0 14 | m_RealtimeEnvironmentLighting: 1 15 | m_BounceScale: 1 16 | m_AlbedoBoost: 1 17 | m_IndirectOutputScale: 1 18 | m_UsingShadowmask: 0 19 | m_BakeBackend: 1 20 | m_LightmapMaxSize: 1024 21 | m_BakeResolution: 16 22 | m_Padding: 2 23 | m_TextureCompression: 1 24 | m_AO: 0 25 | m_AOMaxDistance: 1 26 | m_CompAOExponent: 1 27 | m_CompAOExponentDirect: 0 28 | m_ExtractAO: 0 29 | m_MixedBakeMode: 0 30 | m_LightmapsBakeMode: 1 31 | m_FilterMode: 1 32 | m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0} 33 | m_ExportTrainingData: 0 34 | m_TrainingDataDestination: TrainingData 35 | m_RealtimeResolution: 2 36 | m_ForceWhiteAlbedo: 0 37 | m_ForceUpdates: 0 38 | m_FinalGather: 0 39 | m_FinalGatherRayCount: 256 40 | m_FinalGatherFiltering: 1 41 | m_PVRCulling: 1 42 | m_PVRSampling: 1 43 | m_PVRDirectSampleCount: 32 44 | m_PVRSampleCount: 300 45 | m_PVREnvironmentSampleCount: 300 46 | m_PVREnvironmentReferencePointCount: 2048 47 | m_LightProbeSampleCountMultiplier: 4 48 | m_PVRBounces: 2 49 | m_PVRMinBounces: 2 50 | m_PVREnvironmentMIS: 1 51 | m_PVRFilteringMode: 2 52 | m_PVRDenoiserTypeDirect: 0 53 | m_PVRDenoiserTypeIndirect: 2 54 | m_PVRDenoiserTypeAO: 0 55 | m_PVRFilterTypeDirect: 0 56 | m_PVRFilterTypeIndirect: 2 57 | m_PVRFilterTypeAO: 0 58 | m_PVRFilteringGaussRadiusDirect: 1 59 | m_PVRFilteringGaussRadiusIndirect: 5 60 | m_PVRFilteringGaussRadiusAO: 2 61 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 62 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 63 | m_PVRFilteringAtrousPositionSigmaAO: 1 64 | -------------------------------------------------------------------------------- /Samples~/HDRP/EyeTracking/Scenes/EyeTrackingSettings.lighting.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a63d778f38bd5594bb6985aef4b4181b 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 4890085278179872738 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/EyeTracking/Scenes/README.md: -------------------------------------------------------------------------------- 1 | # Eye tracking example 2 | 3 | This scene shows example how to access Eye tracking functionalities with EyeTrackingExample.cs script. 4 | 5 | After gaze calibration is done, it is possible to interact with objects in the scene by looking at them. 6 | 7 | ## EyeTrackingExample 8 | 9 | - Choose calibration method and filtering mode. 10 | - Use Show fixation point to visualize fixation point in VR 11 | 12 | Use following keys: 13 | - Space key for gaze calibration. After gaze calibration is completed gaze activates items in the scene. 14 | - Return toggles visibility of the gaze target circle. 15 | - Page Up can be used to check if gaze tracking is allowed. 16 | - Page Down can be used to check gaze calibration is done. 17 | 18 | ESC quits the demo if you build the scene. 19 | -------------------------------------------------------------------------------- /Samples~/HDRP/EyeTracking/Scenes/README.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2e937ff80c78a2b4ebae1a6b037e3772 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Samples~/HDRP/EyeTracking/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c8e9151fcbab8e9499868e702dd974f8 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/EyeTracking/Scripts/EyeTrackingExample.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3381ebb3eb0b79f489a07be0efdfcd37 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Samples~/HDRP/Markers.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4620b5016eb22eb45a47a75297b6d909 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Markers/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c7a64acab341b2d44b44925f275b0897 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Markers/Materials/Blue.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e4d47dbb88caac141af5a6b18eb36561 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Markers/Materials/Green.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3db40fbe3a01b524c8f54d811b1df79a 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Markers/Materials/MarkerMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a9ebe73def9c3f84fb334998edcb5f19 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Markers/Materials/Red.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 90b31e627e0c6504ca206c78136e52dc 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Markers/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b2f7067e2bcf1c249ada52ba966f7edc 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Markers/Prefabs/MarkerVisualizer.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4a071238c196d434c83be2b485add590 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Samples~/HDRP/Markers/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e35f85d1f798a7d4391da6683a749a69 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Markers/Scenes/Markers.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ac2d79b7e66311941bae55de650cd9a2 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Samples~/HDRP/Markers/Scenes/MarkersMasking.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 301abf87684888248ae3fa970c695170 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Samples~/HDRP/Markers/Scenes/MarkersSettings.lighting: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!850595691 &4890085278179872738 4 | LightingSettings: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_Name: MarkersSettings 10 | serializedVersion: 4 11 | m_GIWorkflowMode: 1 12 | m_EnableBakedLightmaps: 1 13 | m_EnableRealtimeLightmaps: 0 14 | m_RealtimeEnvironmentLighting: 1 15 | m_BounceScale: 1 16 | m_AlbedoBoost: 1 17 | m_IndirectOutputScale: 1 18 | m_UsingShadowmask: 0 19 | m_BakeBackend: 1 20 | m_LightmapMaxSize: 1024 21 | m_BakeResolution: 16 22 | m_Padding: 2 23 | m_LightmapCompression: 3 24 | m_AO: 0 25 | m_AOMaxDistance: 1 26 | m_CompAOExponent: 1 27 | m_CompAOExponentDirect: 0 28 | m_ExtractAO: 0 29 | m_MixedBakeMode: 0 30 | m_LightmapsBakeMode: 1 31 | m_FilterMode: 1 32 | m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0} 33 | m_ExportTrainingData: 0 34 | m_TrainingDataDestination: TrainingData 35 | m_RealtimeResolution: 2 36 | m_ForceWhiteAlbedo: 0 37 | m_ForceUpdates: 0 38 | m_FinalGather: 0 39 | m_FinalGatherRayCount: 256 40 | m_FinalGatherFiltering: 1 41 | m_PVRCulling: 1 42 | m_PVRSampling: 1 43 | m_PVRDirectSampleCount: 32 44 | m_PVRSampleCount: 300 45 | m_PVREnvironmentSampleCount: 300 46 | m_PVREnvironmentReferencePointCount: 2048 47 | m_LightProbeSampleCountMultiplier: 4 48 | m_PVRBounces: 2 49 | m_PVRMinBounces: 2 50 | m_PVREnvironmentMIS: 1 51 | m_PVRFilteringMode: 2 52 | m_PVRDenoiserTypeDirect: 0 53 | m_PVRDenoiserTypeIndirect: 2 54 | m_PVRDenoiserTypeAO: 0 55 | m_PVRFilterTypeDirect: 0 56 | m_PVRFilterTypeIndirect: 2 57 | m_PVRFilterTypeAO: 0 58 | m_PVRFilteringGaussRadiusDirect: 1 59 | m_PVRFilteringGaussRadiusIndirect: 5 60 | m_PVRFilteringGaussRadiusAO: 2 61 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 62 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 63 | m_PVRFilteringAtrousPositionSigmaAO: 1 64 | m_PVRTiledBaking: 0 65 | -------------------------------------------------------------------------------- /Samples~/HDRP/Markers/Scenes/MarkersSettings.lighting.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e1741a7f194e2064ba491722bf7286e6 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 4890085278179872738 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Markers/Scenes/README.md: -------------------------------------------------------------------------------- 1 | # Markers 2 | 3 | This scene shows how to use Varjo Markers. 4 | Download Varjo Markers from https://developer.varjo.com/docs/get-started/varjo-markers 5 | Make sure you print them in the correct size. 6 | 7 | ## MarkerManager 8 | 9 | - The component creates and tracks and object on the marker position. In the example different size markers create different size object. 10 | 11 | 12 | # MarkersMasking 13 | 14 | This scene shows how to use Varjo Markers with video see-through masks. 15 | 16 | ## MarkersMask 17 | 18 | - In the MarkersMasking scene make sure you change the ID in XR Rig -> MarkerMask component to match the markers you have printed. -------------------------------------------------------------------------------- /Samples~/HDRP/Markers/Scenes/README.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d8489f59f42752843b6ce1f49555d3db 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Samples~/HDRP/Markers/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f76fec63f3f06dc4483535eea772c1bc 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Markers/Scripts/MarkerManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e8fb8dfdbfb13c24e83d992366f5bdf1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Samples~/HDRP/Markers/Scripts/MarkerMask.cs: -------------------------------------------------------------------------------- 1 |  2 | using System; 3 | using System.Collections; 4 | using System.Collections.Generic; 5 | using UnityEngine; 6 | using Varjo.XR; 7 | 8 | public class MarkerMask : MonoBehaviour 9 | { 10 | [Serializable] 11 | public struct TrackedObject 12 | { 13 | public long id; 14 | public GameObject gameObject; 15 | } 16 | 17 | // A public array for all the tracked objects 18 | public TrackedObject[] trackedObjects = new TrackedObject[1]; 19 | 20 | // A list for found markers 21 | private List markers = new List(); 22 | 23 | // A list for IDs of removed markers 24 | private List removedMarkerIds = new List(); 25 | 26 | private void OnEnable() 27 | { 28 | VarjoMarkers.EnableVarjoMarkers(true); 29 | } 30 | 31 | private void OnDisable() 32 | { 33 | VarjoMarkers.EnableVarjoMarkers(false); 34 | } 35 | 36 | void Update() 37 | { 38 | // Check if Varjo Marker tracking is enabled and functional 39 | if (VarjoMarkers.IsVarjoMarkersEnabled()) 40 | { 41 | // Get a list of markers with up-to-date data 42 | VarjoMarkers.GetVarjoMarkers(out markers); 43 | 44 | // Loop through found markers and update gameobjects matching the marker ID in the array 45 | foreach (var marker in markers) 46 | { 47 | for (var i = 0; i < trackedObjects.Length; i++) 48 | { 49 | if (trackedObjects[i].id == marker.id) 50 | { 51 | // This simple marker manager controls only visibility and pose of the GameObjects 52 | trackedObjects[i].gameObject.SetActive(true); 53 | trackedObjects[i].gameObject.transform.localPosition = marker.pose.position; 54 | trackedObjects[i].gameObject.transform.localRotation = marker.pose.rotation; 55 | } 56 | } 57 | } 58 | 59 | // Get a list of IDs of removed markers 60 | VarjoMarkers.GetRemovedVarjoMarkerIds(out removedMarkerIds); 61 | 62 | // Loop through removed marker IDs and deactivate gameobjects matching the marker IDs in the array 63 | foreach (var id in removedMarkerIds) 64 | { 65 | for (var i = 0; i < trackedObjects.Length; i++) 66 | { 67 | if (trackedObjects[i].id == id) 68 | { 69 | trackedObjects[i].gameObject.SetActive(false); 70 | } 71 | } 72 | } 73 | } 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /Samples~/HDRP/Markers/Scripts/MarkerMask.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8dbde8bceed09e942b19ad0530f55010 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Samples~/HDRP/Markers/Scripts/MarkerVisualizer.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using UnityEngine; 5 | using Varjo.XR; 6 | 7 | public class MarkerVisualizer : MonoBehaviour 8 | { 9 | public TextMesh idText; 10 | 11 | public void SetMarkerData(VarjoMarker marker) 12 | { 13 | transform.localPosition = marker.pose.position; 14 | transform.localRotation = marker.pose.rotation; 15 | transform.localScale = new Vector3(marker.size.x, marker.size.x, marker.size.z); 16 | idText.text = marker.id.ToString(); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Samples~/HDRP/Markers/Scripts/MarkerVisualizer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eea44adc20723e541b12b07693646e2a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Samples~/HDRP/MixedReality.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3958b42f0736bc64db98117396b75ffc 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/MixedReality/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 49c4d42354352a341952bde6eac4d026 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/MixedReality/Materials/VSTMask.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 178e480aa313c554bb69760436bee2d9 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/MixedReality/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 20c9528e99d912243bdd4a87f42a2cc0 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/MixedReality/Scenes/MixedReality.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 423d80a13e8d6f146948a72119df2832 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/MixedReality/Scenes/MixedReality.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9ed11a5410e34cf4a8b16ebc69c13ffc 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Samples~/HDRP/MixedReality/Scenes/MixedReality/Ambient Light Volume Profile.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &-1271286930544658510 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 3 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: f034cba68ab55e046ae1445a42f18c0e, type: 3} 13 | m_Name: IndirectLightingController 14 | m_EditorClassIdentifier: 15 | active: 1 16 | m_AdvancedMode: 0 17 | indirectSpecularIntensity: 18 | m_OverrideState: 1 19 | m_Value: 8 20 | min: 0 21 | indirectDiffuseIntensity: 22 | m_OverrideState: 1 23 | m_Value: 8 24 | min: 0 25 | --- !u!114 &11400000 26 | MonoBehaviour: 27 | m_ObjectHideFlags: 0 28 | m_CorrespondingSourceObject: {fileID: 0} 29 | m_PrefabInstance: {fileID: 0} 30 | m_PrefabAsset: {fileID: 0} 31 | m_GameObject: {fileID: 0} 32 | m_Enabled: 1 33 | m_EditorHideFlags: 0 34 | m_Script: {fileID: 11500000, guid: d7fd9488000d3734a9e00ee676215985, type: 3} 35 | m_Name: Ambient Light Volume Profile 36 | m_EditorClassIdentifier: 37 | components: 38 | - {fileID: -1271286930544658510} 39 | -------------------------------------------------------------------------------- /Samples~/HDRP/MixedReality/Scenes/MixedReality/Ambient Light Volume Profile.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 553ea446c618da745b10a1bdb899ff96 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/MixedReality/Scenes/MixedReality/MixedRealityPostProcessingSettings.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b9fc1b0365bc88e40b2900cc175368b9 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/MixedReality/Scenes/MixedReality/MixedRealitySceneSkyandFogSettings.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9cd308ecd106c404cb1cf979b2106568 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/MixedReality/Scenes/MixedReality/ReflectionProbe-1.exr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varjocom/VarjoUnityXRPlugin/d074462f6c99b8e8bc6d83037457973496cb47d9/Samples~/HDRP/MixedReality/Scenes/MixedReality/ReflectionProbe-1.exr -------------------------------------------------------------------------------- /Samples~/HDRP/MixedReality/Scenes/MixedReality/ReflectionProbe-1.exr.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1d154ec88c52bb643b2e5450f0615a53 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 11 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 0 10 | sRGBTexture: 0 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: 1 35 | aniso: 1 36 | mipBias: -100 37 | wrapU: 0 38 | wrapV: 0 39 | wrapW: 0 40 | nPOTScale: 1 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 0 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 0 53 | spriteTessellationDetail: -1 54 | textureType: 0 55 | textureShape: 2 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | applyGammaDecoding: 0 61 | platformSettings: 62 | - serializedVersion: 3 63 | buildTarget: DefaultTexturePlatform 64 | maxTextureSize: 2048 65 | resizeAlgorithm: 0 66 | textureFormat: -1 67 | textureCompression: 0 68 | compressionQuality: 50 69 | crunchedCompression: 0 70 | allowsAlphaSplitting: 0 71 | overridden: 0 72 | androidETC2FallbackOverride: 0 73 | forceMaximumCompressionQuality_BC6H_BC7: 0 74 | spriteSheet: 75 | serializedVersion: 2 76 | sprites: [] 77 | outline: [] 78 | physicsShape: [] 79 | bones: [] 80 | spriteID: 81 | internalID: 0 82 | vertices: [] 83 | indices: 84 | edges: [] 85 | weights: [] 86 | secondaryTextures: [] 87 | spritePackingTag: 88 | pSDRemoveMatte: 0 89 | pSDShowRemoveMatteOption: 0 90 | userData: 91 | assetBundleName: 92 | assetBundleVariant: 93 | -------------------------------------------------------------------------------- /Samples~/HDRP/MixedReality/Scenes/MixedRealityMasking.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f9b259fc0bea2bf489035c59562fd7e8 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Samples~/HDRP/MixedReality/Scenes/README.md: -------------------------------------------------------------------------------- 1 | # Mixed reality 2 | 3 | This example shows how to use mixed reality features and real world reflections and lighting for virtual content. 4 | In Post Process Volume there is VST white balance override that matches the exposure intensity to match exposure used by VST cameras. This makes the scene look more natural. 5 | 6 | Note: To make the custom post process effect work, you have to enable it in Project Settings -> Graphics ->HDRP Global Settings -> Custom Post Process Orders -> After Post Process. 7 | 8 | When real world reflections are enabled (3) the chrome sphere shows how much of the real world environment cube is captured. By looking around you can fill the missing parts. 9 | 10 | ## Mixed reality features 11 | 12 | Use following keys: 13 | 1 - Toggles between VR and MR. 14 | 2 - Enables depth estimation to allow hands visibility in mixed reality. 15 | 3 - Enables real world reflections. 16 | 4 - Toggles between eyes position. In mixed reality the virtual cameras should be in slightly in different position because the VST cameras are in front of the headset. 17 | 5 - Toggles scene light on/off. When you use real world reflections your scene light may come from different direction that is real world light direction. 18 | 19 | 20 | # Mixed reality masking 21 | 22 | This example shows how to use masking to create a window into the real world from the virtual environment. 23 | 24 | ## SimpleMixedRealityExample 25 | 26 | Use following keys: 27 | Space - Toggle video see-through on/off 28 | 29 | 30 | ESC quits demo if you build the scene. -------------------------------------------------------------------------------- /Samples~/HDRP/MixedReality/Scenes/README.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 534bbe101412bff4a987924f5156007c 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Samples~/HDRP/MixedReality/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0c2611473f6b02d499d6e308d53f7484 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/MixedReality/Scripts/MixedRealityExample.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f709947e4aa27fe489b5d8f8189eff9b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Samples~/HDRP/MixedReality/Scripts/SimpleMixedRealityExample.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using Varjo.XR; 3 | 4 | public class SimpleMixedRealityExample : MonoBehaviour 5 | { 6 | public bool mixedReality; 7 | public KeyCode MixedRealityToggle = KeyCode.Space; 8 | 9 | private bool mixedRealityEnabled = false; 10 | private bool originalOpaqueValue; 11 | 12 | void Start() 13 | { 14 | if (mixedReality) 15 | { 16 | VarjoMixedReality.StartRender(); 17 | mixedRealityEnabled = true; 18 | originalOpaqueValue = VarjoRendering.GetOpaque(); 19 | VarjoRendering.SetOpaque(false); 20 | } 21 | } 22 | 23 | void Update() 24 | { 25 | if (Input.GetKeyDown(MixedRealityToggle)) 26 | { 27 | mixedReality = !mixedReality; 28 | } 29 | 30 | if (mixedReality != mixedRealityEnabled) 31 | { 32 | if (mixedReality) 33 | { 34 | VarjoMixedReality.StartRender(); 35 | originalOpaqueValue = VarjoRendering.GetOpaque(); 36 | VarjoRendering.SetOpaque(false); 37 | } 38 | else 39 | { 40 | VarjoMixedReality.StopRender(); 41 | VarjoRendering.SetOpaque(originalOpaqueValue); 42 | } 43 | 44 | mixedRealityEnabled = mixedReality; 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /Samples~/HDRP/MixedReality/Scripts/SimpleMixedRealityExample.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 106ccd4e8f94a2c42bc7195c2dacb52d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Samples~/HDRP/MixedReality/Scripts/ToggleMixedRealityFeatures.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | public class ToggleMixedRealityFeatures : MonoBehaviour 4 | { 5 | public MixedRealityExample mrExample; 6 | 7 | [Header("MR feature toggle keys")] 8 | public KeyCode MRToggleKey = KeyCode.Alpha1; 9 | public KeyCode depthEstimationToggleKey = KeyCode.Alpha2; 10 | public KeyCode reflectionToggleKey = KeyCode.Alpha3; 11 | public KeyCode VREyeOffsetToggleKey = KeyCode.Alpha4; 12 | public KeyCode DirectionalLightToggleKey = KeyCode.Alpha5; 13 | public GameObject directionalLight; 14 | 15 | 16 | 17 | void Start() 18 | { 19 | if (!mrExample) 20 | { 21 | enabled = false; 22 | } 23 | } 24 | 25 | 26 | void Update() 27 | { 28 | if (Input.anyKeyDown) 29 | { 30 | if (Input.GetKeyDown(MRToggleKey)) 31 | { 32 | mrExample.videoSeeThrough = !mrExample.videoSeeThrough; 33 | } 34 | if (Input.GetKeyDown(depthEstimationToggleKey)) 35 | { 36 | mrExample.depthEstimation = !mrExample.depthEstimation; 37 | } 38 | if (Input.GetKeyDown(reflectionToggleKey)) 39 | { 40 | mrExample.environmentReflections = !mrExample.environmentReflections; 41 | } 42 | if (Input.GetKeyDown(VREyeOffsetToggleKey)) 43 | { 44 | if (mrExample.VREyeOffset == 0f) 45 | { 46 | mrExample.VREyeOffset = 1.0f; 47 | } 48 | else 49 | { 50 | mrExample.VREyeOffset = 0f; 51 | } 52 | } 53 | 54 | if (Input.GetKeyDown(DirectionalLightToggleKey)) 55 | { 56 | directionalLight.SetActive(!directionalLight.activeSelf); 57 | } 58 | } 59 | } 60 | } -------------------------------------------------------------------------------- /Samples~/HDRP/MixedReality/Scripts/ToggleMixedRealityFeatures.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2131245f5dd916e459896ad4ed5418ea 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 94c9fc2320740a34fb95b5836a85249e 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5e7dd81426c02b34bbc5a491e856f138 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Materials/Black_Shiny.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 865a5d33e2b2eeb4b85ed889b5857994 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Materials/Blue_Unlit.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 56959e7d9407ace49bfe6f396027803b 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Materials/Chrome.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b5c2e68acdcc6b54abfbe80849b959be 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Materials/CubePhysicsMaterial.physicMaterial: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!134 &13400000 4 | PhysicMaterial: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_Name: CubePhysicsMaterial 10 | dynamicFriction: 1 11 | staticFriction: 1 12 | bounciness: 0 13 | frictionCombine: 2 14 | bounceCombine: 1 15 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Materials/CubePhysicsMaterial.physicMaterial.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 80db55f78bd13a34e9822ef8dca5f47f 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Materials/DefaultHDRISky.exr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varjocom/VarjoUnityXRPlugin/d074462f6c99b8e8bc6d83037457973496cb47d9/Samples~/HDRP/Shared/Materials/DefaultHDRISky.exr -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Materials/DefaultHDRISky.exr.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1c03f883dd6879442b66f83430ea610b 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 10 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: -1 35 | aniso: -1 36 | mipBias: -100 37 | wrapU: -1 38 | wrapV: -1 39 | wrapW: -1 40 | nPOTScale: 1 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 0 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 0 53 | spriteTessellationDetail: -1 54 | textureType: 0 55 | textureShape: 2 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | platformSettings: 61 | - serializedVersion: 3 62 | buildTarget: DefaultTexturePlatform 63 | maxTextureSize: 2048 64 | resizeAlgorithm: 0 65 | textureFormat: -1 66 | textureCompression: 1 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | androidETC2FallbackOverride: 0 72 | forceMaximumCompressionQuality_BC6H_BC7: 0 73 | - serializedVersion: 3 74 | buildTarget: Standalone 75 | maxTextureSize: 2048 76 | resizeAlgorithm: 0 77 | textureFormat: -1 78 | textureCompression: 1 79 | compressionQuality: 50 80 | crunchedCompression: 0 81 | allowsAlphaSplitting: 0 82 | overridden: 0 83 | androidETC2FallbackOverride: 0 84 | forceMaximumCompressionQuality_BC6H_BC7: 0 85 | spriteSheet: 86 | serializedVersion: 2 87 | sprites: [] 88 | outline: [] 89 | physicsShape: [] 90 | bones: [] 91 | spriteID: 92 | internalID: 0 93 | vertices: [] 94 | indices: 95 | edges: [] 96 | weights: [] 97 | secondaryTextures: [] 98 | spritePackingTag: 99 | pSDRemoveMatte: 0 100 | pSDShowRemoveMatteOption: 0 101 | userData: 102 | assetBundleName: 103 | assetBundleVariant: 104 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Materials/FlatMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4c2f562c660276d4ebe2968ee8cf1654 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Materials/GazeTarget.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0463fc440f1355741863288cb725bf58 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Materials/Green_Unlit.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0f8890259197c0d48ad73a098928b9f6 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Materials/GroundMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8a2e8fbd286a36f46bb9e715e9b3a5e6 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Materials/Matte Material.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8b34afb7e5f2e3c48b707e710092530e 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Materials/Red_Unlit.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c6c98a61711950b478b4b229d09cd762 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Materials/Target.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varjocom/VarjoUnityXRPlugin/d074462f6c99b8e8bc6d83037457973496cb47d9/Samples~/HDRP/Shared/Materials/Target.png -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Materials/Target.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4d079ab7c86d7e640b13a3a057c48f4f 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 11 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: 2 35 | aniso: 16 36 | mipBias: -100 37 | wrapU: -1 38 | wrapV: -1 39 | wrapW: -1 40 | nPOTScale: 1 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 0 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 1 53 | spriteTessellationDetail: -1 54 | textureType: 0 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | applyGammaDecoding: 0 61 | platformSettings: 62 | - serializedVersion: 3 63 | buildTarget: DefaultTexturePlatform 64 | maxTextureSize: 2048 65 | resizeAlgorithm: 0 66 | textureFormat: -1 67 | textureCompression: 2 68 | compressionQuality: 50 69 | crunchedCompression: 0 70 | allowsAlphaSplitting: 0 71 | overridden: 0 72 | androidETC2FallbackOverride: 0 73 | forceMaximumCompressionQuality_BC6H_BC7: 0 74 | - serializedVersion: 3 75 | buildTarget: Standalone 76 | maxTextureSize: 2048 77 | resizeAlgorithm: 0 78 | textureFormat: -1 79 | textureCompression: 2 80 | compressionQuality: 50 81 | crunchedCompression: 0 82 | allowsAlphaSplitting: 0 83 | overridden: 0 84 | androidETC2FallbackOverride: 0 85 | forceMaximumCompressionQuality_BC6H_BC7: 0 86 | - serializedVersion: 3 87 | buildTarget: Android 88 | maxTextureSize: 2048 89 | resizeAlgorithm: 0 90 | textureFormat: -1 91 | textureCompression: 2 92 | compressionQuality: 50 93 | crunchedCompression: 0 94 | allowsAlphaSplitting: 0 95 | overridden: 0 96 | androidETC2FallbackOverride: 0 97 | forceMaximumCompressionQuality_BC6H_BC7: 0 98 | spriteSheet: 99 | serializedVersion: 2 100 | sprites: [] 101 | outline: [] 102 | physicsShape: [] 103 | bones: [] 104 | spriteID: 105 | internalID: 0 106 | vertices: [] 107 | indices: 108 | edges: [] 109 | weights: [] 110 | secondaryTextures: [] 111 | spritePackingTag: 112 | pSDRemoveMatte: 0 113 | pSDShowRemoveMatteOption: 0 114 | userData: 115 | assetBundleName: 116 | assetBundleVariant: 117 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Materials/TeleportMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 59de7b533327b914895e0660a4c6a262 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Materials/TransparentMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cf3fa869909a58647b29ed902753514e 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Materials/White_Shiny.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5e86ac84dd1a2274ea5bef9b784e42be 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Materials/White_Unlit.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 75b2b46171326f444a7cf512a7d5cbbf 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Materials/Yellow_Unlit.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 82d875df2409de54c862371a66713227 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2459c87a639bd444c8e20e8f2b3d4dd6 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/Cube.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a65c867d97c95f94b9a5385f6d2a41af 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/Cube/Cube_SmallBevel_Fractured.fbx.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e779d959ce765674bb0f58ca96e49deb 3 | ModelImporter: 4 | serializedVersion: 19300 5 | internalIDToNameTable: [] 6 | externalObjects: {} 7 | materials: 8 | materialImportMode: 1 9 | materialName: 0 10 | materialSearch: 1 11 | materialLocation: 0 12 | animations: 13 | legacyGenerateAnimations: 4 14 | bakeSimulation: 0 15 | resampleCurves: 1 16 | optimizeGameObjects: 0 17 | motionNodeName: 18 | rigImportErrors: 19 | rigImportWarnings: 20 | animationImportErrors: 21 | animationImportWarnings: 22 | animationRetargetingWarnings: 23 | animationDoRetargetingWarnings: 0 24 | importAnimatedCustomProperties: 0 25 | importConstraints: 0 26 | animationCompression: 1 27 | animationRotationError: 0.5 28 | animationPositionError: 0.5 29 | animationScaleError: 0.5 30 | animationWrapMode: 0 31 | extraExposedTransformPaths: [] 32 | extraUserProperties: [] 33 | clipAnimations: [] 34 | isReadable: 0 35 | meshes: 36 | lODScreenPercentages: [] 37 | globalScale: 1 38 | meshCompression: 0 39 | addColliders: 0 40 | useSRGBMaterialColor: 1 41 | sortHierarchyByName: 1 42 | importVisibility: 0 43 | importBlendShapes: 0 44 | importCameras: 0 45 | importLights: 0 46 | swapUVChannels: 0 47 | generateSecondaryUV: 0 48 | useFileUnits: 1 49 | keepQuads: 0 50 | weldVertices: 1 51 | preserveHierarchy: 0 52 | skinWeightsMode: 0 53 | maxBonesPerVertex: 4 54 | minBoneWeight: 0.001 55 | meshOptimizationFlags: -1 56 | indexFormat: 0 57 | secondaryUVAngleDistortion: 8 58 | secondaryUVAreaDistortion: 15.000001 59 | secondaryUVHardAngle: 88 60 | secondaryUVPackMargin: 4 61 | useFileScale: 1 62 | tangentSpace: 63 | normalSmoothAngle: 60 64 | normalImportMode: 0 65 | tangentImportMode: 3 66 | normalCalculationMode: 4 67 | legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0 68 | blendShapeNormalImportMode: 1 69 | normalSmoothingSource: 0 70 | referencedClips: [] 71 | importAnimation: 0 72 | humanDescription: 73 | serializedVersion: 3 74 | human: [] 75 | skeleton: [] 76 | armTwist: 0.5 77 | foreArmTwist: 0.5 78 | upperLegTwist: 0.5 79 | legTwist: 0.5 80 | armStretch: 0.05 81 | legStretch: 0.05 82 | feetSpacing: 0 83 | globalScale: 1 84 | rootMotionBoneName: 85 | hasTranslationDoF: 0 86 | hasExtraRoot: 0 87 | skeletonHasParents: 1 88 | lastHumanDescriptionAvatarSource: {instanceID: 0} 89 | autoGenerateAvatarMappingIfUnspecified: 1 90 | animationType: 0 91 | humanoidOversampling: 1 92 | avatarSetup: 0 93 | additionalBone: 0 94 | userData: 95 | assetBundleName: 96 | assetBundleVariant: 97 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/Cube/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6813a69e19d55504fafe1181233b17fa 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/Cube/Materials/Black.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 07947e06b730f4c419e7c14a6162d25d 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/Cube/Materials/Fracture_Shader.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f9554e5cf1e143e4eb7e221113f13648 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/Cube/Materials/Varjo_Material.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5d92c5b6d0fe6bd468b15e6a189dee72 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/Cube/Materials/Varjo_Material_BaseColor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varjocom/VarjoUnityXRPlugin/d074462f6c99b8e8bc6d83037457973496cb47d9/Samples~/HDRP/Shared/Models/Cube/Materials/Varjo_Material_BaseColor.png -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/Cube/Materials/Varjo_Material_MaskMap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varjocom/VarjoUnityXRPlugin/d074462f6c99b8e8bc6d83037457973496cb47d9/Samples~/HDRP/Shared/Models/Cube/Materials/Varjo_Material_MaskMap.png -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/Cube/Materials/lambert1.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fa6896e4164d2dd45b1904e4a1d4f64c 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/Cube/Varjo_Cube_SmallBevel.fbx.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4989fd7d1f01ff944b46f38addc19ddf 3 | ModelImporter: 4 | serializedVersion: 19300 5 | internalIDToNameTable: [] 6 | externalObjects: {} 7 | materials: 8 | materialImportMode: 1 9 | materialName: 0 10 | materialSearch: 1 11 | materialLocation: 0 12 | animations: 13 | legacyGenerateAnimations: 4 14 | bakeSimulation: 0 15 | resampleCurves: 1 16 | optimizeGameObjects: 0 17 | motionNodeName: 18 | rigImportErrors: 19 | rigImportWarnings: 20 | animationImportErrors: 21 | animationImportWarnings: 22 | animationRetargetingWarnings: 23 | animationDoRetargetingWarnings: 0 24 | importAnimatedCustomProperties: 0 25 | importConstraints: 0 26 | animationCompression: 1 27 | animationRotationError: 0.5 28 | animationPositionError: 0.5 29 | animationScaleError: 0.5 30 | animationWrapMode: 0 31 | extraExposedTransformPaths: [] 32 | extraUserProperties: [] 33 | clipAnimations: [] 34 | isReadable: 0 35 | meshes: 36 | lODScreenPercentages: [] 37 | globalScale: 1 38 | meshCompression: 0 39 | addColliders: 0 40 | useSRGBMaterialColor: 1 41 | sortHierarchyByName: 1 42 | importVisibility: 0 43 | importBlendShapes: 0 44 | importCameras: 0 45 | importLights: 0 46 | swapUVChannels: 0 47 | generateSecondaryUV: 0 48 | useFileUnits: 1 49 | keepQuads: 0 50 | weldVertices: 1 51 | preserveHierarchy: 0 52 | skinWeightsMode: 0 53 | maxBonesPerVertex: 4 54 | minBoneWeight: 0.001 55 | meshOptimizationFlags: -1 56 | indexFormat: 0 57 | secondaryUVAngleDistortion: 8 58 | secondaryUVAreaDistortion: 15.000001 59 | secondaryUVHardAngle: 88 60 | secondaryUVPackMargin: 4 61 | useFileScale: 1 62 | tangentSpace: 63 | normalSmoothAngle: 60 64 | normalImportMode: 0 65 | tangentImportMode: 3 66 | normalCalculationMode: 4 67 | legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0 68 | blendShapeNormalImportMode: 1 69 | normalSmoothingSource: 0 70 | referencedClips: [] 71 | importAnimation: 0 72 | humanDescription: 73 | serializedVersion: 3 74 | human: [] 75 | skeleton: [] 76 | armTwist: 0.5 77 | foreArmTwist: 0.5 78 | upperLegTwist: 0.5 79 | legTwist: 0.5 80 | armStretch: 0.05 81 | legStretch: 0.05 82 | feetSpacing: 0 83 | globalScale: 1 84 | rootMotionBoneName: 85 | hasTranslationDoF: 0 86 | hasExtraRoot: 0 87 | skeletonHasParents: 1 88 | lastHumanDescriptionAvatarSource: {instanceID: 0} 89 | autoGenerateAvatarMappingIfUnspecified: 1 90 | animationType: 0 91 | humanoidOversampling: 1 92 | avatarSetup: 0 93 | additionalBone: 0 94 | userData: 95 | assetBundleName: 96 | assetBundleVariant: 97 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/TeleportTarget.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3de5566192c08d24e83c3eec5b7c7eb7 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/TeleportTarget/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 520adfddd7ec66942963ea19f54b65a6 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/TeleportTarget/Materials/Varjo_Logo_Black_mtl.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c758e84959c0367499e72aa1ca780c08 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/TeleportTarget/Varjo_V.fbx.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6b118251c29b4ca4f9991e4e10bd616c 3 | ModelImporter: 4 | serializedVersion: 19300 5 | internalIDToNameTable: [] 6 | externalObjects: {} 7 | materials: 8 | materialImportMode: 1 9 | materialName: 0 10 | materialSearch: 1 11 | materialLocation: 0 12 | animations: 13 | legacyGenerateAnimations: 4 14 | bakeSimulation: 0 15 | resampleCurves: 1 16 | optimizeGameObjects: 0 17 | motionNodeName: 18 | rigImportErrors: 19 | rigImportWarnings: 20 | animationImportErrors: 21 | animationImportWarnings: 22 | animationRetargetingWarnings: 23 | animationDoRetargetingWarnings: 0 24 | importAnimatedCustomProperties: 0 25 | importConstraints: 0 26 | animationCompression: 1 27 | animationRotationError: 0.5 28 | animationPositionError: 0.5 29 | animationScaleError: 0.5 30 | animationWrapMode: 0 31 | extraExposedTransformPaths: [] 32 | extraUserProperties: [] 33 | clipAnimations: [] 34 | isReadable: 0 35 | meshes: 36 | lODScreenPercentages: [] 37 | globalScale: 1 38 | meshCompression: 0 39 | addColliders: 0 40 | useSRGBMaterialColor: 1 41 | sortHierarchyByName: 1 42 | importVisibility: 0 43 | importBlendShapes: 0 44 | importCameras: 0 45 | importLights: 0 46 | swapUVChannels: 0 47 | generateSecondaryUV: 0 48 | useFileUnits: 1 49 | keepQuads: 0 50 | weldVertices: 1 51 | preserveHierarchy: 0 52 | skinWeightsMode: 0 53 | maxBonesPerVertex: 4 54 | minBoneWeight: 0.001 55 | meshOptimizationFlags: -1 56 | indexFormat: 0 57 | secondaryUVAngleDistortion: 8 58 | secondaryUVAreaDistortion: 15.000001 59 | secondaryUVHardAngle: 88 60 | secondaryUVPackMargin: 4 61 | useFileScale: 1 62 | tangentSpace: 63 | normalSmoothAngle: 60 64 | normalImportMode: 0 65 | tangentImportMode: 3 66 | normalCalculationMode: 4 67 | legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0 68 | blendShapeNormalImportMode: 1 69 | normalSmoothingSource: 0 70 | referencedClips: [] 71 | importAnimation: 0 72 | humanDescription: 73 | serializedVersion: 3 74 | human: [] 75 | skeleton: [] 76 | armTwist: 0.5 77 | foreArmTwist: 0.5 78 | upperLegTwist: 0.5 79 | legTwist: 0.5 80 | armStretch: 0.05 81 | legStretch: 0.05 82 | feetSpacing: 0 83 | globalScale: 1 84 | rootMotionBoneName: 85 | hasTranslationDoF: 0 86 | hasExtraRoot: 0 87 | skeletonHasParents: 1 88 | lastHumanDescriptionAvatarSource: {instanceID: 0} 89 | autoGenerateAvatarMappingIfUnspecified: 1 90 | animationType: 0 91 | humanoidOversampling: 1 92 | avatarSetup: 0 93 | additionalBone: 0 94 | userData: 95 | assetBundleName: 96 | assetBundleVariant: 97 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/TeleportTarget/Varjo_V_Beveled.fbx.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e0f0546017b4faa4ebe280fd829ca6cf 3 | ModelImporter: 4 | serializedVersion: 19300 5 | internalIDToNameTable: [] 6 | externalObjects: {} 7 | materials: 8 | materialImportMode: 1 9 | materialName: 0 10 | materialSearch: 1 11 | materialLocation: 0 12 | animations: 13 | legacyGenerateAnimations: 4 14 | bakeSimulation: 0 15 | resampleCurves: 1 16 | optimizeGameObjects: 0 17 | motionNodeName: 18 | rigImportErrors: 19 | rigImportWarnings: 20 | animationImportErrors: 21 | animationImportWarnings: 22 | animationRetargetingWarnings: 23 | animationDoRetargetingWarnings: 0 24 | importAnimatedCustomProperties: 0 25 | importConstraints: 0 26 | animationCompression: 1 27 | animationRotationError: 0.5 28 | animationPositionError: 0.5 29 | animationScaleError: 0.5 30 | animationWrapMode: 0 31 | extraExposedTransformPaths: [] 32 | extraUserProperties: [] 33 | clipAnimations: [] 34 | isReadable: 0 35 | meshes: 36 | lODScreenPercentages: [] 37 | globalScale: 1 38 | meshCompression: 0 39 | addColliders: 0 40 | useSRGBMaterialColor: 1 41 | sortHierarchyByName: 1 42 | importVisibility: 0 43 | importBlendShapes: 0 44 | importCameras: 0 45 | importLights: 0 46 | swapUVChannels: 0 47 | generateSecondaryUV: 0 48 | useFileUnits: 1 49 | keepQuads: 0 50 | weldVertices: 1 51 | preserveHierarchy: 0 52 | skinWeightsMode: 0 53 | maxBonesPerVertex: 4 54 | minBoneWeight: 0.001 55 | meshOptimizationFlags: -1 56 | indexFormat: 0 57 | secondaryUVAngleDistortion: 8 58 | secondaryUVAreaDistortion: 15.000001 59 | secondaryUVHardAngle: 88 60 | secondaryUVPackMargin: 4 61 | useFileScale: 1 62 | tangentSpace: 63 | normalSmoothAngle: 60 64 | normalImportMode: 0 65 | tangentImportMode: 3 66 | normalCalculationMode: 4 67 | legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0 68 | blendShapeNormalImportMode: 1 69 | normalSmoothingSource: 0 70 | referencedClips: [] 71 | importAnimation: 0 72 | humanDescription: 73 | serializedVersion: 3 74 | human: [] 75 | skeleton: [] 76 | armTwist: 0.5 77 | foreArmTwist: 0.5 78 | upperLegTwist: 0.5 79 | legTwist: 0.5 80 | armStretch: 0.05 81 | legStretch: 0.05 82 | feetSpacing: 0 83 | globalScale: 1 84 | rootMotionBoneName: 85 | hasTranslationDoF: 0 86 | hasExtraRoot: 0 87 | skeletonHasParents: 1 88 | lastHumanDescriptionAvatarSource: {instanceID: 0} 89 | autoGenerateAvatarMappingIfUnspecified: 1 90 | animationType: 0 91 | humanoidOversampling: 1 92 | avatarSetup: 0 93 | additionalBone: 0 94 | userData: 95 | assetBundleName: 96 | assetBundleVariant: 97 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/VarjoController.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6fee440af67c6d4488a13a5ef38bfa05 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/VarjoController/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3abd36a76094d334cb5164e2c581cb1b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/VarjoController/Materials/ButtonPressedMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b683cb38ee7561248886e5852a96da19 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/VarjoController/Materials/Collider.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1b323454225ac0441a78e741b6c53228 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/VarjoController/Materials/Controller.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ec8abd6627e942844a3a1512107581b5 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/VarjoController/Materials/ControllerMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5b14d809baeeab2408cdcbe12707ca29 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/VarjoController/Materials/Controller_BaseColor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varjocom/VarjoUnityXRPlugin/d074462f6c99b8e8bc6d83037457973496cb47d9/Samples~/HDRP/Shared/Models/VarjoController/Materials/Controller_BaseColor.png -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/VarjoController/Materials/Controller_BaseColor.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0e3f9b4f47966a2479335c5ebfa38f17 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 11 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: 2 35 | aniso: 16 36 | mipBias: -100 37 | wrapU: -1 38 | wrapV: -1 39 | wrapW: -1 40 | nPOTScale: 1 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 0 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 0 53 | spriteTessellationDetail: -1 54 | textureType: 0 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | applyGammaDecoding: 0 61 | platformSettings: 62 | - serializedVersion: 3 63 | buildTarget: DefaultTexturePlatform 64 | maxTextureSize: 4096 65 | resizeAlgorithm: 0 66 | textureFormat: -1 67 | textureCompression: 2 68 | compressionQuality: 50 69 | crunchedCompression: 0 70 | allowsAlphaSplitting: 0 71 | overridden: 0 72 | androidETC2FallbackOverride: 0 73 | forceMaximumCompressionQuality_BC6H_BC7: 0 74 | - serializedVersion: 3 75 | buildTarget: Standalone 76 | maxTextureSize: 4096 77 | resizeAlgorithm: 0 78 | textureFormat: -1 79 | textureCompression: 2 80 | compressionQuality: 50 81 | crunchedCompression: 0 82 | allowsAlphaSplitting: 0 83 | overridden: 0 84 | androidETC2FallbackOverride: 0 85 | forceMaximumCompressionQuality_BC6H_BC7: 0 86 | spriteSheet: 87 | serializedVersion: 2 88 | sprites: [] 89 | outline: [] 90 | physicsShape: [] 91 | bones: [] 92 | spriteID: 93 | internalID: 0 94 | vertices: [] 95 | indices: 96 | edges: [] 97 | weights: [] 98 | secondaryTextures: [] 99 | spritePackingTag: 100 | pSDRemoveMatte: 0 101 | pSDShowRemoveMatteOption: 0 102 | userData: 103 | assetBundleName: 104 | assetBundleVariant: 105 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/VarjoController/Materials/Controller_MaskMap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varjocom/VarjoUnityXRPlugin/d074462f6c99b8e8bc6d83037457973496cb47d9/Samples~/HDRP/Shared/Models/VarjoController/Materials/Controller_MaskMap.png -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/VarjoController/Materials/Controller_MaskMap.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: af9dfb98649fbaf4fb7f25ba3f9f8029 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 11 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: 2 35 | aniso: 16 36 | mipBias: -100 37 | wrapU: -1 38 | wrapV: -1 39 | wrapW: -1 40 | nPOTScale: 1 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 0 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 0 53 | spriteTessellationDetail: -1 54 | textureType: 0 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | applyGammaDecoding: 0 61 | platformSettings: 62 | - serializedVersion: 3 63 | buildTarget: DefaultTexturePlatform 64 | maxTextureSize: 4096 65 | resizeAlgorithm: 0 66 | textureFormat: -1 67 | textureCompression: 2 68 | compressionQuality: 50 69 | crunchedCompression: 0 70 | allowsAlphaSplitting: 0 71 | overridden: 0 72 | androidETC2FallbackOverride: 0 73 | forceMaximumCompressionQuality_BC6H_BC7: 0 74 | - serializedVersion: 3 75 | buildTarget: Standalone 76 | maxTextureSize: 4096 77 | resizeAlgorithm: 0 78 | textureFormat: -1 79 | textureCompression: 2 80 | compressionQuality: 50 81 | crunchedCompression: 0 82 | allowsAlphaSplitting: 0 83 | overridden: 0 84 | androidETC2FallbackOverride: 0 85 | forceMaximumCompressionQuality_BC6H_BC7: 0 86 | spriteSheet: 87 | serializedVersion: 2 88 | sprites: [] 89 | outline: [] 90 | physicsShape: [] 91 | bones: [] 92 | spriteID: 93 | internalID: 0 94 | vertices: [] 95 | indices: 96 | edges: [] 97 | weights: [] 98 | secondaryTextures: [] 99 | spritePackingTag: 100 | pSDRemoveMatte: 0 101 | pSDShowRemoveMatteOption: 0 102 | userData: 103 | assetBundleName: 104 | assetBundleVariant: 105 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/VarjoController/Materials/Controller_Normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varjocom/VarjoUnityXRPlugin/d074462f6c99b8e8bc6d83037457973496cb47d9/Samples~/HDRP/Shared/Models/VarjoController/Materials/Controller_Normal.png -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/VarjoController/Materials/TouchpadTouchMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 946e7ac5bca00664685b27df1281c7a0 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/VarjoController/VarjoController.fbx.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 273ea07db1b5f8e4eb2d981e3501ba56 3 | ModelImporter: 4 | serializedVersion: 19300 5 | internalIDToNameTable: [] 6 | externalObjects: {} 7 | materials: 8 | materialImportMode: 1 9 | materialName: 0 10 | materialSearch: 1 11 | materialLocation: 0 12 | animations: 13 | legacyGenerateAnimations: 4 14 | bakeSimulation: 0 15 | resampleCurves: 1 16 | optimizeGameObjects: 0 17 | motionNodeName: 18 | rigImportErrors: 19 | rigImportWarnings: 20 | animationImportErrors: 21 | animationImportWarnings: 22 | animationRetargetingWarnings: 23 | animationDoRetargetingWarnings: 0 24 | importAnimatedCustomProperties: 0 25 | importConstraints: 0 26 | animationCompression: 1 27 | animationRotationError: 0.5 28 | animationPositionError: 0.5 29 | animationScaleError: 0.5 30 | animationWrapMode: 0 31 | extraExposedTransformPaths: [] 32 | extraUserProperties: [] 33 | clipAnimations: [] 34 | isReadable: 0 35 | meshes: 36 | lODScreenPercentages: [] 37 | globalScale: 1 38 | meshCompression: 0 39 | addColliders: 0 40 | useSRGBMaterialColor: 1 41 | sortHierarchyByName: 1 42 | importVisibility: 0 43 | importBlendShapes: 0 44 | importCameras: 0 45 | importLights: 0 46 | swapUVChannels: 0 47 | generateSecondaryUV: 0 48 | useFileUnits: 1 49 | keepQuads: 0 50 | weldVertices: 1 51 | preserveHierarchy: 0 52 | skinWeightsMode: 0 53 | maxBonesPerVertex: 4 54 | minBoneWeight: 0.001 55 | meshOptimizationFlags: -1 56 | indexFormat: 0 57 | secondaryUVAngleDistortion: 8 58 | secondaryUVAreaDistortion: 15.000001 59 | secondaryUVHardAngle: 88 60 | secondaryUVPackMargin: 4 61 | useFileScale: 1 62 | tangentSpace: 63 | normalSmoothAngle: 60 64 | normalImportMode: 0 65 | tangentImportMode: 3 66 | normalCalculationMode: 4 67 | legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0 68 | blendShapeNormalImportMode: 1 69 | normalSmoothingSource: 0 70 | referencedClips: [] 71 | importAnimation: 0 72 | humanDescription: 73 | serializedVersion: 3 74 | human: [] 75 | skeleton: [] 76 | armTwist: 0.5 77 | foreArmTwist: 0.5 78 | upperLegTwist: 0.5 79 | legTwist: 0.5 80 | armStretch: 0.05 81 | legStretch: 0.05 82 | feetSpacing: 0 83 | globalScale: 1 84 | rootMotionBoneName: 85 | hasTranslationDoF: 0 86 | hasExtraRoot: 0 87 | skeletonHasParents: 1 88 | lastHumanDescriptionAvatarSource: {instanceID: 0} 89 | autoGenerateAvatarMappingIfUnspecified: 1 90 | animationType: 0 91 | humanoidOversampling: 1 92 | avatarSetup: 0 93 | additionalBone: 0 94 | userData: 95 | assetBundleName: 96 | assetBundleVariant: 97 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/Varjo_VR-1.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3c1108ea16eb5a049a5057b6eee31226 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/Varjo_VR-1/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1c8c4afcb98d64d4a964d763ee1951ff 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/Varjo_VR-1/Materials/VR1_HDRP_BaseMap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varjocom/VarjoUnityXRPlugin/d074462f6c99b8e8bc6d83037457973496cb47d9/Samples~/HDRP/Shared/Models/Varjo_VR-1/Materials/VR1_HDRP_BaseMap.png -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/Varjo_VR-1/Materials/VR1_HDRP_MaskMap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varjocom/VarjoUnityXRPlugin/d074462f6c99b8e8bc6d83037457973496cb47d9/Samples~/HDRP/Shared/Models/Varjo_VR-1/Materials/VR1_HDRP_MaskMap.png -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/Varjo_VR-1/Materials/VR1_HDRP_Normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varjocom/VarjoUnityXRPlugin/d074462f6c99b8e8bc6d83037457973496cb47d9/Samples~/HDRP/Shared/Models/Varjo_VR-1/Materials/VR1_HDRP_Normal.png -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/Varjo_VR-1/Materials/VR1_HDRP_Normal.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1ef308c32d12bc040817f4d5e35f4da7 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 11 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | sRGBTexture: 0 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: 2 35 | aniso: 16 36 | mipBias: -100 37 | wrapU: -1 38 | wrapV: -1 39 | wrapW: -1 40 | nPOTScale: 1 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 0 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 0 53 | spriteTessellationDetail: -1 54 | textureType: 1 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | applyGammaDecoding: 0 61 | platformSettings: 62 | - serializedVersion: 3 63 | buildTarget: DefaultTexturePlatform 64 | maxTextureSize: 8192 65 | resizeAlgorithm: 0 66 | textureFormat: -1 67 | textureCompression: 2 68 | compressionQuality: 50 69 | crunchedCompression: 0 70 | allowsAlphaSplitting: 0 71 | overridden: 0 72 | androidETC2FallbackOverride: 0 73 | forceMaximumCompressionQuality_BC6H_BC7: 0 74 | - serializedVersion: 3 75 | buildTarget: Standalone 76 | maxTextureSize: 8192 77 | resizeAlgorithm: 0 78 | textureFormat: -1 79 | textureCompression: 2 80 | compressionQuality: 50 81 | crunchedCompression: 0 82 | allowsAlphaSplitting: 0 83 | overridden: 0 84 | androidETC2FallbackOverride: 0 85 | forceMaximumCompressionQuality_BC6H_BC7: 0 86 | - serializedVersion: 3 87 | buildTarget: Android 88 | maxTextureSize: 8192 89 | resizeAlgorithm: 0 90 | textureFormat: -1 91 | textureCompression: 2 92 | compressionQuality: 50 93 | crunchedCompression: 0 94 | allowsAlphaSplitting: 0 95 | overridden: 0 96 | androidETC2FallbackOverride: 0 97 | forceMaximumCompressionQuality_BC6H_BC7: 0 98 | spriteSheet: 99 | serializedVersion: 2 100 | sprites: [] 101 | outline: [] 102 | physicsShape: [] 103 | bones: [] 104 | spriteID: 105 | internalID: 0 106 | vertices: [] 107 | indices: 108 | edges: [] 109 | weights: [] 110 | secondaryTextures: [] 111 | spritePackingTag: 112 | pSDRemoveMatte: 0 113 | pSDShowRemoveMatteOption: 0 114 | userData: 115 | assetBundleName: 116 | assetBundleVariant: 117 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/Varjo_VR-1/Materials/VR1_Material.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 754a31b04f53d524097b83e89828a7b9 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/Varjo_VR-1/VR1_Collider 1.fbx.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1b8738cf910333949b3d47c8ab1837c0 3 | ModelImporter: 4 | serializedVersion: 19300 5 | internalIDToNameTable: [] 6 | externalObjects: {} 7 | materials: 8 | materialImportMode: 1 9 | materialName: 0 10 | materialSearch: 1 11 | materialLocation: 1 12 | animations: 13 | legacyGenerateAnimations: 4 14 | bakeSimulation: 0 15 | resampleCurves: 1 16 | optimizeGameObjects: 0 17 | motionNodeName: 18 | rigImportErrors: 19 | rigImportWarnings: 20 | animationImportErrors: 21 | animationImportWarnings: 22 | animationRetargetingWarnings: 23 | animationDoRetargetingWarnings: 0 24 | importAnimatedCustomProperties: 0 25 | importConstraints: 0 26 | animationCompression: 1 27 | animationRotationError: 0.5 28 | animationPositionError: 0.5 29 | animationScaleError: 0.5 30 | animationWrapMode: 0 31 | extraExposedTransformPaths: [] 32 | extraUserProperties: [] 33 | clipAnimations: [] 34 | isReadable: 0 35 | meshes: 36 | lODScreenPercentages: [] 37 | globalScale: 1 38 | meshCompression: 0 39 | addColliders: 0 40 | useSRGBMaterialColor: 1 41 | sortHierarchyByName: 1 42 | importVisibility: 1 43 | importBlendShapes: 1 44 | importCameras: 1 45 | importLights: 1 46 | swapUVChannels: 0 47 | generateSecondaryUV: 0 48 | useFileUnits: 1 49 | keepQuads: 0 50 | weldVertices: 1 51 | preserveHierarchy: 0 52 | skinWeightsMode: 0 53 | maxBonesPerVertex: 4 54 | minBoneWeight: 0.001 55 | meshOptimizationFlags: -1 56 | indexFormat: 0 57 | secondaryUVAngleDistortion: 8 58 | secondaryUVAreaDistortion: 15.000001 59 | secondaryUVHardAngle: 88 60 | secondaryUVPackMargin: 4 61 | useFileScale: 1 62 | tangentSpace: 63 | normalSmoothAngle: 60 64 | normalImportMode: 0 65 | tangentImportMode: 3 66 | normalCalculationMode: 4 67 | legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0 68 | blendShapeNormalImportMode: 1 69 | normalSmoothingSource: 0 70 | referencedClips: [] 71 | importAnimation: 1 72 | humanDescription: 73 | serializedVersion: 3 74 | human: [] 75 | skeleton: [] 76 | armTwist: 0.5 77 | foreArmTwist: 0.5 78 | upperLegTwist: 0.5 79 | legTwist: 0.5 80 | armStretch: 0.05 81 | legStretch: 0.05 82 | feetSpacing: 0 83 | globalScale: 1 84 | rootMotionBoneName: 85 | hasTranslationDoF: 0 86 | hasExtraRoot: 0 87 | skeletonHasParents: 1 88 | lastHumanDescriptionAvatarSource: {instanceID: 0} 89 | autoGenerateAvatarMappingIfUnspecified: 1 90 | animationType: 2 91 | humanoidOversampling: 1 92 | avatarSetup: 0 93 | additionalBone: 0 94 | userData: 95 | assetBundleName: 96 | assetBundleVariant: 97 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Models/Varjo_VR-1/VRHeadset.fbx.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 131a7b07143936b45978727ba71a97d3 3 | ModelImporter: 4 | serializedVersion: 19300 5 | internalIDToNameTable: [] 6 | externalObjects: {} 7 | materials: 8 | materialImportMode: 1 9 | materialName: 0 10 | materialSearch: 1 11 | materialLocation: 1 12 | animations: 13 | legacyGenerateAnimations: 4 14 | bakeSimulation: 0 15 | resampleCurves: 1 16 | optimizeGameObjects: 0 17 | motionNodeName: 18 | rigImportErrors: 19 | rigImportWarnings: 20 | animationImportErrors: 21 | animationImportWarnings: 22 | animationRetargetingWarnings: 23 | animationDoRetargetingWarnings: 0 24 | importAnimatedCustomProperties: 0 25 | importConstraints: 0 26 | animationCompression: 1 27 | animationRotationError: 0.5 28 | animationPositionError: 0.5 29 | animationScaleError: 0.5 30 | animationWrapMode: 0 31 | extraExposedTransformPaths: [] 32 | extraUserProperties: [] 33 | clipAnimations: [] 34 | isReadable: 0 35 | meshes: 36 | lODScreenPercentages: [] 37 | globalScale: 1 38 | meshCompression: 0 39 | addColliders: 0 40 | useSRGBMaterialColor: 1 41 | sortHierarchyByName: 1 42 | importVisibility: 1 43 | importBlendShapes: 1 44 | importCameras: 1 45 | importLights: 1 46 | swapUVChannels: 0 47 | generateSecondaryUV: 0 48 | useFileUnits: 1 49 | keepQuads: 0 50 | weldVertices: 1 51 | preserveHierarchy: 0 52 | skinWeightsMode: 0 53 | maxBonesPerVertex: 4 54 | minBoneWeight: 0.001 55 | meshOptimizationFlags: -1 56 | indexFormat: 0 57 | secondaryUVAngleDistortion: 8 58 | secondaryUVAreaDistortion: 15.000001 59 | secondaryUVHardAngle: 88 60 | secondaryUVPackMargin: 4 61 | useFileScale: 1 62 | tangentSpace: 63 | normalSmoothAngle: 60 64 | normalImportMode: 0 65 | tangentImportMode: 3 66 | normalCalculationMode: 4 67 | legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0 68 | blendShapeNormalImportMode: 1 69 | normalSmoothingSource: 0 70 | referencedClips: [] 71 | importAnimation: 1 72 | humanDescription: 73 | serializedVersion: 3 74 | human: [] 75 | skeleton: [] 76 | armTwist: 0.5 77 | foreArmTwist: 0.5 78 | upperLegTwist: 0.5 79 | legTwist: 0.5 80 | armStretch: 0.05 81 | legStretch: 0.05 82 | feetSpacing: 0 83 | globalScale: 1 84 | rootMotionBoneName: 85 | hasTranslationDoF: 0 86 | hasExtraRoot: 0 87 | skeletonHasParents: 1 88 | lastHumanDescriptionAvatarSource: {instanceID: 0} 89 | autoGenerateAvatarMappingIfUnspecified: 1 90 | animationType: 2 91 | humanoidOversampling: 1 92 | avatarSetup: 0 93 | additionalBone: 0 94 | userData: 95 | assetBundleName: 96 | assetBundleVariant: 97 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/PostProcessing.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b3a30522e2c38b7429c986678f1f90a8 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/PostProcessing/VSTWhiteBalance.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fdb230432ac4fe2439c5c64ede65f01a 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/PostProcessing/VSTWhiteBalance/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c8ad781ec87f9d44d9ff28607fce828b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/PostProcessing/VSTWhiteBalance/Scripts/VSTWhiteBalance.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.Rendering; 3 | using UnityEngine.Rendering.HighDefinition; 4 | using System; 5 | 6 | [Serializable, VolumeComponentMenu("Post-processing/Custom/VSTWhiteBalance")] 7 | public sealed class VSTWhiteBalance : CustomPostProcessVolumeComponent, IPostProcessComponent 8 | { 9 | [Tooltip("Controls the intensity of the effect.")] 10 | public ClampedFloatParameter intensity = new ClampedFloatParameter(0f, 0f, 1f); 11 | 12 | Material m_Material; 13 | public bool IsActive() => m_Material != null && intensity.value > 0f; 14 | 15 | // Do not forget to add this post process in the Custom Post Process Orders list (Project Settings > HDRP Default Settings). 16 | public override CustomPostProcessInjectionPoint injectionPoint => CustomPostProcessInjectionPoint.AfterPostProcess; 17 | 18 | const string kShaderName = "Hidden/Shader/VSTWhiteBalance"; 19 | 20 | public override void Setup() 21 | { 22 | if (Shader.Find(kShaderName) != null) 23 | m_Material = new Material(Shader.Find(kShaderName)); 24 | else 25 | Debug.LogError($"Unable to find shader '{kShaderName}'. Post Process Volume VSTWhiteBalance is unable to load."); 26 | } 27 | 28 | public override void Render(CommandBuffer cmd, HDCamera camera, RTHandle source, RTHandle destination) 29 | { 30 | if (m_Material == null) 31 | return; 32 | 33 | m_Material.SetFloat("_Intensity", intensity.value); 34 | m_Material.SetTexture("_InputTexture", source); 35 | HDUtils.DrawFullScreen(cmd, m_Material, destination); 36 | } 37 | 38 | public override void Cleanup() 39 | { 40 | CoreUtils.Destroy(m_Material); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/PostProcessing/VSTWhiteBalance/Scripts/VSTWhiteBalance.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2702005f483a1b845a9558195ac48750 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/PostProcessing/VSTWhiteBalance/Shaders.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0970756079781f34fa543e38a8dacc7c 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/PostProcessing/VSTWhiteBalance/Shaders/VSTWhiteBalance.shader: -------------------------------------------------------------------------------- 1 | Shader "Hidden/Shader/VSTWhiteBalance" 2 | { 3 | HLSLINCLUDE 4 | 5 | #pragma target 4.5 6 | #pragma only_renderers d3d11 ps4 xboxone vulkan metal switch 7 | 8 | #include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Common.hlsl" 9 | #include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Color.hlsl" 10 | #include "Packages/com.unity.render-pipelines.high-definition/Runtime/ShaderLibrary/ShaderVariables.hlsl" 11 | #include "Packages/com.unity.render-pipelines.high-definition/Runtime/PostProcessing/Shaders/FXAA.hlsl" 12 | #include "Packages/com.unity.render-pipelines.high-definition/Runtime/PostProcessing/Shaders/RTUpscale.hlsl" 13 | 14 | struct Attributes 15 | { 16 | uint vertexID : SV_VertexID; 17 | UNITY_VERTEX_INPUT_INSTANCE_ID 18 | }; 19 | 20 | struct Varyings 21 | { 22 | float4 positionCS : SV_POSITION; 23 | float2 texcoord : TEXCOORD0; 24 | UNITY_VERTEX_OUTPUT_STEREO 25 | }; 26 | 27 | Varyings Vert(Attributes input) 28 | { 29 | Varyings output; 30 | UNITY_SETUP_INSTANCE_ID(input); 31 | UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(output); 32 | output.positionCS = GetFullScreenTriangleVertexPosition(input.vertexID); 33 | output.texcoord = GetFullScreenTriangleTexCoord(input.vertexID); 34 | return output; 35 | } 36 | 37 | // List of properties to control your post process effect 38 | float _Intensity; 39 | TEXTURE2D_X(_InputTexture); 40 | 41 | float4 _CamWBGains; //!< White balance gains to convert from 6500K to VST color temperature. 42 | float4x4 _CamInvCCM; //!< Inverse CCM for 6500K. 43 | float4x4 _CamCCM; //!< CCM for VST color temperature. 44 | 45 | float3 NormalizeWhiteBalance(float3 inRGB) 46 | { 47 | float3 outRGB = mul(inRGB, (float3x3)_CamInvCCM); 48 | outRGB.rgb *= _CamWBGains.rgb; 49 | outRGB = saturate(outRGB); 50 | outRGB.rgb = mul(outRGB.rgb, (float3x3)_CamCCM); 51 | return outRGB; 52 | } 53 | 54 | float4 CustomPostProcess(Varyings input) : SV_Target 55 | { 56 | UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX(input); 57 | 58 | uint2 positionSS = input.texcoord * _ScreenSize.xy; 59 | float3 outColor = LOAD_TEXTURE2D_X(_InputTexture, positionSS).xyz; 60 | return float4(lerp(outColor, NormalizeWhiteBalance(outColor), _Intensity), 1); 61 | } 62 | 63 | ENDHLSL 64 | 65 | SubShader 66 | { 67 | Pass 68 | { 69 | Name "VSTWhiteBalance" 70 | 71 | ZWrite Off 72 | ZTest Always 73 | Blend Off 74 | Cull Off 75 | 76 | HLSLPROGRAM 77 | #pragma fragment CustomPostProcess 78 | #pragma vertex Vert 79 | ENDHLSL 80 | } 81 | } 82 | Fallback Off 83 | } 84 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/PostProcessing/VSTWhiteBalance/Shaders/VSTWhiteBalance.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8d0e96d103e28a14dbffb04e9398ebf2 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7fff5fc32bd938246ba08f1185d4aeb1 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Prefabs/Controller.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cff1a64a12aa2294a919bb341b01e2d0 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Prefabs/Cube.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1f2a2d8a1e2572d49a3787b5b874363f 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Prefabs/CubeMarker.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4f98f3df1ea17af4baef84a091e7b499 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Prefabs/Cube_SmallBevel_Fractured.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0c5b172a4d791d247a7067b6450f539f 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Prefabs/ExplosiveProjectile.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a8853a6b76589b4438d2e589710ee788 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Prefabs/FracturingCube.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ac4fe593be0494a4f97244153aa8d5e9 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Prefabs/GazeTarget.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c7843d50499ce5d469cb4b59ff11e193 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Prefabs/Projectile.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 71a917bd8fcf92445bdef5cf3be4856c 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Prefabs/TeleportPointer.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3e016ba147f270141ab753435d12e4e0 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Prefabs/VRHeadset.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &352633642710385627 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | serializedVersion: 6 10 | m_Component: 11 | - component: {fileID: 3656808234381750728} 12 | - component: {fileID: 5756885695700601854} 13 | - component: {fileID: 2078438040237831943} 14 | m_Layer: 0 15 | m_Name: VRHeadset 16 | m_TagString: Untagged 17 | m_Icon: {fileID: 0} 18 | m_NavMeshLayer: 0 19 | m_StaticEditorFlags: 0 20 | m_IsActive: 1 21 | --- !u!4 &3656808234381750728 22 | Transform: 23 | m_ObjectHideFlags: 0 24 | m_CorrespondingSourceObject: {fileID: 0} 25 | m_PrefabInstance: {fileID: 0} 26 | m_PrefabAsset: {fileID: 0} 27 | m_GameObject: {fileID: 352633642710385627} 28 | m_LocalRotation: {x: 0, y: -0, z: -0, w: 1} 29 | m_LocalPosition: {x: -0, y: 0, z: 0} 30 | m_LocalScale: {x: 1, y: 1, z: 1} 31 | m_Children: [] 32 | m_Father: {fileID: 0} 33 | m_RootOrder: 0 34 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 35 | --- !u!33 &5756885695700601854 36 | MeshFilter: 37 | m_ObjectHideFlags: 0 38 | m_CorrespondingSourceObject: {fileID: 0} 39 | m_PrefabInstance: {fileID: 0} 40 | m_PrefabAsset: {fileID: 0} 41 | m_GameObject: {fileID: 352633642710385627} 42 | m_Mesh: {fileID: 3776888635777562292, guid: 131a7b07143936b45978727ba71a97d3, type: 3} 43 | --- !u!23 &2078438040237831943 44 | MeshRenderer: 45 | m_ObjectHideFlags: 0 46 | m_CorrespondingSourceObject: {fileID: 0} 47 | m_PrefabInstance: {fileID: 0} 48 | m_PrefabAsset: {fileID: 0} 49 | m_GameObject: {fileID: 352633642710385627} 50 | m_Enabled: 1 51 | m_CastShadows: 1 52 | m_ReceiveShadows: 1 53 | m_DynamicOccludee: 1 54 | m_MotionVectors: 1 55 | m_LightProbeUsage: 1 56 | m_ReflectionProbeUsage: 1 57 | m_RayTracingMode: 2 58 | m_RenderingLayerMask: 1 59 | m_RendererPriority: 0 60 | m_Materials: 61 | - {fileID: 2100000, guid: 754a31b04f53d524097b83e89828a7b9, type: 2} 62 | m_StaticBatchInfo: 63 | firstSubMesh: 0 64 | subMeshCount: 0 65 | m_StaticBatchRoot: {fileID: 0} 66 | m_ProbeAnchor: {fileID: 0} 67 | m_LightProbeVolumeOverride: {fileID: 0} 68 | m_ScaleInLightmap: 1 69 | m_ReceiveGI: 1 70 | m_PreserveUVs: 0 71 | m_IgnoreNormalsForChartDetection: 0 72 | m_ImportantGI: 0 73 | m_StitchLightmapSeams: 1 74 | m_SelectedEditorRenderState: 3 75 | m_MinimumChartSize: 4 76 | m_AutoUVMaxDistance: 0.5 77 | m_AutoUVMaxAngle: 89 78 | m_LightmapParameters: {fileID: 0} 79 | m_SortingLayerID: 0 80 | m_SortingLayer: 0 81 | m_SortingOrder: 0 82 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Prefabs/VRHeadset.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9b7adf73635f22c42a07c589a39b3a4c 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Prefabs/VarjoController.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e2a2b55e2683d3645a99e4724cccba48 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Prefabs/VarjoCubeFreeRotation.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b61f6a5c59a5de3498df33978439f89a 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Prefabs/VarjoTeleportTarget.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 689587e6dffd4aa4e8d8cbac43fc5db1 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Prefabs/Varjo_Cube_SmallBevel.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &13447350499726894 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | serializedVersion: 6 10 | m_Component: 11 | - component: {fileID: 3923936631909917757} 12 | - component: {fileID: 5417717294177263115} 13 | - component: {fileID: 1734748182625575666} 14 | m_Layer: 0 15 | m_Name: Varjo_Cube_SmallBevel 16 | m_TagString: Untagged 17 | m_Icon: {fileID: 0} 18 | m_NavMeshLayer: 0 19 | m_StaticEditorFlags: 0 20 | m_IsActive: 1 21 | --- !u!4 &3923936631909917757 22 | Transform: 23 | m_ObjectHideFlags: 0 24 | m_CorrespondingSourceObject: {fileID: 0} 25 | m_PrefabInstance: {fileID: 0} 26 | m_PrefabAsset: {fileID: 0} 27 | m_GameObject: {fileID: 13447350499726894} 28 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 29 | m_LocalPosition: {x: -0, y: 0, z: 0} 30 | m_LocalScale: {x: 0.4, y: 0.4, z: 0.4} 31 | m_Children: [] 32 | m_Father: {fileID: 0} 33 | m_RootOrder: 0 34 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 35 | --- !u!33 &5417717294177263115 36 | MeshFilter: 37 | m_ObjectHideFlags: 0 38 | m_CorrespondingSourceObject: {fileID: 0} 39 | m_PrefabInstance: {fileID: 0} 40 | m_PrefabAsset: {fileID: 0} 41 | m_GameObject: {fileID: 13447350499726894} 42 | m_Mesh: {fileID: -5677043587659872711, guid: 4989fd7d1f01ff944b46f38addc19ddf, type: 3} 43 | --- !u!23 &1734748182625575666 44 | MeshRenderer: 45 | m_ObjectHideFlags: 0 46 | m_CorrespondingSourceObject: {fileID: 0} 47 | m_PrefabInstance: {fileID: 0} 48 | m_PrefabAsset: {fileID: 0} 49 | m_GameObject: {fileID: 13447350499726894} 50 | m_Enabled: 1 51 | m_CastShadows: 1 52 | m_ReceiveShadows: 1 53 | m_DynamicOccludee: 1 54 | m_MotionVectors: 1 55 | m_LightProbeUsage: 1 56 | m_ReflectionProbeUsage: 1 57 | m_RayTracingMode: 2 58 | m_RenderingLayerMask: 1 59 | m_RendererPriority: 0 60 | m_Materials: 61 | - {fileID: 2100000, guid: 5d92c5b6d0fe6bd468b15e6a189dee72, type: 2} 62 | m_StaticBatchInfo: 63 | firstSubMesh: 0 64 | subMeshCount: 0 65 | m_StaticBatchRoot: {fileID: 0} 66 | m_ProbeAnchor: {fileID: 0} 67 | m_LightProbeVolumeOverride: {fileID: 0} 68 | m_ScaleInLightmap: 1 69 | m_ReceiveGI: 1 70 | m_PreserveUVs: 0 71 | m_IgnoreNormalsForChartDetection: 0 72 | m_ImportantGI: 0 73 | m_StitchLightmapSeams: 1 74 | m_SelectedEditorRenderState: 3 75 | m_MinimumChartSize: 4 76 | m_AutoUVMaxDistance: 0.5 77 | m_AutoUVMaxAngle: 89 78 | m_LightmapParameters: {fileID: 0} 79 | m_SortingLayerID: 0 80 | m_SortingLayer: 0 81 | m_SortingOrder: 0 82 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Prefabs/Varjo_Cube_SmallBevel.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 255e9a79f9b020940adc5bb6c7e53e03 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 64054b47660e3b04f927973d4db8ddf1 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Scripts/ConstantRotate.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | public class ConstantRotate : MonoBehaviour 4 | { 5 | public Vector3 rotateAxis; 6 | public float rotateSpeed; 7 | 8 | void Update() 9 | { 10 | transform.Rotate(rotateAxis, Time.deltaTime * rotateSpeed); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Scripts/ConstantRotate.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6939516fc3351e5419dfb993ec733bef 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Scripts/DestroyByPosition.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | public class DestroyByPosition : MonoBehaviour 4 | { 5 | public float destroyPositionY = -10; 6 | void Update() 7 | { 8 | if(transform.position.y < destroyPositionY) 9 | { 10 | Destroy(this.gameObject); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Scripts/DestroyByPosition.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c4e3b9b4a328bc449a285c309372afa2 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Scripts/Explosion.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | public class Explosion : MonoBehaviour 4 | { 5 | public float blastradius = 0.5f; 6 | public float explosionForce = 500f; 7 | 8 | bool hasExploded = false; 9 | 10 | void Explode() 11 | { 12 | Collider[] collidersFracturing = Physics.OverlapSphere(transform.position, blastradius); 13 | 14 | foreach (Collider objectInRange in collidersFracturing) 15 | { 16 | Fracture fracture = objectInRange.GetComponent(); 17 | if (fracture != null) 18 | { 19 | fracture.Destroy(); 20 | } 21 | } 22 | 23 | Collider[] collidersMove = Physics.OverlapSphere(transform.position, blastradius); 24 | 25 | foreach (Collider objectInRange in collidersMove) 26 | { 27 | Rigidbody rb = objectInRange.GetComponent(); 28 | if (rb != null) 29 | { 30 | rb.AddExplosionForce(explosionForce, transform.position, blastradius); 31 | } 32 | } 33 | 34 | Destroy(gameObject); 35 | } 36 | 37 | private void OnCollisionEnter(Collision collision) 38 | { 39 | if (collision.transform.CompareTag("Fracture") && !hasExploded) 40 | { 41 | hasExploded = true; 42 | Explode(); 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Scripts/Explosion.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ff474b743405f734684d36657a6add62 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Scripts/Fracture.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | public class Fracture : MonoBehaviour 4 | { 5 | public GameObject fracturedObject; 6 | 7 | public void Destroy() 8 | { 9 | Instantiate(fracturedObject, transform.position, transform.rotation); 10 | Destroy(gameObject); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Scripts/Fracture.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c23a8e1c91b2aec4e8005c9033c3953b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Scripts/FreeMovement.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | public class FreeMovement : MonoBehaviour 4 | { 5 | public Transform player; 6 | public Transform head; 7 | 8 | [Header("Use WASD/QE/ZX to move in Play mode")] 9 | public float moveSpeed = 10.0f; 10 | public float turnSpeed = 200.0f; 11 | 12 | [Header("Lock movement to horizontal place")] 13 | public bool moveOnXZPlane = true; 14 | 15 | void Update() 16 | { 17 | float turnLeft = Input.GetKey(KeyCode.Z) ? -1.0f : 0.0f; 18 | float turnRight = Input.GetKey(KeyCode.X) ? 1.0f : 0.0f; 19 | 20 | float forward = Input.GetKey(KeyCode.W) ? 1.0f : 0.0f; 21 | float backward = Input.GetKey(KeyCode.S) ? 1.0f : 0.0f; 22 | 23 | float left = Input.GetKey(KeyCode.A) ? 1.0f : 0.0f; 24 | float right = Input.GetKey(KeyCode.D) ? 1.0f : 0.0f; 25 | 26 | float up = Input.GetKey(KeyCode.E) ? 1.0f : 0.0f; 27 | float down = Input.GetKey(KeyCode.Q) ? 1.0f : 0.0f; 28 | 29 | transform.RotateAround(head.position, Vector3.up, turnSpeed * turnLeft * Time.deltaTime); 30 | transform.RotateAround(head.position, Vector3.up, turnSpeed * turnRight * Time.deltaTime); 31 | 32 | transform.Translate(player.up * moveSpeed * up * Time.deltaTime, Space.World); 33 | transform.Translate(-player.up * moveSpeed * down * Time.deltaTime, Space.World); 34 | 35 | if (moveOnXZPlane) 36 | { 37 | transform.Translate(VectorYToZero(head.forward) * moveSpeed * forward * Time.deltaTime, Space.World); 38 | transform.Translate(VectorYToZero(-head.forward) * moveSpeed * backward * Time.deltaTime, Space.World); 39 | 40 | transform.Translate(VectorYToZero(head.right) * moveSpeed * right * Time.deltaTime, Space.World); 41 | transform.Translate(VectorYToZero(-head.right) * moveSpeed * left * Time.deltaTime, Space.World); 42 | } 43 | else 44 | { 45 | transform.Translate(head.forward * moveSpeed * forward * Time.deltaTime, Space.World); 46 | transform.Translate(-head.forward * moveSpeed * backward * Time.deltaTime, Space.World); 47 | 48 | transform.Translate(head.right * moveSpeed * right * Time.deltaTime, Space.World); 49 | transform.Translate(-head.right * moveSpeed * left * Time.deltaTime, Space.World); 50 | } 51 | } 52 | 53 | Vector3 VectorYToZero(Vector3 v) 54 | { 55 | return new Vector3(v.x, 0.0f, v.z); 56 | } 57 | } 58 | 59 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Scripts/FreeMovement.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3d1d5723776eaf344b4882822b31bce8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Scripts/Interactable.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace VarjoExample 4 | { 5 | [RequireComponent(typeof(Rigidbody))] 6 | public class Interactable : MonoBehaviour 7 | { 8 | [HideInInspector] 9 | public Hand activeHand = null; 10 | } 11 | } -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Scripts/Interactable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 892e4cf6478bd42498ac2d7b7e58bed0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Scripts/QuitDemo.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | public class QuitDemo : MonoBehaviour 4 | { 5 | public KeyCode quitDemo = KeyCode.Escape; 6 | void Update() 7 | { 8 | if (Input.GetKey(quitDemo)) 9 | { 10 | Application.Quit(); 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Scripts/QuitDemo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d850809da70ffd3489ecf5460a4e1b12 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Scripts/RotateWithGaze.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | public class RotateWithGaze : MonoBehaviour 4 | { 5 | public GameObject demoObject; 6 | public float forceAmount; 7 | public Material flatMaterial; 8 | public Material objectMaterial; 9 | Rigidbody rb; 10 | MeshRenderer mr; 11 | 12 | void Start() 13 | { 14 | rb = GetComponentInChildren(); 15 | mr = demoObject.GetComponent(); 16 | } 17 | 18 | void Update() 19 | { 20 | // Check if object is rotating and change material accordingly 21 | if (!rb.IsSleeping()) 22 | { 23 | mr.material = objectMaterial; 24 | } 25 | else 26 | { 27 | mr.material = flatMaterial; 28 | } 29 | } 30 | 31 | // Rotates object hit with gaze tracking raycast 32 | public void RayHit() 33 | { 34 | rb.AddTorque(Vector3.up * forceAmount * Time.deltaTime, ForceMode.Force); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Scripts/RotateWithGaze.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 54a2715049b57be47b6e5dfd7f0cb9fd 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Scripts/Shoot.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace VarjoExample 4 | { 5 | public class Shoot : MonoBehaviour 6 | { 7 | public float energyFactor; 8 | public GameObject projectilePrefab; 9 | public Transform projectileOrigin; 10 | 11 | bool buttonDown; 12 | float energy; 13 | Controller controller; 14 | Rigidbody rb; 15 | GameObject projectile; 16 | 17 | void Start() 18 | { 19 | controller = GetComponent(); 20 | } 21 | 22 | void Update() 23 | { 24 | if (controller.Primary2DAxisClick) 25 | { 26 | if (!buttonDown) 27 | { 28 | // Button is pressed, projectile is created 29 | buttonDown = true; 30 | projectile = Instantiate(projectilePrefab, projectileOrigin.transform.position, projectileOrigin.transform.rotation); 31 | rb = projectile.GetComponent(); 32 | rb.isKinematic = true; 33 | projectile.transform.parent = projectileOrigin; 34 | } 35 | else 36 | { 37 | // Button is held down, projectile gets energy 38 | energy = energy + Time.deltaTime * energyFactor; 39 | } 40 | } 41 | else if (!controller.Primary2DAxisClick && buttonDown) 42 | { 43 | // Button is released, projectile is released 44 | if (projectile && rb) 45 | { 46 | rb.isKinematic = false; 47 | projectile.transform.parent = null; 48 | rb.AddForce(projectileOrigin.transform.forward * energy, ForceMode.Impulse); 49 | } 50 | buttonDown = false; 51 | energy = 0f; 52 | } 53 | } 54 | } 55 | } -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Scripts/Shoot.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 84de138822878cd44a65cf0f41aca04a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Samples~/HDRP/Shared/Scripts/Teleporter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e51ec90ef6b5d784fa69be0acc3afb76 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "com.varjo.xr", 3 | "displayName": "Varjo XR Plugin", 4 | "version": "3.7.3", 5 | "unity": "2021.3", 6 | "description": "Provides support for Varjo devices using the Unity XR SDK.", 7 | "documentationUrl": "https://developer.varjo.com/docs/unity-xr-sdk/unity-xr-sdk", 8 | "license": "See LICENSE.md file.", 9 | "keywords": [ 10 | "varjo", 11 | "xr", 12 | "vr", 13 | "mixed", 14 | "reality", 15 | "xreditorsubsystem" 16 | ], 17 | "dependencies": { 18 | "com.unity.xr.management": "4.4.0", 19 | "com.unity.xr.arfoundation": "5.1.3" 20 | }, 21 | "repository": { 22 | "type": "git", 23 | "url": "https://github.com/varjocom/VarjoUnityXRPlugin.git" 24 | }, 25 | "samples": [ 26 | { 27 | "displayName": "HDRP Samples", 28 | "description": "Sample scenes showing how to use different Varjo XR Plugin features with HDRP.", 29 | "path": "Samples~/HDRP" 30 | } 31 | ] 32 | } 33 | -------------------------------------------------------------------------------- /package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7e83914b00b1548488aee5f043acf8af 3 | PackageManifestImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | --------------------------------------------------------------------------------