├── .gitignore ├── .gradle ├── 4.6 │ ├── fileChanges │ │ └── last-build.bin │ ├── fileHashes │ │ └── fileHashes.lock │ └── taskHistory │ │ └── taskHistory.lock └── buildOutputCleanup │ ├── buildOutputCleanup.lock │ └── cache.properties ├── Assets ├── Editor.meta ├── Editor │ ├── Build.cs │ ├── Build.cs.meta │ ├── BuildWindow.cs │ ├── BuildWindow.cs.meta │ ├── Options.cs │ └── Options.cs.meta ├── Plugins.meta ├── Plugins │ ├── Android.meta │ └── Android │ │ ├── assets.meta │ │ └── assets │ │ ├── oculussig_239deed505057ece │ │ ├── oculussig_239deed505057ece.meta │ │ ├── oculussig_5702c45d │ │ ├── oculussig_5702c45d.meta │ │ ├── oculussig_85b6364b49363431 │ │ ├── oculussig_85b6364b49363431.meta │ │ ├── oculussig_993526aa │ │ └── oculussig_993526aa.meta ├── Scenes.meta ├── Scenes │ ├── APICheckTest.meta │ ├── APICheckTest │ │ ├── APICheck.cs │ │ ├── APICheck.cs.meta │ │ ├── APICheckTest.unity │ │ └── APICheckTest.unity.meta │ ├── CanvasTest.meta │ ├── CanvasTest │ │ ├── CanvasTest.unity │ │ ├── CanvasTest.unity.meta │ │ ├── CanvasTextDisplay.cs │ │ ├── CanvasTextDisplay.cs.meta │ │ ├── CursorMaterial.mat │ │ ├── CursorMaterial.mat.meta │ │ ├── GazeInput.cs │ │ ├── GazeInput.cs.meta │ │ ├── VRInput.cs │ │ ├── VRInput.cs.meta │ │ ├── VRInputModule.cs │ │ ├── VRInputModule.cs.meta │ │ ├── uiOutline.psd │ │ └── uiOutline.psd.meta │ ├── EffectTest.meta │ ├── EffectTest │ │ ├── EffectTest.unity │ │ ├── EffectTest.unity.meta │ │ ├── Line.meta │ │ ├── Line │ │ │ ├── Line.cs │ │ │ ├── Line.cs.meta │ │ │ ├── LineRendererMaterial.mat │ │ │ ├── LineRendererMaterial.mat.meta │ │ │ ├── LineRendererStandardShader.shader │ │ │ └── LineRendererStandardShader.shader.meta │ │ ├── Particles.meta │ │ ├── Particles │ │ │ ├── ParticleSphereMaterial.mat │ │ │ ├── ParticleSphereMaterial.mat.meta │ │ │ ├── Spark.png │ │ │ ├── Spark.png.meta │ │ │ ├── SparkMaterial.mat │ │ │ └── SparkMaterial.mat.meta │ │ ├── Projector.meta │ │ ├── Projector │ │ │ ├── Falloff.psd │ │ │ ├── Falloff.psd.meta │ │ │ ├── LightProjector.mat │ │ │ ├── LightProjector.mat.meta │ │ │ ├── ProjectorBarMaterial.mat │ │ │ ├── ProjectorBarMaterial.mat.meta │ │ │ ├── ProjectorLight.shader │ │ │ ├── ProjectorLight.shader.meta │ │ │ ├── ProjectorRotation.cs │ │ │ ├── ProjectorRotation.cs.meta │ │ │ ├── squareProjector.psd │ │ │ └── squareProjector.psd.meta │ │ ├── Sprites.meta │ │ ├── Sprites │ │ │ ├── SpriteTest.psd │ │ │ ├── SpriteTest.psd.meta │ │ │ ├── outlineSprite.tga │ │ │ └── outlineSprite.tga.meta │ │ ├── Trail.meta │ │ └── Trail │ │ │ ├── TrailMaterial.mat │ │ │ ├── TrailMaterial.mat.meta │ │ │ ├── TrailRenderer.prefab │ │ │ └── TrailRenderer.prefab.meta │ ├── InputRegressionTest.meta │ ├── InputRegressionTest │ │ ├── InputRegressionTest.unity │ │ ├── InputRegressionTest.unity.meta │ │ ├── Materials.meta │ │ ├── Materials │ │ │ ├── Blue.mat │ │ │ ├── Blue.mat.meta │ │ │ ├── Green.mat │ │ │ ├── Green.mat.meta │ │ │ ├── Orange.mat │ │ │ ├── Orange.mat.meta │ │ │ ├── Red.mat │ │ │ └── Red.mat.meta │ │ ├── Scripts.meta │ │ ├── Scripts │ │ │ ├── AxisProxy.cs │ │ │ ├── AxisProxy.cs.meta │ │ │ ├── ButtonProxy.cs │ │ │ ├── ButtonProxy.cs.meta │ │ │ ├── FloorOffset.cs │ │ │ ├── FloorOffset.cs.meta │ │ │ ├── FunctionalTest.cs │ │ │ ├── FunctionalTest.cs.meta │ │ │ ├── GetJoystickNamesToText.cs │ │ │ ├── GetJoystickNamesToText.cs.meta │ │ │ ├── GetNodeStates.cs │ │ │ ├── GetNodeStates.cs.meta │ │ │ ├── NodeEventsToText.cs │ │ │ ├── NodeEventsToText.cs.meta │ │ │ ├── NodeStateDisplay.cs │ │ │ ├── NodeStateDisplay.cs.meta │ │ │ ├── StickProxy.cs │ │ │ ├── StickProxy.cs.meta │ │ │ ├── SupportedAndLoadedDevicesToText.cs │ │ │ ├── SupportedAndLoadedDevicesToText.cs.meta │ │ │ ├── TPDToText.cs │ │ │ ├── TPDToText.cs.meta │ │ │ ├── TestInstructions.cs │ │ │ ├── TestInstructions.cs.meta │ │ │ ├── Usages.meta │ │ │ └── Usages │ │ │ │ ├── AxisRangeCheck.cs │ │ │ │ ├── AxisRangeCheck.cs.meta │ │ │ │ ├── AxisUsageProxy.cs │ │ │ │ ├── AxisUsageProxy.cs.meta │ │ │ │ ├── ButtonUsageProxy.cs │ │ │ │ ├── ButtonUsageProxy.cs.meta │ │ │ │ ├── DiscreteUsageProxy.cs │ │ │ │ ├── DiscreteUsageProxy.cs.meta │ │ │ │ ├── ListFeatureUsages.cs │ │ │ │ ├── ListFeatureUsages.cs.meta │ │ │ │ ├── StickUsageProxy.cs │ │ │ │ └── StickUsageProxy.cs.meta │ │ ├── XRPlatformToText.cs │ │ └── XRPlatformToText.cs.meta │ ├── LightingTest.meta │ ├── LightingTest │ │ ├── BakedLighting.meta │ │ ├── BakedLighting │ │ │ ├── BakedLighting.unity │ │ │ ├── BakedLighting.unity.meta │ │ │ ├── BakedLighting_LightHalo.mat │ │ │ ├── BakedLighting_LightHalo.mat.meta │ │ │ ├── BakedLighting_Material.mat │ │ │ ├── BakedLighting_Material.mat.meta │ │ │ ├── BakedLighting_Text.mat │ │ │ └── BakedLighting_Text.mat.meta │ │ ├── RealtimeLighting.meta │ │ └── RealtimeLighting │ │ │ ├── RealtimeLight.cs │ │ │ ├── RealtimeLight.cs.meta │ │ │ ├── RealtimeLighting.cs │ │ │ ├── RealtimeLighting.cs.meta │ │ │ ├── RealtimeLighting.unity │ │ │ ├── RealtimeLighting.unity.meta │ │ │ ├── RealtimeLighting_LightHalo.mat │ │ │ ├── RealtimeLighting_LightHalo.mat.meta │ │ │ ├── RealtimeLighting_Material.mat │ │ │ ├── RealtimeLighting_Material.mat.meta │ │ │ ├── RealtimeLighting_TextMaterial.mat │ │ │ └── RealtimeLighting_TextMaterial.mat.meta │ ├── MaterialTest.meta │ ├── MaterialTest │ │ ├── AxisRotation.cs │ │ ├── AxisRotation.cs.meta │ │ ├── GPUInstancing.meta │ │ ├── GPUInstancing │ │ │ ├── Standard_GPUInstancing.mat │ │ │ └── Standard_GPUInstancing.mat.meta │ │ ├── MaterialTest.unity │ │ ├── MaterialTest.unity.meta │ │ ├── RenderTexture.meta │ │ ├── RenderTexture │ │ │ ├── RenderTexture.mat │ │ │ ├── RenderTexture.mat.meta │ │ │ ├── RenderTexture.renderTexture │ │ │ ├── RenderTexture.renderTexture.meta │ │ │ ├── RenderTexture_BackgroundMaterial.mat │ │ │ ├── RenderTexture_BackgroundMaterial.mat.meta │ │ │ ├── RenderTexture_ForegroundMaterial.mat │ │ │ └── RenderTexture_ForegroundMaterial.mat.meta │ │ ├── SetTargetBuffers.meta │ │ ├── SetTargetBuffers │ │ │ ├── ClearPlaneMaterial.mat │ │ │ ├── ClearPlaneMaterial.mat.meta │ │ │ ├── ColorPlaneMaterial.mat │ │ │ ├── ColorPlaneMaterial.mat.meta │ │ │ ├── DepthCubeMaterial.mat │ │ │ ├── DepthCubeMaterial.mat.meta │ │ │ ├── OutputCubeMaterial.mat │ │ │ ├── OutputCubeMaterial.mat.meta │ │ │ ├── SetTargetBufferRenderTexture.renderTexture │ │ │ ├── SetTargetBufferRenderTexture.renderTexture.meta │ │ │ ├── SetTargetBufferTest.cs │ │ │ ├── SetTargetBufferTest.cs.meta │ │ │ ├── SetTargetBuffersMaterial.mat │ │ │ └── SetTargetBuffersMaterial.mat.meta │ │ ├── StandardShader_Opaque.meta │ │ ├── StandardShader_Opaque │ │ │ ├── StandardShader_Opaque.mat │ │ │ └── StandardShader_Opaque.mat.meta │ │ ├── StandardShader_Transparent.meta │ │ ├── StandardShader_Transparent │ │ │ ├── StandardShader_TransparentInside.mat │ │ │ ├── StandardShader_TransparentInside.mat.meta │ │ │ ├── StandardShader_TransparentOutside.mat │ │ │ └── StandardShader_TransparentOutside.mat.meta │ │ ├── Stencils.meta │ │ └── Stencils │ │ │ ├── BackfaceMaterial.mat │ │ │ ├── BackfaceMaterial.mat.meta │ │ │ ├── InnerMaterial.mat │ │ │ ├── InnerMaterial.mat.meta │ │ │ ├── OuterMaterial.mat │ │ │ ├── OuterMaterial.mat.meta │ │ │ ├── StencilBufferBackfaceShader.shader │ │ │ ├── StencilBufferBackfaceShader.shader.meta │ │ │ ├── StencilBufferInnerSphereShader.shader │ │ │ ├── StencilBufferInnerSphereShader.shader.meta │ │ │ ├── StencilBufferOuterSphereShader.shader │ │ │ ├── StencilBufferOuterSphereShader.shader.meta │ │ │ ├── StencilBufferShader.shader │ │ │ ├── StencilBufferShader.shader.meta │ │ │ ├── StencilMaskMaterial.mat │ │ │ └── StencilMaskMaterial.mat.meta │ ├── PerformanceTest.meta │ ├── PerformanceTest │ │ ├── FloorMaterial.mat │ │ ├── FloorMaterial.mat.meta │ │ ├── HazeMaterial.mat │ │ ├── HazeMaterial.mat.meta │ │ ├── MistMaterial.mat │ │ ├── MistMaterial.mat.meta │ │ ├── Performance.cs │ │ ├── Performance.cs.meta │ │ ├── PerformanceTest.unity │ │ ├── PerformanceTest.unity.meta │ │ ├── SpiralMaterial.mat │ │ ├── SpiralMaterial.mat.meta │ │ ├── SpiralMaterial.shader │ │ ├── SpiralMaterial.shader.meta │ │ ├── Thickness.png │ │ └── Thickness.png.meta │ ├── SceneTemplate.meta │ ├── SceneTemplate │ │ ├── Template.unity │ │ └── Template.unity.meta │ ├── SharedAssets.meta │ ├── SharedAssets │ │ ├── Billboard.cs │ │ ├── Billboard.cs.meta │ │ ├── GroundMaterial.mat │ │ ├── GroundMaterial.mat.meta │ │ ├── LightHalo.mat │ │ ├── LightHalo.mat.meta │ │ ├── LightHaloShader.shader │ │ ├── LightHaloShader.shader.meta │ │ ├── LookAt.cs │ │ ├── LookAt.cs.meta │ │ ├── Navigation.meta │ │ ├── Navigation │ │ │ ├── ArrowMaterial.mat │ │ │ ├── ArrowMaterial.mat.meta │ │ │ ├── ArrowStandardShader.shader │ │ │ ├── ArrowStandardShader.shader.meta │ │ │ ├── GazeMaterial.mat │ │ │ ├── GazeMaterial.mat.meta │ │ │ ├── GazeSprite.cs │ │ │ ├── GazeSprite.cs.meta │ │ │ ├── GazeStandardShader.shader │ │ │ ├── GazeStandardShader.shader.meta │ │ │ ├── Navigation.cs │ │ │ ├── Navigation.cs.meta │ │ │ ├── NavigationArrow.cs │ │ │ ├── NavigationArrow.cs.meta │ │ │ ├── NavigationArrows.prefab │ │ │ ├── NavigationArrows.prefab.meta │ │ │ ├── gazeSprite.psd │ │ │ └── gazeSprite.psd.meta │ │ ├── Orbit.cs │ │ ├── Orbit.cs.meta │ │ ├── RandomOrbit.cs │ │ ├── RandomOrbit.cs.meta │ │ ├── Scaler.cs │ │ ├── Scaler.cs.meta │ │ ├── Translate.cs │ │ ├── Translate.cs.meta │ │ ├── XRSetup.cs │ │ ├── XRSetup.cs.meta │ │ ├── models.fbx │ │ └── models.fbx.meta │ ├── TerrainTest.meta │ └── TerrainTest │ │ ├── Fruit.mat │ │ ├── Fruit.mat.meta │ │ ├── Terrain.asset │ │ ├── Terrain.asset.meta │ │ ├── TerrainTest.unity │ │ ├── TerrainTest.unity.meta │ │ ├── Tree.prefab │ │ ├── Tree.prefab.meta │ │ ├── TreePrefab.prefab │ │ ├── TreePrefab.prefab.meta │ │ ├── Tree_Textures.meta │ │ ├── Tree_Textures │ │ ├── diffuse.png │ │ ├── diffuse.png.meta │ │ ├── normal_specular.png │ │ ├── normal_specular.png.meta │ │ ├── shadow.png │ │ ├── shadow.png.meta │ │ ├── translucency_gloss.png │ │ └── translucency_gloss.png.meta │ │ ├── fruitAlbedo.psd │ │ ├── fruitAlbedo.psd.meta │ │ ├── fruitNormal.psd │ │ └── fruitNormal.psd.meta ├── WSATestCertificate.pfx ├── WSATestCertificate.pfx.meta ├── XR.meta └── XR │ ├── Loaders.meta │ └── Loaders │ ├── Google Cardboard XR Loader.asset │ ├── Google Cardboard XR Loader.asset.meta │ ├── Google Daydream XR Loader.asset │ └── Google Daydream XR Loader.asset.meta ├── CONTRIBUTING ├── CONTRIBUTIONS.md ├── Documentation ├── XRAssessmentDocumentation.pdf ├── bakedLighting.png ├── canvasButton.png ├── canvasSlider.png ├── canvasText.png ├── canvasToggle.png ├── effectsLineRenderer.png ├── effectsParticles.png ├── effectsProjector.png ├── effectsSprite.png ├── effectsTerrain.png ├── effectsTrailRenderer.png ├── inputButtons.png ├── inputNodeStates.png ├── inputTrackedPoseDriver.png ├── inputTracking.png ├── lightDirectional.png ├── lightPoint.png ├── lightingSpot.png ├── materialsGPUInstancing.png ├── materialsRenderTexture.png ├── materialsSetTargetBuffers.png ├── materialsStandard.png ├── materialsStencil.png ├── materialsTransparent.png ├── navigationArrows.png └── performance.png ├── LICENSE.md ├── Packages └── manifest.json ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset ├── UnityConnectSettings.asset ├── VFXManager.asset └── XRSettings.asset ├── README.md └── assetSources ├── models.blend ├── models.blend.meta ├── models.blend1 └── models.blend1.meta /.gitignore: -------------------------------------------------------------------------------- 1 | syntax: glob 2 | 3 | .vs/ 4 | Builds/ 5 | Library/ 6 | Temp/ 7 | bin/ 8 | obj/ 9 | *.csproj 10 | *.user 11 | *.sln 12 | *.suo 13 | *.orig 14 | *.orig.meta 15 | *.preformat.bak 16 | *.preformat.bak.meta 17 | Assets/Resources/TestAttributes.* 18 | Assets/Resources/PlayerSettings.* -------------------------------------------------------------------------------- /.gradle/4.6/fileChanges/last-build.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gradle/4.6/fileHashes/fileHashes.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/.gradle/4.6/fileHashes/fileHashes.lock -------------------------------------------------------------------------------- /.gradle/4.6/taskHistory/taskHistory.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/.gradle/4.6/taskHistory/taskHistory.lock -------------------------------------------------------------------------------- /.gradle/buildOutputCleanup/buildOutputCleanup.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/.gradle/buildOutputCleanup/buildOutputCleanup.lock -------------------------------------------------------------------------------- /.gradle/buildOutputCleanup/cache.properties: -------------------------------------------------------------------------------- 1 | #Thu Nov 15 16:45:49 PST 2018 2 | gradle.version=4.6 3 | -------------------------------------------------------------------------------- /Assets/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9f9ada7c37e865d4f9e66c2ae392b4c6 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Editor/Build.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a9a893a2b4951cf448443e4b8989c344 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Editor/BuildWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0e48847d1d557fb4cb6054fd2636f732 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Editor/Options.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9f2ff5192b48b1a48ae0391aeb1065b6 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 303c0581ea3182a4a84d8297b3f9c170 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Android.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f24a1b7931918684d884191043d67d95 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Android/assets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d4e7e5a7dec278b4b96b852b21280fed 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Android/assets/oculussig_239deed505057ece: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Assets/Plugins/Android/assets/oculussig_239deed505057ece -------------------------------------------------------------------------------- /Assets/Plugins/Android/assets/oculussig_239deed505057ece.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6e016372e454eee47bbec11dd21a2361 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Plugins/Android/assets/oculussig_5702c45d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Assets/Plugins/Android/assets/oculussig_5702c45d -------------------------------------------------------------------------------- /Assets/Plugins/Android/assets/oculussig_5702c45d.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1e15dafed6a143740a8d551c0867c5f4 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Plugins/Android/assets/oculussig_85b6364b49363431: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Assets/Plugins/Android/assets/oculussig_85b6364b49363431 -------------------------------------------------------------------------------- /Assets/Plugins/Android/assets/oculussig_85b6364b49363431.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 68081a40f83016b4d97fc3c005fb8407 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Plugins/Android/assets/oculussig_993526aa: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Assets/Plugins/Android/assets/oculussig_993526aa -------------------------------------------------------------------------------- /Assets/Plugins/Android/assets/oculussig_993526aa.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d6350bdefc159e54b8cd359ea8549952 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4f704ae4b4f98ae41a0bce26658850c1 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/APICheckTest.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 69e54717b7758854ea39ad03a7b1e15c 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/APICheckTest/APICheck.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 850f7f0a6b66ced4bab56e4ac7506f88 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scenes/APICheckTest/APICheckTest.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9d50340ba7f4e0b4a9a7768d8870f44d 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes/CanvasTest.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 34c67843c54a5884aa11c9b98f3323da 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/CanvasTest/CanvasTest.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f0c77c4076271e84ab9e4de36245e2fe 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes/CanvasTest/CanvasTextDisplay.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEngine.UI; 5 | 6 | public class CanvasTextDisplay : MonoBehaviour { 7 | 8 | public TextMesh textMesh; 9 | 10 | public float fadeTime = 1.0f; 11 | public float timer = 0.0f; 12 | public Color disableColor; 13 | public Color enableColor; 14 | 15 | bool m_State = false; 16 | 17 | void Update () { 18 | 19 | timer += m_State ? Time.deltaTime : -Time.deltaTime; 20 | timer = Mathf.Clamp(timer, 0.0f, fadeTime); 21 | 22 | if (textMesh != null) 23 | { 24 | textMesh.color = Color.Lerp(disableColor, enableColor, Mathf.Clamp01(timer / fadeTime)); 25 | } 26 | 27 | } 28 | 29 | public void OnEnter() 30 | { 31 | m_State = true; 32 | 33 | } 34 | 35 | public void OnExit() 36 | { 37 | m_State = false; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Assets/Scenes/CanvasTest/CanvasTextDisplay.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 60ae396213a0bff438913155fc874321 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scenes/CanvasTest/CursorMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f9a3586aedf176f44981ff45a4e8f7e7 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/CanvasTest/GazeInput.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6f576abec3dc9e54fb2ce4917485f3c6 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scenes/CanvasTest/VRInput.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0df998e824d994746aad0b859193f6a3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scenes/CanvasTest/VRInputModule.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.EventSystems; 3 | using UnityEngine.VR; 4 | 5 | [RequireComponent(typeof(VRInput))] 6 | [AddComponentMenu("Event/VR Input Module")] 7 | public class VRInputModule : StandaloneInputModule 8 | { 9 | protected override void Awake() 10 | { 11 | m_InputOverride = GetComponent(); 12 | } 13 | 14 | public override bool IsModuleSupported() 15 | { 16 | return base.IsModuleSupported() && UnityEngine.XR.XRSettings.isDeviceActive; 17 | } 18 | 19 | protected override MouseState GetMousePointerEventData(int id) 20 | { 21 | var state = base.GetMousePointerEventData(id); 22 | var button = state.GetButtonState(PointerEventData.InputButton.Left); 23 | 24 | button.eventData.buttonData.delta = Vector2.one; 25 | 26 | state.SetButtonState(PointerEventData.InputButton.Left, button.eventData.buttonState, button.eventData.buttonData); 27 | return state; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Assets/Scenes/CanvasTest/VRInputModule.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 55da842a8a9a6b14a888a527386257e7 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scenes/CanvasTest/uiOutline.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Assets/Scenes/CanvasTest/uiOutline.psd -------------------------------------------------------------------------------- /Assets/Scenes/EffectTest.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 90a2a347b1dd45047ba843b50730599d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/EffectTest/EffectTest.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ff97ddddc5cb2614fb34ea5c5345914a 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes/EffectTest/Line.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3ee1f8ea4424289469fd3a59866bd0f1 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/EffectTest/Line/Line.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | [RequireComponent(typeof(LineRenderer))] 6 | public class Line : MonoBehaviour { 7 | 8 | public int pointCount = 16; 9 | public float spiralFactor = 1f; 10 | public float spiralLength = 10.0f; 11 | public float minSpiralFactor = 0.05f; 12 | public float maxSpiralFactor = 0.1f; 13 | public float animationSpeed = 2.0f; 14 | 15 | LineRenderer m_LineRenderer; 16 | Vector3[] m_Points; 17 | 18 | public Vector3 GetSphericalSpiralPoint(float a, float t) 19 | { 20 | Vector3 point; 21 | 22 | t = (t - 0.5f) * 2.0f; 23 | 24 | float d = t * spiralLength; 25 | 26 | float c = Mathf.Sqrt(1 + (a * a) * (d * d)); 27 | 28 | point.x = Mathf.Cos(d) / c; 29 | point.y = Mathf.Sin(d) / c; 30 | point.z = -((a * d) / c); 31 | 32 | return point; 33 | } 34 | 35 | void Awake() 36 | { 37 | m_LineRenderer = GetComponent(); 38 | 39 | } 40 | 41 | void Start() 42 | { 43 | m_Points = new Vector3[pointCount]; 44 | } 45 | 46 | void Update() 47 | { 48 | if(m_Points.Length != pointCount) 49 | { 50 | m_Points = new Vector3[pointCount]; 51 | } 52 | 53 | spiralFactor = ((Mathf.Sin(Time.time * animationSpeed) * 0.5f + 0.5f) * (maxSpiralFactor - minSpiralFactor)) + minSpiralFactor; 54 | 55 | float denominator = 1.0f / (float)pointCount; 56 | for(int i = 0; i < pointCount; i++) 57 | { 58 | m_Points[i] = transform.TransformPoint(GetSphericalSpiralPoint(spiralFactor, (float)i * denominator)); 59 | } 60 | 61 | m_LineRenderer.useWorldSpace = true; 62 | m_LineRenderer.positionCount = pointCount; 63 | m_LineRenderer.SetPositions(m_Points); 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /Assets/Scenes/EffectTest/Line/Line.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2062226760d92d14c83c3fc34add9e0a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scenes/EffectTest/Line/LineRendererMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 56af544021b09f24197c1ebaba34f108 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/EffectTest/Line/LineRendererStandardShader.shader: -------------------------------------------------------------------------------- 1 | Shader "Custom/LineRendererStandardShader" { 2 | Properties { 3 | _Albedo ("Albedo", Color) = (1,1,1,1) 4 | _Glossiness ("Smoothness", Range(0,1)) = 0.5 5 | _Metallic ("Metallic", Range(0,1)) = 0.0 6 | } 7 | SubShader { 8 | Tags { "RenderType"="Opaque" } 9 | LOD 200 10 | 11 | CGPROGRAM 12 | 13 | #pragma surface surf Standard 14 | 15 | #pragma target 3.0 16 | 17 | struct Input { 18 | float4 color : COLOR; 19 | }; 20 | 21 | half _Glossiness; 22 | half _Metallic; 23 | fixed4 _Albedo; 24 | 25 | UNITY_INSTANCING_BUFFER_START(Props) 26 | UNITY_INSTANCING_BUFFER_END(Props) 27 | 28 | void surf (Input IN, inout SurfaceOutputStandard o) { 29 | o.Albedo = _Albedo; 30 | o.Metallic = _Metallic; 31 | o.Smoothness = _Glossiness; 32 | o.Emission = IN.color.rgb; 33 | o.Alpha = IN.color.a; 34 | } 35 | ENDCG 36 | } 37 | FallBack "Diffuse" 38 | } 39 | -------------------------------------------------------------------------------- /Assets/Scenes/EffectTest/Line/LineRendererStandardShader.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a523d5936ce06264ab727d316ceb8d2c 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Scenes/EffectTest/Particles.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: de2e04f13a1e61346a8b84dce917ae8e 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/EffectTest/Particles/ParticleSphereMaterial.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_PrefabInternal: {fileID: 0} 9 | m_Name: ParticleSphereMaterial 10 | m_Shader: {fileID: 10755, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0.5 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 0.9044118, g: 0.5743015, b: 0, a: 1} 76 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/Scenes/EffectTest/Particles/ParticleSphereMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e97d3b5608f92fb4382637342f0b1b11 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/EffectTest/Particles/Spark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Assets/Scenes/EffectTest/Particles/Spark.png -------------------------------------------------------------------------------- /Assets/Scenes/EffectTest/Particles/Spark.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 497135367e344694d9e7a95329e0e69b 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | externalObjects: {} 6 | serializedVersion: 6 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: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | platformSettings: 61 | - serializedVersion: 2 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 | spriteSheet: 73 | serializedVersion: 2 74 | sprites: [] 75 | outline: [] 76 | physicsShape: [] 77 | bones: [] 78 | spriteID: 79 | vertices: [] 80 | indices: 81 | edges: [] 82 | weights: [] 83 | spritePackingTag: 84 | userData: 85 | assetBundleName: 86 | assetBundleVariant: 87 | -------------------------------------------------------------------------------- /Assets/Scenes/EffectTest/Particles/SparkMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7240108f1e00974499f61fe59ba018c7 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/EffectTest/Projector.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f89b427a8c5055e4d839f2d9c70d937a 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/EffectTest/Projector/Falloff.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Assets/Scenes/EffectTest/Projector/Falloff.psd -------------------------------------------------------------------------------- /Assets/Scenes/EffectTest/Projector/Falloff.psd.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 23740055e2b119e40a939138ab8070f8 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 1 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 1 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: 1 28 | maxTextureSize: 256 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: 1 34 | nPOTScale: 1 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 0 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 0 46 | textureType: 5 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | -------------------------------------------------------------------------------- /Assets/Scenes/EffectTest/Projector/LightProjector.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c8c80c5b03f5c7e40b07eb2170e667e5 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/Scenes/EffectTest/Projector/ProjectorBarMaterial.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_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: ProjectorBarMaterial 10 | m_Shader: {fileID: 10755, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0.5 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 0.9960785, g: 0.63529414, b: 0.003921569, a: 1} 76 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/Scenes/EffectTest/Projector/ProjectorBarMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9d507a3b925e2ac4d950caa6a4d6bb2f 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/EffectTest/Projector/ProjectorLight.shader: -------------------------------------------------------------------------------- 1 | Shader "Projector/Light" { 2 | Properties { 3 | _Color ("Main Color", Color) = (1,1,1,1) 4 | _ShadowTex ("Cookie", 2D) = "" {} 5 | _FalloffTex ("FallOff", 2D) = "" {} 6 | } 7 | 8 | Subshader { 9 | Tags {"Queue"="Transparent"} 10 | Pass { 11 | ZWrite Off 12 | ColorMask RGB 13 | Blend DstColor One 14 | Offset -1, -1 15 | 16 | CGPROGRAM 17 | #pragma vertex vert 18 | #pragma fragment frag 19 | #pragma multi_compile_fog 20 | #include "UnityCG.cginc" 21 | 22 | struct v2f { 23 | float4 uvShadow : TEXCOORD0; 24 | float4 uvFalloff : TEXCOORD1; 25 | UNITY_FOG_COORDS(2) 26 | float4 pos : SV_POSITION; 27 | }; 28 | 29 | float4x4 unity_Projector; 30 | float4x4 unity_ProjectorClip; 31 | 32 | v2f vert (float4 vertex : POSITION) 33 | { 34 | v2f o; 35 | o.pos = UnityObjectToClipPos(vertex); 36 | o.uvShadow = mul (unity_Projector, vertex); 37 | o.uvFalloff = mul (unity_ProjectorClip, vertex); 38 | UNITY_TRANSFER_FOG(o,o.pos); 39 | return o; 40 | } 41 | 42 | fixed4 _Color; 43 | sampler2D _ShadowTex; 44 | sampler2D _FalloffTex; 45 | 46 | fixed4 frag (v2f i) : SV_Target 47 | { 48 | fixed4 texS = tex2Dproj (_ShadowTex, UNITY_PROJ_COORD(i.uvShadow)); 49 | texS.rgb *= _Color.rgb; 50 | texS.a = 1.0-texS.a; 51 | 52 | fixed4 texF = tex2Dproj (_FalloffTex, UNITY_PROJ_COORD(i.uvFalloff)); 53 | fixed4 res = texS * texF.a; 54 | 55 | UNITY_APPLY_FOG_COLOR(i.fogCoord, res, fixed4(0,0,0,0)); 56 | return res; 57 | } 58 | ENDCG 59 | } 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /Assets/Scenes/EffectTest/Projector/ProjectorLight.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c0ace1ca4bc0718448acf798c93d52d9 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/Scenes/EffectTest/Projector/ProjectorRotation.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class ProjectorRotation : MonoBehaviour { 6 | 7 | public float sinusoidalVelocity; 8 | public float sinusoidalMaxRotation; 9 | public Transform parentTransform; 10 | 11 | void Start () { 12 | } 13 | 14 | void UpdateRotation() 15 | { 16 | if (parentTransform != null) 17 | { 18 | float angle = Mathf.Sin(Time.time * sinusoidalVelocity) * sinusoidalMaxRotation; 19 | Quaternion sinusoidalRotation = Quaternion.AngleAxis(angle, parentTransform.forward); 20 | 21 | transform.localRotation = sinusoidalRotation; 22 | } 23 | } 24 | 25 | void Update () { 26 | UpdateRotation(); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Assets/Scenes/EffectTest/Projector/ProjectorRotation.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c6c2f811ea0c63b468c48cf86f4869fe 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scenes/EffectTest/Projector/squareProjector.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Assets/Scenes/EffectTest/Projector/squareProjector.psd -------------------------------------------------------------------------------- /Assets/Scenes/EffectTest/Sprites.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f3063fa72fe7d2d4fa2cf398d9f8bbfc 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/EffectTest/Sprites/SpriteTest.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Assets/Scenes/EffectTest/Sprites/SpriteTest.psd -------------------------------------------------------------------------------- /Assets/Scenes/EffectTest/Sprites/outlineSprite.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Assets/Scenes/EffectTest/Sprites/outlineSprite.tga -------------------------------------------------------------------------------- /Assets/Scenes/EffectTest/Trail.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7ee2b4dadc58d1a4eacea5965c90622e 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/EffectTest/Trail/TrailMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 70e8514523df0cc4c955d558d48902be 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/EffectTest/Trail/TrailRenderer.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 686bf0c31b1dbea44bf75bd3bc91ddad 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 100100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 13b7994a7bf13e241a5bf634a7e34041 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/InputRegressionTest.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d2e19aec385c9284aa61de3cea3bbce3 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a0144dea946ee9a47abcd44c234a30c2 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Materials/Blue.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_PrefabInternal: {fileID: 0} 9 | m_Name: Blue 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: _EMISSION 12 | m_LightmapFlags: 0 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0.5 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 0, g: 0, b: 1, a: 1} 76 | - _EmissionColor: {r: 0, g: 0, b: 1, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Materials/Blue.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3e71fc0d146284f459ce1eae12a680fb 3 | timeCreated: 1521072280 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 2100000 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Materials/Green.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_PrefabInternal: {fileID: 0} 9 | m_Name: Green 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: _EMISSION 12 | m_LightmapFlags: 0 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0.5 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 0, g: 1, b: 0, a: 1} 76 | - _EmissionColor: {r: 0, g: 1, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Materials/Green.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aba5e8bdbbff4d047b26ccd261c7fbee 3 | timeCreated: 1521072280 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 2100000 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Materials/Orange.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_PrefabInternal: {fileID: 0} 9 | m_Name: Orange 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: _EMISSION 12 | m_LightmapFlags: 0 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0.5 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 0.9960785, g: 0.63529414, b: 0.003921569, a: 1} 76 | - _EmissionColor: {r: 0.9960785, g: 0.63529414, b: 0.003921569, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Materials/Orange.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b5b03486a4af7904f9a9302193de0727 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Materials/Red.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_PrefabInternal: {fileID: 0} 9 | m_Name: Red 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: _EMISSION 12 | m_LightmapFlags: 0 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0.5 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 1, g: 0, b: 0, a: 1} 76 | - _EmissionColor: {r: 1, g: 0, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Materials/Red.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9bc54723c2ee5594b9b0d035af3db0a6 3 | timeCreated: 1521072280 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | externalObjects: {} 7 | mainObjectFileID: 2100000 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cdda085ce431bcd408321e879b30329d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Scripts/AxisProxy.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEngine.UI; 5 | 6 | public class AxisProxy : MonoBehaviour 7 | { 8 | 9 | 10 | public string axisId; 11 | public string axisName; 12 | 13 | public Text textComponent; 14 | public Slider sliderComponent; 15 | public Text valueTextComponent; 16 | 17 | // Update is called once per frame 18 | void Update() 19 | { 20 | if (textComponent != null) 21 | { 22 | textComponent.text = axisName; 23 | } 24 | 25 | float value = Input.GetAxis(axisId); 26 | if (sliderComponent != null) 27 | { 28 | sliderComponent.value = value; 29 | } 30 | 31 | if (valueTextComponent != null) 32 | { 33 | valueTextComponent.text = value.ToString("F"); 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Scripts/AxisProxy.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7ea212c335689c2438d28370743d4ce7 3 | timeCreated: 1501098712 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Scripts/ButtonProxy.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEngine.UI; 5 | 6 | public class ButtonProxy : MonoBehaviour 7 | { 8 | public string buttonId; 9 | public string buttonName; 10 | 11 | public Text textComponent; 12 | public Image imageComponent; 13 | 14 | private void Start() 15 | { 16 | if (textComponent != null) 17 | { 18 | textComponent.text = buttonName; 19 | } 20 | } 21 | 22 | // Update is called once per frame 23 | void Update () 24 | { 25 | 26 | if(imageComponent != null) 27 | { 28 | if (Input.GetButton(buttonId)) 29 | { 30 | imageComponent.color = Color.green; 31 | } 32 | else 33 | { 34 | imageComponent.color = Color.red; 35 | } 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Scripts/ButtonProxy.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3934cbb7b6f59e24ebb5d857bb988a17 3 | timeCreated: 1501091725 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Scripts/FloorOffset.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | using UnityEngine.XR; 6 | 7 | public class FloorOffset : MonoBehaviour { 8 | 9 | public Vector3 offsetAmount = Vector3.zero; 10 | 11 | // Use this for initialization 12 | void Start () { 13 | if (XRDevice.GetTrackingSpaceType() == TrackingSpaceType.Stationary) 14 | { 15 | transform.position += offsetAmount; 16 | } 17 | } 18 | 19 | // Update is called once per frame 20 | void Update () { 21 | 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Scripts/FloorOffset.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f61e518bb250cd84c955bc1ae26024b9 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Scripts/FunctionalTest.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | using UnityEngine.XR; 6 | 7 | public class FunctionalTest : MonoBehaviour { 8 | 9 | // Update is called once per frame 10 | void Update () { 11 | 12 | if (Input.GetKeyDown(KeyCode.Q)) 13 | { 14 | InputTracking.Recenter(); 15 | Debug.Log("Orientation Recentered."); 16 | } 17 | 18 | if (Input.GetKeyDown(KeyCode.W)) 19 | { 20 | InputTracking.disablePositionalTracking = !InputTracking.disablePositionalTracking; 21 | Debug.Log("InputTracking.disablePositionalTracking set to " + InputTracking.disablePositionalTracking); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Scripts/FunctionalTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a122eee23c7bec54ca4db056d24ff5a6 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Scripts/GetJoystickNamesToText.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | using UnityEngine.UI; 6 | using UnityEngine.XR; 7 | 8 | public class GetJoystickNamesToText : MonoBehaviour { 9 | 10 | public Text joystickNamesText; 11 | 12 | void Start() 13 | { 14 | ShowJoystickNames(); 15 | StartCoroutine("UpdateJoystickNamesEveryDelay", 3); 16 | } 17 | 18 | 19 | IEnumerator UpdateJoystickNamesEveryDelay(float delayInSeconds) 20 | { 21 | yield return new WaitForSeconds(delayInSeconds); 22 | 23 | ShowJoystickNames(); 24 | StartCoroutine("UpdateJoystickNamesEveryDelay", delayInSeconds); 25 | } 26 | 27 | void ShowJoystickNames() 28 | { 29 | string displayTextAccumulator = ""; 30 | int joystickNumber = 0; 31 | 32 | foreach (string device in Input.GetJoystickNames()) 33 | { 34 | displayTextAccumulator += ("<" + joystickNumber + "> " + device + "\n"); 35 | joystickNumber++; 36 | } 37 | joystickNamesText.text = displayTextAccumulator; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Scripts/GetJoystickNamesToText.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 022efda111f7db54a894085d0433291a 3 | timeCreated: 1521048573 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Scripts/GetNodeStates.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d9ba06df2a60b7a4bb43105c3567a313 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Scripts/NodeEventsToText.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6aaf2251d8136bd418c02a6e46103532 3 | timeCreated: 1521050505 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Scripts/NodeStateDisplay.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bea7dac188d99364caf164415a82a371 3 | timeCreated: 1513035597 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Scripts/StickProxy.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEngine.UI; 5 | 6 | public class StickProxy : MonoBehaviour 7 | { 8 | 9 | 10 | public string horizontalAxisId; 11 | public string verticalAxisId; 12 | public string axisName; 13 | 14 | public Text textComponent; 15 | public Slider horizontalSliderComponent; 16 | public Slider verticalSliderComponent; 17 | public Text valueTextComponent; 18 | 19 | // Update is called once per frame 20 | void Update() 21 | { 22 | if (textComponent != null) 23 | { 24 | textComponent.text = axisName; 25 | } 26 | 27 | float horizontalValue = Input.GetAxis(horizontalAxisId); 28 | if (horizontalSliderComponent != null) 29 | { 30 | horizontalSliderComponent.value = horizontalValue; 31 | } 32 | 33 | float verticalValue = Input.GetAxis(verticalAxisId); 34 | if (verticalSliderComponent != null) 35 | { 36 | verticalSliderComponent.value = verticalValue; 37 | } 38 | 39 | if (valueTextComponent != null) 40 | { 41 | valueTextComponent.text = string.Format("[{0},{1}]", horizontalValue.ToString("F"), verticalValue.ToString("F")); 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Scripts/StickProxy.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4fa8e940702166142a6f004238a0e9e1 3 | timeCreated: 1501104476 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Scripts/SupportedAndLoadedDevicesToText.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | using UnityEngine.UI; 6 | using UnityEngine.XR; 7 | 8 | public class SupportedAndLoadedDevicesToText : MonoBehaviour { 9 | 10 | public Text loadedDeviceText; 11 | public Text supportedDeviceText; 12 | 13 | // Use this for initialization 14 | void Start () { 15 | string displayTextAccumulator; 16 | 17 | // Loaded device 18 | loadedDeviceText.text = XRSettings.loadedDeviceName; 19 | 20 | // Supported devices (this build) 21 | displayTextAccumulator = ""; 22 | foreach (string device in XRSettings.supportedDevices) 23 | { 24 | displayTextAccumulator += device + ", "; 25 | } 26 | supportedDeviceText.text = displayTextAccumulator; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Scripts/SupportedAndLoadedDevicesToText.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0b6a4d1522b665349b13deeb7044efbf 3 | timeCreated: 1521048343 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Scripts/TPDToText.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | using UnityEngine.SpatialTracking; 6 | 7 | [RequireComponent (typeof(TrackedPoseDriver))] 8 | public class TPDToText : MonoBehaviour { 9 | 10 | public TextMesh LabelText; 11 | 12 | // Use this for initialization 13 | void Start () { 14 | TrackedPoseDriver tpd = GetComponent(); 15 | 16 | LabelText.text = tpd.deviceType.ToString() + ": " + tpd.poseSource.ToString(); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Scripts/TPDToText.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dc36fce06ac7ac9459598c676d29e82f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Scripts/TestInstructions.cs: -------------------------------------------------------------------------------- 1 | using System.Text; 2 | using UnityEngine; 3 | 4 | public class TestInstructions : MonoBehaviour //, ITestTextProvider 5 | { 6 | [SerializeField, TextArea] string m_Instructions; 7 | [SerializeField, TextArea] string m_StandaloneInstructions; 8 | [SerializeField, TextArea] string m_MobileInstructions; 9 | 10 | public int testTextOrder { get { return 0; } } 11 | 12 | public string GetFullString() 13 | { 14 | return m_Instructions + " " + (Application.isMobilePlatform ? m_MobileInstructions : m_StandaloneInstructions); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Scripts/TestInstructions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 917166d83fe2e994db3bfb9effb5ee6e 3 | timeCreated: 1521071784 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Scripts/Usages.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f01f199d5390ecc40bdba0c90d98a688 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Scripts/Usages/AxisRangeCheck.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1a0ab70935c3e684dab4ebef8642fbc6 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Scripts/Usages/AxisUsageProxy.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEngine.UI; 5 | using UnityEngine.XR; 6 | 7 | public class AxisUsageProxy : MonoBehaviour 8 | { 9 | public XRNode node; 10 | public string usageName; 11 | 12 | public Text textComponent; 13 | public Slider sliderComponent; 14 | public Text valueTextComponent; 15 | 16 | public float currentValue { get; private set; } 17 | 18 | private void Start() 19 | { 20 | if (textComponent != null) 21 | { 22 | textComponent.text = usageName; 23 | } 24 | } 25 | 26 | // Update is called once per frame 27 | void Update() 28 | { 29 | float value; 30 | InputDevice device = InputDevices.GetDeviceAtXRNode(node); 31 | 32 | if (!InputDevices.GetDeviceAtXRNode(node).TryGetFeatureValue(new InputFeatureUsage(usageName), out value)) 33 | return; 34 | 35 | currentValue = value; 36 | 37 | if (sliderComponent != null) 38 | { 39 | sliderComponent.value = value; 40 | } 41 | 42 | if (valueTextComponent != null) 43 | { 44 | valueTextComponent.text = value.ToString("F"); 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Scripts/Usages/AxisUsageProxy.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ed8cda3e062c6840a70d0a14e06342f 3 | timeCreated: 1501098712 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Scripts/Usages/ButtonUsageProxy.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEngine.UI; 5 | using UnityEngine.XR; 6 | 7 | public class ButtonUsageProxy : MonoBehaviour 8 | { 9 | public XRNode node; 10 | public string usageName; 11 | 12 | public Text textComponent; 13 | public Image imageComponent; 14 | 15 | private void Start() 16 | { 17 | if (textComponent != null) 18 | { 19 | textComponent.text = usageName; 20 | } 21 | } 22 | 23 | // Update is called once per frame 24 | void Update() 25 | { 26 | bool buttonState; 27 | InputDevice device = InputDevices.GetDeviceAtXRNode(node); 28 | 29 | if (imageComponent != null 30 | && InputDevices.GetDeviceAtXRNode(node).TryGetFeatureValue(new InputFeatureUsage(usageName), out buttonState) 31 | && buttonState) 32 | { 33 | imageComponent.color = Color.green; 34 | } 35 | else 36 | { 37 | imageComponent.color = Color.red; 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Scripts/Usages/ButtonUsageProxy.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b2aea5518b351bc43a26eed8af7195d7 3 | timeCreated: 1501091725 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Scripts/Usages/DiscreteUsageProxy.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEngine.UI; 5 | using UnityEngine.XR; 6 | 7 | public class DiscreteUsageProxy : MonoBehaviour 8 | { 9 | public XRNode node; 10 | public string usageName; 11 | 12 | public Text titleText; 13 | public Text valueText; 14 | 15 | private void Start() 16 | { 17 | if (titleText != null) 18 | titleText.text = usageName; 19 | 20 | if (valueText != null) 21 | valueText.text = "No Value"; 22 | } 23 | 24 | // Update is called once per frame 25 | void Update() 26 | { 27 | uint DiscreteState; 28 | InputDevice device = InputDevices.GetDeviceAtXRNode(node); 29 | 30 | if (InputDevices.GetDeviceAtXRNode(node).TryGetFeatureValue(new InputFeatureUsage(usageName), out DiscreteState)) 31 | { 32 | valueText.text = "0x" + DiscreteState.ToString("X8"); 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Scripts/Usages/DiscreteUsageProxy.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 60423c8dd78b7a54c9431dd554a8eb20 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Scripts/Usages/ListFeatureUsages.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | using UnityEngine.XR; 6 | using UnityEngine.UI; 7 | 8 | public class ListFeatureUsages : MonoBehaviour 9 | { 10 | public XRNode node; 11 | public Text listText; 12 | 13 | void Start() 14 | { 15 | ShowFeatures(); 16 | StartCoroutine("UpdateFeatureNamesEveryDelay", 3); 17 | } 18 | 19 | IEnumerator UpdateFeatureNamesEveryDelay(float delayInSeconds) 20 | { 21 | yield return new WaitForSeconds(delayInSeconds); 22 | 23 | ShowFeatures(); 24 | StartCoroutine("UpdateFeatureNamesEveryDelay", delayInSeconds); 25 | } 26 | 27 | void ShowFeatures() 28 | { 29 | string displayTextAccumulator = ""; 30 | int nodeNumber = 0; 31 | 32 | InputDevice device = InputDevices.GetDeviceAtXRNode(node); 33 | 34 | if (device == null) 35 | displayTextAccumulator = "Device not found at node " + node.ToString(); 36 | else 37 | { 38 | List features = new List(); 39 | 40 | if (device.TryGetFeatureUsages(features)) 41 | foreach (InputFeatureUsage feature in features) 42 | { 43 | displayTextAccumulator += ("<" + nodeNumber + "> " + feature.name + " - \"" + feature.type.ToString() + "\"\n"); 44 | nodeNumber++; 45 | } 46 | else 47 | displayTextAccumulator = "No Features were found!"; 48 | } 49 | 50 | listText.text = displayTextAccumulator; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Scripts/Usages/ListFeatureUsages.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ab1d74d1e2973884894ab03c1c7f1552 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Scripts/Usages/StickUsageProxy.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEngine.UI; 5 | using UnityEngine.XR; 6 | 7 | public class StickUsageProxy : MonoBehaviour 8 | { 9 | public XRNode node; 10 | public string usageName; 11 | 12 | public Text textComponent; 13 | public Slider horizontalSliderComponent; 14 | public Slider verticalSliderComponent; 15 | public Text valueTextComponent; 16 | 17 | public float currentXValue { get; private set; } 18 | public float currentYValue { get; private set; } 19 | 20 | private void Start() 21 | { 22 | if (textComponent != null) 23 | { 24 | textComponent.text = usageName; 25 | } 26 | } 27 | 28 | // Update is called once per frame 29 | void Update() 30 | { 31 | Vector2 value; 32 | InputDevice device = InputDevices.GetDeviceAtXRNode(node); 33 | 34 | if (!InputDevices.GetDeviceAtXRNode(node).TryGetFeatureValue(new InputFeatureUsage(usageName), out value)) 35 | return; 36 | 37 | currentXValue = value.x; 38 | currentYValue = value.y; 39 | 40 | if (horizontalSliderComponent != null) 41 | horizontalSliderComponent.value = value.x; 42 | 43 | if (verticalSliderComponent != null) 44 | verticalSliderComponent.value = value.y; 45 | 46 | if (valueTextComponent != null) 47 | valueTextComponent.text = string.Format("[{0},{1}]", value.x.ToString("F"), value.y.ToString("F")); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/Scripts/Usages/StickUsageProxy.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3dcecef4ff817ba4794cd70d16e296b6 3 | timeCreated: 1501104476 4 | licenseType: Pro 5 | MonoImporter: 6 | externalObjects: {} 7 | serializedVersion: 2 8 | defaultReferences: [] 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scenes/InputRegressionTest/XRPlatformToText.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c2c55a5f79dca9e479301a7d9fbff31d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scenes/LightingTest.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a429c287af6432d4e84f11051279093d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/LightingTest/BakedLighting.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e0cbce6b60342b94c9c847bfad021b73 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/LightingTest/BakedLighting/BakedLighting.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c431ebb404895f843b5b00524a1b0ae3 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes/LightingTest/BakedLighting/BakedLighting_LightHalo.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bc1dea7b1c1c14049b492c813d768677 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/LightingTest/BakedLighting/BakedLighting_Material.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_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: BakedLighting_Material 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: _EMISSION 12 | m_LightmapFlags: 2 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0.5 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 0, g: 0, b: 0, a: 1} 76 | - _EmissionColor: {r: 1, g: 0.625, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/Scenes/LightingTest/BakedLighting/BakedLighting_Material.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c8092a7d8efdad34e90af72b1fd4146a 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/LightingTest/BakedLighting/BakedLighting_Text.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_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: BakedLighting_Text 10 | m_Shader: {fileID: 10755, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0.5 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 1, g: 1, b: 1, a: 1} 76 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/Scenes/LightingTest/BakedLighting/BakedLighting_Text.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4e69b4bfb2389ab43868e3969d9a6123 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/LightingTest/RealtimeLighting.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2942dbf87300841428dd2f2d1f5fb81b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/LightingTest/RealtimeLighting/RealtimeLight.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEngine.Serialization; 5 | 6 | public class RealtimeLight : MonoBehaviour { 7 | public new Light light { get; private set; } 8 | //public Mesh textMesh; 9 | public Billboard lightHalo { get; private set; } 10 | public GameObject text; 11 | private Material m_LightHaloMaterial; 12 | 13 | public float maxIntensity { get; private set; } 14 | 15 | public float intensity = 0.0f; 16 | 17 | private Color m_PoseHaloColor; 18 | 19 | private void OnDisable() 20 | { 21 | if(text != null) 22 | { 23 | text.SetActive(false); 24 | } 25 | } 26 | 27 | private void OnEnable() 28 | { 29 | if(text != null) 30 | { 31 | text.SetActive(true); 32 | } 33 | } 34 | 35 | public void SetLocalRotation(Quaternion rotation) 36 | { 37 | if(text != null) 38 | { 39 | text.transform.localRotation = rotation; 40 | } 41 | } 42 | 43 | //SetIntensity between 0 and 1 44 | public void SetIntensity(float factor) 45 | { 46 | if(light != null) 47 | { 48 | light.intensity = factor * maxIntensity; 49 | } 50 | if(m_LightHaloMaterial != null) 51 | { 52 | Color haloColor = m_PoseHaloColor; 53 | haloColor.a *= factor; 54 | m_LightHaloMaterial.SetColor("_TintColor", haloColor); 55 | } 56 | intensity = factor; 57 | } 58 | 59 | void Start() 60 | { 61 | light = GetComponentInChildren(); 62 | lightHalo = GetComponentInChildren(); 63 | if (light != null) 64 | { 65 | maxIntensity = light.intensity; 66 | } 67 | 68 | if (lightHalo != null) { 69 | m_LightHaloMaterial = lightHalo.gameObject.GetComponentInChildren().material; 70 | m_PoseHaloColor = m_LightHaloMaterial.GetColor("_TintColor"); 71 | } 72 | SetIntensity(intensity); 73 | } 74 | 75 | } 76 | -------------------------------------------------------------------------------- /Assets/Scenes/LightingTest/RealtimeLighting/RealtimeLight.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8c4e8c2a528e10249858347c11b25f92 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scenes/LightingTest/RealtimeLighting/RealtimeLighting.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9e6d1daa2ed94ba41b683a8bf100aa83 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scenes/LightingTest/RealtimeLighting/RealtimeLighting.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e5ad5d1a62efb224ca028cddac95a49c 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes/LightingTest/RealtimeLighting/RealtimeLighting_LightHalo.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f1ddd9521993a6a4ba16a8cdab6930d7 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/LightingTest/RealtimeLighting/RealtimeLighting_Material.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_PrefabInternal: {fileID: 0} 9 | m_Name: RealtimeLighting_Material 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: _EMISSION 12 | m_LightmapFlags: 2 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0.5 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 1, g: 1, b: 1, a: 1} 76 | - _EmissionColor: {r: 1, g: 0.625, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/Scenes/LightingTest/RealtimeLighting/RealtimeLighting_Material.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1c612c8a0fe16f44bb4bc552db8b766f 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/LightingTest/RealtimeLighting/RealtimeLighting_TextMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ce80f46a6e449343b13034875f1732b 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b9b8fa08af126ea4e8407df350d1f875 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/AxisRotation.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class AxisRotation : MonoBehaviour { 6 | public Vector3 axis; 7 | public float angularSpeed; 8 | public bool isLocal = false; 9 | 10 | private void Update() 11 | { 12 | if (isLocal) 13 | { 14 | transform.localRotation = Quaternion.AngleAxis(angularSpeed * Time.time, axis.normalized); 15 | } 16 | else 17 | { 18 | transform.rotation = Quaternion.AngleAxis(angularSpeed * Time.deltaTime, axis.normalized) * transform.rotation; 19 | } 20 | } 21 | 22 | 23 | } 24 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/AxisRotation.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b336475edb78ea84eb6c530165cb6c8a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/GPUInstancing.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f0a85ea28302c164d86efcce7fd438c4 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/GPUInstancing/Standard_GPUInstancing.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_PrefabInternal: {fileID: 0} 9 | m_Name: Standard_GPUInstancing 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 1 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0.5 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 1, g: 0.63203466, b: 0, a: 1} 76 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/GPUInstancing/Standard_GPUInstancing.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 700e514ecb6f28c4fa81d289d27ddeb6 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/MaterialTest.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2ac1fe7a552ab304c9df224f5969dd41 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/RenderTexture.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e60046071def4b6489646595a5e8fd33 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/RenderTexture/RenderTexture.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1071bc28a8535b240b6c3fa67961fbf7 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/RenderTexture/RenderTexture.renderTexture: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!84 &8400000 4 | RenderTexture: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: RenderTexture 9 | m_ImageContentsHash: 10 | serializedVersion: 2 11 | Hash: 00000000000000000000000000000000 12 | m_ForcedFallbackFormat: 4 13 | m_DownscaleFallback: 0 14 | m_Width: 128 15 | m_Height: 128 16 | m_AntiAliasing: 1 17 | m_DepthFormat: 1 18 | m_ColorFormat: 0 19 | m_MipMap: 0 20 | m_GenerateMips: 1 21 | m_SRGB: 0 22 | m_UseDynamicScale: 0 23 | m_BindMS: 0 24 | m_TextureSettings: 25 | serializedVersion: 2 26 | m_FilterMode: 1 27 | m_Aniso: 0 28 | m_MipBias: 0 29 | m_WrapU: 1 30 | m_WrapV: 1 31 | m_WrapW: 1 32 | m_Dimension: 2 33 | m_VolumeDepth: 1 34 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/RenderTexture/RenderTexture.renderTexture.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 12688776c391b2745b68a22df5a8220d 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 8400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/RenderTexture/RenderTexture_BackgroundMaterial.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_PrefabInternal: {fileID: 0} 9 | m_Name: RenderTexture_BackgroundMaterial 10 | m_Shader: {fileID: 10755, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0.5 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 0, g: 0, b: 0, a: 1} 76 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/RenderTexture/RenderTexture_BackgroundMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b451c4d5b80b9864981239e9117fc6a0 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/RenderTexture/RenderTexture_ForegroundMaterial.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_PrefabInternal: {fileID: 0} 9 | m_Name: RenderTexture_ForegroundMaterial 10 | m_Shader: {fileID: 10755, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0.5 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 1, g: 1, b: 1, a: 1} 76 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/RenderTexture/RenderTexture_ForegroundMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6d2e0b5357606ab498490dd4ca8c1093 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/SetTargetBuffers.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cde08096af386da408b22377184b76ba 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/SetTargetBuffers/ClearPlaneMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4a6bc3b2f8cbb774fa5419beb1b1cb80 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/SetTargetBuffers/ColorPlaneMaterial.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_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: ColorPlaneMaterial 10 | m_Shader: {fileID: 10755, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0.5 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 0.1792453, g: 0.1792453, b: 0.1792453, a: 1} 76 | - _EmissionColor: {r: 0, g: 0.060206927, b: 0.09, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/SetTargetBuffers/ColorPlaneMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 77607df402dbcad4fbc3390bd56c7c59 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/SetTargetBuffers/DepthCubeMaterial.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_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: DepthCubeMaterial 10 | m_Shader: {fileID: 10755, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0.5 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 1, g: 1, b: 1, a: 1} 76 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/SetTargetBuffers/DepthCubeMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d6bb86b31a576f04f9d5aba210aa0c44 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/SetTargetBuffers/OutputCubeMaterial.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_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: OutputCubeMaterial 10 | m_Shader: {fileID: 10752, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 8400000, guid: a4226084a804fa14c9c474761cb3a36a, type: 2} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0.5 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 0, g: 0, b: 0, a: 1} 76 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/SetTargetBuffers/OutputCubeMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 23009f21d29116144bb4e4755e7a7dd4 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/SetTargetBuffers/SetTargetBufferRenderTexture.renderTexture: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!84 &8400000 4 | RenderTexture: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: SetTargetBufferRenderTexture 9 | m_ImageContentsHash: 10 | serializedVersion: 2 11 | Hash: 00000000000000000000000000000000 12 | m_ForcedFallbackFormat: 4 13 | m_DownscaleFallback: 0 14 | m_Width: 256 15 | m_Height: 256 16 | m_AntiAliasing: 1 17 | m_DepthFormat: 2 18 | m_ColorFormat: 0 19 | m_MipMap: 0 20 | m_GenerateMips: 1 21 | m_SRGB: 0 22 | m_UseDynamicScale: 0 23 | m_BindMS: 0 24 | m_TextureSettings: 25 | serializedVersion: 2 26 | m_FilterMode: 1 27 | m_Aniso: 0 28 | m_MipBias: 0 29 | m_WrapU: 1 30 | m_WrapV: 1 31 | m_WrapW: 1 32 | m_Dimension: 2 33 | m_VolumeDepth: 1 34 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/SetTargetBuffers/SetTargetBufferRenderTexture.renderTexture.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f9fdef99e71e8994f8f745ef2d6099d5 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/SetTargetBuffers/SetTargetBufferTest.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class SetTargetBufferTest : MonoBehaviour { 6 | public Camera depthCamera; 7 | public Camera colorCamera; 8 | public Camera clearCamera; 9 | 10 | public RenderTexture outputRT; 11 | private RenderTexture m_UnusedRT; //Used as a throw-away color buffer when rendering the Depth Camera 12 | 13 | void Start () { 14 | 15 | if(outputRT != null) 16 | { 17 | m_UnusedRT = new RenderTexture(outputRT.width, outputRT.height, 0, RenderTextureFormat.ARGB32); 18 | 19 | //Clear output buffers 20 | clearCamera.SetTargetBuffers(outputRT.colorBuffer, outputRT.depthBuffer); 21 | clearCamera.depthTextureMode = DepthTextureMode.Depth; 22 | clearCamera.depth = Camera.main.depth - 3; 23 | 24 | //Draw to depth buffer, sending color buffer to the unused render texture which will be discarded. 25 | depthCamera.SetTargetBuffers(m_UnusedRT.colorBuffer, outputRT.depthBuffer); 26 | depthCamera.depthTextureMode = DepthTextureMode.Depth; 27 | depthCamera.depth = Camera.main.depth - 2; 28 | 29 | //Draw to color and depth buffer without writing depth values 30 | colorCamera.SetTargetBuffers(outputRT.colorBuffer, outputRT.depthBuffer); 31 | colorCamera.depthTextureMode = DepthTextureMode.None; 32 | colorCamera.depth = Camera.main.depth - 1; 33 | } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/SetTargetBuffers/SetTargetBufferTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a2c3b0ccaaa017f42b21728e8c5af1ce 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/SetTargetBuffers/SetTargetBuffersMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9934089719ba04649be6eb425cfff7b7 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/StandardShader_Opaque.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4dad1bfb797529943a7712ded311b04a 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/StandardShader_Opaque/StandardShader_Opaque.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_PrefabInternal: {fileID: 0} 9 | m_Name: StandardShader_Opaque 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0.5 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 1, g: 1, b: 1, a: 1} 76 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/StandardShader_Opaque/StandardShader_Opaque.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1f5f22f7042e8024bbe5d391b66e7bd5 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/StandardShader_Transparent.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0f0ce9795a4b6d944bbf9f027f0d73dd 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/StandardShader_Transparent/StandardShader_TransparentInside.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 015ba84c7404e44469e062f80c1387a2 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/StandardShader_Transparent/StandardShader_TransparentOutside.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 363d91c6f213ee240a9a718baf097bae 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/Stencils.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 56ac81bf765703842ac140e458afce7c 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/Stencils/BackfaceMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c3fe135b59d55b649aaf9886367c9bb0 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/Stencils/InnerMaterial.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_PrefabInternal: {fileID: 0} 9 | m_Name: InnerMaterial 10 | m_Shader: {fileID: 4800000, guid: 2096e82919525794cb244baca256d845, type: 3} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 1 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0.083 64 | - _GlossyReflections: 1 65 | - _Metallic: 0.629 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 0.9044118, g: 0.5743015, b: 0, a: 1} 76 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/Stencils/InnerMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4d6964833fa52244990f287a67ccbdad 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/Stencils/OuterMaterial.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_PrefabInternal: {fileID: 0} 9 | m_Name: OuterMaterial 10 | m_Shader: {fileID: 4800000, guid: 86389e0f4c7ddaa448f1aa83dfff151f, type: 3} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 1 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0.068 64 | - _GlossyReflections: 1 65 | - _Metallic: 0.187 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 0.15686275, g: 0.15686275, b: 0.1764706, a: 1} 76 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/Stencils/OuterMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: caebd8bd044de7b43a99b24146d1bb72 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/Stencils/StencilBufferBackfaceShader.shader: -------------------------------------------------------------------------------- 1 | Shader "Custom/StencilBufferBackfaceShader" { 2 | Properties { 3 | _Color ("Color", Color) = (1,1,1,1) 4 | _MainTex ("Albedo (RGB)", 2D) = "white" {} 5 | _Glossiness ("Smoothness", Range(0,1)) = 0.5 6 | _Metallic ("Metallic", Range(0,1)) = 0.0 7 | _Emission ("Emission", Range(0,2)) = 0.0 8 | _EmissionColor ("EmissionColor", Color) = (0, 0, 0, 0) 9 | } 10 | SubShader { 11 | Tags { "RenderType"="Opaque" } 12 | Cull Front 13 | LOD 200 14 | 15 | CGPROGRAM 16 | #pragma surface surf Standard fullforwardshadows 17 | 18 | #pragma target 3.0 19 | 20 | sampler2D _MainTex; 21 | 22 | struct Input { 23 | float2 uv_MainTex; 24 | }; 25 | 26 | half _Glossiness; 27 | half _Metallic; 28 | fixed4 _Color; 29 | half _Emission; 30 | fixed4 _EmissionColor; 31 | 32 | UNITY_INSTANCING_BUFFER_START(Props) 33 | UNITY_INSTANCING_BUFFER_END(Props) 34 | 35 | void surf (Input IN, inout SurfaceOutputStandard o) { 36 | fixed4 c = tex2D (_MainTex, IN.uv_MainTex) * _Color; 37 | o.Albedo = c.rgb; 38 | o.Metallic = _Metallic; 39 | o.Smoothness = _Glossiness; 40 | o.Alpha = c.a; 41 | o.Emission = _EmissionColor * _Emission; 42 | } 43 | ENDCG 44 | } 45 | FallBack "Diffuse" 46 | } 47 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/Stencils/StencilBufferBackfaceShader.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3cec08647e15c9c4586d6a6b08d1fa46 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/Stencils/StencilBufferInnerSphereShader.shader: -------------------------------------------------------------------------------- 1 | Shader "Custom/StencilBufferInnerSphereShader" { 2 | Properties { 3 | _Color ("Color", Color) = (1,1,1,1) 4 | _MainTex ("Albedo (RGB)", 2D) = "white" {} 5 | _Glossiness ("Smoothness", Range(0,1)) = 0.5 6 | _Metallic ("Metallic", Range(0,1)) = 0.0 7 | } 8 | SubShader { 9 | Tags { "RenderType"="Opaque" "Queue"="Geometry+3"} 10 | 11 | LOD 200 12 | 13 | CGPROGRAM 14 | #pragma surface surf Standard fullforwardshadows 15 | 16 | #pragma target 3.0 17 | 18 | sampler2D _MainTex; 19 | 20 | struct Input { 21 | float2 uv_MainTex; 22 | }; 23 | 24 | half _Glossiness; 25 | half _Metallic; 26 | fixed4 _Color; 27 | 28 | UNITY_INSTANCING_BUFFER_START(Props) 29 | UNITY_INSTANCING_BUFFER_END(Props) 30 | 31 | void surf (Input IN, inout SurfaceOutputStandard o) { 32 | fixed4 c = tex2D (_MainTex, IN.uv_MainTex) * _Color; 33 | o.Albedo = c.rgb; 34 | o.Metallic = _Metallic; 35 | o.Smoothness = _Glossiness; 36 | o.Alpha = c.a; 37 | o.Emission = _Color; 38 | } 39 | ENDCG 40 | } 41 | FallBack "Diffuse" 42 | } 43 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/Stencils/StencilBufferInnerSphereShader.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2096e82919525794cb244baca256d845 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/Stencils/StencilBufferOuterSphereShader.shader: -------------------------------------------------------------------------------- 1 | Shader "Custom/StencilBufferOuterSphereShader" { 2 | Properties { 3 | _Color ("Color", Color) = (1,1,1,1) 4 | _MainTex ("Albedo (RGB)", 2D) = "white" {} 5 | _Glossiness ("Smoothness", Range(0,1)) = 0.5 6 | _Metallic ("Metallic", Range(0,1)) = 0.0 7 | } 8 | SubShader { 9 | Tags { "RenderType"="Opaque" "Queue"="Geometry+2"} 10 | Stencil { 11 | Ref 1 12 | Comp notequal 13 | } 14 | LOD 200 15 | 16 | CGPROGRAM 17 | #pragma surface surf Standard fullforwardshadows 18 | 19 | #pragma target 3.0 20 | 21 | sampler2D _MainTex; 22 | 23 | struct Input { 24 | float2 uv_MainTex; 25 | }; 26 | 27 | half _Glossiness; 28 | half _Metallic; 29 | fixed4 _Color; 30 | 31 | UNITY_INSTANCING_BUFFER_START(Props) 32 | UNITY_INSTANCING_BUFFER_END(Props) 33 | 34 | void surf (Input IN, inout SurfaceOutputStandard o) { 35 | fixed4 c = tex2D (_MainTex, IN.uv_MainTex) * _Color; 36 | o.Albedo = c.rgb; 37 | o.Metallic = _Metallic; 38 | o.Smoothness = _Glossiness; 39 | o.Alpha = c.a; 40 | } 41 | ENDCG 42 | } 43 | FallBack "Diffuse" 44 | } 45 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/Stencils/StencilBufferOuterSphereShader.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 86389e0f4c7ddaa448f1aa83dfff151f 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/Stencils/StencilBufferShader.shader: -------------------------------------------------------------------------------- 1 | Shader "Custom/StencilBufferShader" { 2 | Properties { 3 | _MainTex ("Albedo (RGB)", 2D) = "white" {} 4 | } 5 | SubShader { 6 | Tags { "RenderType"="Opaque" "Queue"="Geometry+1"} 7 | Cull off 8 | ColorMask 0 9 | ZWrite off 10 | ZTest Always 11 | Stencil { 12 | Ref 1 13 | Comp always 14 | Pass replace 15 | } 16 | LOD 200 17 | 18 | CGPROGRAM 19 | 20 | #pragma surface surf Standard fullforwardshadows 21 | 22 | #pragma target 3.0 23 | 24 | sampler2D _MainTex; 25 | 26 | struct Input { 27 | float2 uv_MainTex; 28 | }; 29 | 30 | UNITY_INSTANCING_BUFFER_START(Props) 31 | UNITY_INSTANCING_BUFFER_END(Props) 32 | 33 | void surf (Input IN, inout SurfaceOutputStandard o) { 34 | fixed4 c = tex2D (_MainTex, IN.uv_MainTex); 35 | o.Albedo = c.rgb; 36 | o.Alpha = c.a; 37 | } 38 | ENDCG 39 | } 40 | FallBack "Diffuse" 41 | } 42 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/Stencils/StencilBufferShader.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c6efffa3f1225ea458c9b2464320293a 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/Stencils/StencilMaskMaterial.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_PrefabInternal: {fileID: 0} 9 | m_Name: StencilMaskMaterial 10 | m_Shader: {fileID: 4800000, guid: c6efffa3f1225ea458c9b2464320293a, type: 3} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 1 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0.5 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 0, g: 0, b: 0, a: 0} 76 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/Scenes/MaterialTest/Stencils/StencilMaskMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7114d0046e49d2a43a616509e24ca69f 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/PerformanceTest.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ef90a94c3c30a9949b2a45c53fc71e57 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/PerformanceTest/FloorMaterial.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_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: FloorMaterial 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 4 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0.5 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 1, g: 1, b: 1, a: 1} 76 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/Scenes/PerformanceTest/FloorMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f6f1896ae28841f40a086b1c0be94603 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/PerformanceTest/HazeMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b764f48e1a036194b8bc512bf5b47f5a 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/PerformanceTest/MistMaterial.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_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: MistMaterial 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: _EMISSION 12 | m_LightmapFlags: 0 13 | m_EnableInstancingVariants: 0 14 | m_DoubleSidedGI: 0 15 | m_CustomRenderQueue: -1 16 | stringTagMap: {} 17 | disabledShaderPasses: [] 18 | m_SavedProperties: 19 | serializedVersion: 3 20 | m_TexEnvs: 21 | - _BumpMap: 22 | m_Texture: {fileID: 0} 23 | m_Scale: {x: 1, y: 1} 24 | m_Offset: {x: 0, y: 0} 25 | - _DetailAlbedoMap: 26 | m_Texture: {fileID: 0} 27 | m_Scale: {x: 1, y: 1} 28 | m_Offset: {x: 0, y: 0} 29 | - _DetailMask: 30 | m_Texture: {fileID: 0} 31 | m_Scale: {x: 1, y: 1} 32 | m_Offset: {x: 0, y: 0} 33 | - _DetailNormalMap: 34 | m_Texture: {fileID: 0} 35 | m_Scale: {x: 1, y: 1} 36 | m_Offset: {x: 0, y: 0} 37 | - _EmissionMap: 38 | m_Texture: {fileID: 0} 39 | m_Scale: {x: 1, y: 1} 40 | m_Offset: {x: 0, y: 0} 41 | - _MainTex: 42 | m_Texture: {fileID: 0} 43 | m_Scale: {x: 1, y: 1} 44 | m_Offset: {x: 0, y: 0} 45 | - _MetallicGlossMap: 46 | m_Texture: {fileID: 0} 47 | m_Scale: {x: 1, y: 1} 48 | m_Offset: {x: 0, y: 0} 49 | - _OcclusionMap: 50 | m_Texture: {fileID: 0} 51 | m_Scale: {x: 1, y: 1} 52 | m_Offset: {x: 0, y: 0} 53 | - _ParallaxMap: 54 | m_Texture: {fileID: 0} 55 | m_Scale: {x: 1, y: 1} 56 | m_Offset: {x: 0, y: 0} 57 | m_Floats: 58 | - _BumpScale: 1 59 | - _Cutoff: 0.5 60 | - _DetailNormalMapScale: 1 61 | - _DstBlend: 0 62 | - _GlossMapScale: 1 63 | - _Glossiness: 0 64 | - _GlossyReflections: 1 65 | - _Metallic: 0 66 | - _Mode: 0 67 | - _OcclusionStrength: 1 68 | - _Parallax: 0.02 69 | - _SmoothnessTextureChannel: 0 70 | - _SpecularHighlights: 1 71 | - _SrcBlend: 1 72 | - _UVSec: 0 73 | - _ZWrite: 1 74 | m_Colors: 75 | - _Color: {r: 0, g: 0, b: 0, a: 1} 76 | - _EmissionColor: {r: 0.9960785, g: 0.63529414, b: 0.003921569, a: 1} 77 | -------------------------------------------------------------------------------- /Assets/Scenes/PerformanceTest/MistMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aab7880bd8d97dd44b86a35f039a76f6 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/PerformanceTest/Performance.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | #if UNITY_2017_2_OR_NEWER 5 | using UnityEngine.XR; 6 | #else 7 | using UnityEngine.VR; 8 | #endif 9 | 10 | public class Performance : MonoBehaviour { 11 | 12 | public UnityEngine.UI.Text textField; 13 | private float m_DeltaTime; 14 | private int m_FrameCount = 0; 15 | private float m_TotalGPUFrameTime = 0.0f; 16 | public float refreshFrequency = 0.5f; 17 | 18 | // Use this for initialization 19 | void Start () { 20 | 21 | } 22 | 23 | // Update is called once per frame 24 | void Update () { 25 | if (textField != null) 26 | { 27 | float gpuLastFrameTime = 0f; 28 | int droppedFrameCount = 0; 29 | int framePresentCount = 0; 30 | 31 | m_DeltaTime += (Time.unscaledDeltaTime); 32 | m_FrameCount++; 33 | 34 | string output = ""; 35 | #if UNITY_2017_2_OR_NEWER 36 | 37 | 38 | if(XRStats.TryGetGPUTimeLastFrame(out gpuLastFrameTime)) 39 | { 40 | m_TotalGPUFrameTime += gpuLastFrameTime; 41 | } 42 | XRStats.TryGetDroppedFrameCount(out droppedFrameCount); 43 | XRStats.TryGetFramePresentCount(out framePresentCount); 44 | 45 | #else 46 | using UnityEngine.VR; 47 | #endif 48 | 49 | if(m_DeltaTime > refreshFrequency) 50 | { 51 | float fps = (float)m_FrameCount/m_DeltaTime; 52 | m_TotalGPUFrameTime /= (float)m_FrameCount; 53 | 54 | m_DeltaTime -= refreshFrequency; 55 | output += "fps: " + fps.ToString("F1"); 56 | output += "\ngpuTimeLastFrame: " + m_TotalGPUFrameTime.ToString("F1"); 57 | output += "\ndroppedFrameCount: " + droppedFrameCount.ToString(); 58 | output += "\nframePresentCount: " + framePresentCount.ToString(); 59 | 60 | textField.text = output; 61 | 62 | m_DeltaTime -= refreshFrequency; 63 | m_TotalGPUFrameTime = 0.0f; 64 | m_FrameCount = 0; 65 | } 66 | 67 | 68 | } 69 | 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /Assets/Scenes/PerformanceTest/Performance.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fe3a0ae40d59bd74b9aeff14adcf1ebf 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scenes/PerformanceTest/PerformanceTest.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dbbfe3d4e43ee2b419ed8114843e2375 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes/PerformanceTest/SpiralMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b8ec3c538ebd09249a6ce83a37b1b4f9 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/PerformanceTest/SpiralMaterial.shader: -------------------------------------------------------------------------------- 1 | Shader "Custom/SpiralMaterial" { 2 | Properties { 3 | _Color ("Color", Color) = (1,1,1,1) 4 | _MainTex ("Albedo (RGB)", 2D) = "white" {} 5 | _Glossiness ("Smoothness", Range(0,1)) = 0.5 6 | _Metallic ("Metallic", Range(0,1)) = 0.0 7 | _HeightFactor ("Height Slope", Range(0, 2)) = 1.0 8 | _HeightIntercept("Height Intercept", Range(-10, 10)) = 1.0 9 | _HeightColor("Height Color", Color) = (1, 1, 1, 1) 10 | _EmissionColor("Emission Color", Color) = (1, 1, 1, 1) 11 | } 12 | SubShader { 13 | Tags { "RenderType"="Opaque" } 14 | LOD 200 15 | 16 | CGPROGRAM 17 | #pragma surface surf Standard fullforwardshadows 18 | 19 | #pragma target 3.0 20 | 21 | sampler2D _MainTex; 22 | 23 | struct Input { 24 | float2 uv_MainTex; 25 | float3 worldPos; 26 | }; 27 | 28 | half _Glossiness; 29 | half _Metallic; 30 | fixed4 _Color; 31 | fixed4 _HeightColor; 32 | fixed4 _EmissionColor; 33 | half _HeightFactor; 34 | half _HeightIntercept; 35 | 36 | UNITY_INSTANCING_BUFFER_START(Props) 37 | UNITY_INSTANCING_BUFFER_END(Props) 38 | 39 | void surf (Input IN, inout SurfaceOutputStandard o) { 40 | 41 | fixed4 c = tex2D (_MainTex, IN.uv_MainTex) * _Color; 42 | fixed heightBlend = saturate((_HeightIntercept - IN.worldPos.y) * _HeightFactor); 43 | o.Albedo = lerp(c.rgb, 0, heightBlend); 44 | o.Metallic = _Metallic; 45 | o.Smoothness = _Glossiness; 46 | o.Alpha = c.a; 47 | 48 | o.Emission = lerp(c.rgb * _EmissionColor.rgb, _HeightColor.rgb, heightBlend); 49 | } 50 | ENDCG 51 | } 52 | FallBack "Diffuse" 53 | } 54 | -------------------------------------------------------------------------------- /Assets/Scenes/PerformanceTest/SpiralMaterial.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a28ead3f110541140ab8e2e8c2cb30c4 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Scenes/PerformanceTest/Thickness.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Assets/Scenes/PerformanceTest/Thickness.png -------------------------------------------------------------------------------- /Assets/Scenes/PerformanceTest/Thickness.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: abc6669f27e5d46408fe6d496d6e1b1e 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | externalObjects: {} 6 | serializedVersion: 5 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 | grayScaleToAlpha: 0 25 | generateCubemap: 6 26 | cubemapConvolution: 0 27 | seamlessCubemap: 0 28 | textureFormat: 1 29 | maxTextureSize: 2048 30 | textureSettings: 31 | serializedVersion: 2 32 | filterMode: -1 33 | aniso: -1 34 | mipBias: -1 35 | wrapU: -1 36 | wrapV: -1 37 | wrapW: -1 38 | nPOTScale: 1 39 | lightmap: 0 40 | compressionQuality: 50 41 | spriteMode: 0 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 47 | spritePixelsToUnits: 100 48 | alphaUsage: 1 49 | alphaIsTransparency: 0 50 | spriteTessellationDetail: -1 51 | textureType: 0 52 | textureShape: 1 53 | singleChannelComponent: 0 54 | maxTextureSizeSet: 0 55 | compressionQualitySet: 0 56 | textureFormatSet: 0 57 | platformSettings: 58 | - serializedVersion: 2 59 | buildTarget: DefaultTexturePlatform 60 | maxTextureSize: 2048 61 | resizeAlgorithm: 0 62 | textureFormat: -1 63 | textureCompression: 1 64 | compressionQuality: 50 65 | crunchedCompression: 0 66 | allowsAlphaSplitting: 0 67 | overridden: 0 68 | androidETC2FallbackOverride: 0 69 | spriteSheet: 70 | serializedVersion: 2 71 | sprites: [] 72 | outline: [] 73 | physicsShape: [] 74 | bones: [] 75 | spriteID: 76 | vertices: [] 77 | indices: 78 | edges: [] 79 | weights: [] 80 | spritePackingTag: 81 | userData: 82 | assetBundleName: 83 | assetBundleVariant: 84 | -------------------------------------------------------------------------------- /Assets/Scenes/SceneTemplate.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9d3ac4754b140594d823d9190fcb5f2d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/SceneTemplate/Template.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 960cb9226db77184eb52f7d9511d69b5 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes/SharedAssets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0f1bd3ecbe335de41862d56e091e8e82 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/SharedAssets/Billboard.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | [ExecuteInEditMode] 6 | public class Billboard : MonoBehaviour { 7 | 8 | // Use this for initialization 9 | void Start () { 10 | UpdateOrientation(); 11 | } 12 | 13 | public void UpdateOrientation() 14 | { 15 | transform.forward = (transform.position - Camera.main.transform.position).normalized; 16 | } 17 | 18 | // Update is called once per frame 19 | void Update () { 20 | UpdateOrientation(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Assets/Scenes/SharedAssets/Billboard.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e130e9cc7f4190949a410e64a5264dc0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scenes/SharedAssets/GroundMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 36168914227144f45819f9f851140eac 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/SharedAssets/LightHalo.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5646e12cc34bd234693da7a76b416f44 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/SharedAssets/LightHaloShader.shader: -------------------------------------------------------------------------------- 1 | Shader "Custom/LightHalo" { 2 | Properties{ 3 | _TintColor("Tint Color", Color) = (0.5,0.5,0.5,0.5) 4 | _MainTex("Particle Texture", 2D) = "white" {} 5 | _InvFade("Soft Particles Factor", Range(0.01,3.0)) = 1.0 6 | } 7 | 8 | Category{ 9 | Tags{ "Queue" = "Transparent" "IgnoreProjector" = "True" "RenderType" = "Transparent" "PreviewType" = "Plane" } 10 | Blend SrcAlpha One 11 | ColorMask RGB 12 | Cull Off Lighting Off ZWrite Off 13 | ZTest Always 14 | 15 | SubShader{ 16 | Pass{ 17 | 18 | CGPROGRAM 19 | #pragma vertex vert 20 | #pragma fragment frag 21 | #pragma target 2.0 22 | #pragma multi_compile_particles 23 | #pragma multi_compile_fog 24 | 25 | #include "UnityCG.cginc" 26 | 27 | sampler2D _MainTex; 28 | fixed4 _TintColor; 29 | 30 | struct appdata_t { 31 | float4 vertex : POSITION; 32 | fixed4 color : COLOR; 33 | float2 texcoord : TEXCOORD0; 34 | UNITY_VERTEX_INPUT_INSTANCE_ID 35 | }; 36 | 37 | struct v2f { 38 | float4 vertex : SV_POSITION; 39 | fixed4 color : COLOR; 40 | float2 texcoord : TEXCOORD0; 41 | UNITY_FOG_COORDS(1) 42 | #ifdef SOFTPARTICLES_ON 43 | float4 projPos : TEXCOORD2; 44 | #endif 45 | UNITY_VERTEX_OUTPUT_STEREO 46 | }; 47 | 48 | float4 _MainTex_ST; 49 | 50 | v2f vert(appdata_t v) 51 | { 52 | v2f o; 53 | UNITY_SETUP_INSTANCE_ID(v); 54 | UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o); 55 | o.vertex = UnityObjectToClipPos(v.vertex); 56 | #ifdef SOFTPARTICLES_ON 57 | o.projPos = ComputeScreenPos(o.vertex); 58 | COMPUTE_EYEDEPTH(o.projPos.z); 59 | #endif 60 | o.color = v.color; 61 | o.texcoord = TRANSFORM_TEX(v.texcoord,_MainTex); 62 | UNITY_TRANSFER_FOG(o,o.vertex); 63 | return o; 64 | } 65 | 66 | UNITY_DECLARE_DEPTH_TEXTURE(_CameraDepthTexture); 67 | float _InvFade; 68 | 69 | fixed4 frag(v2f i) : SV_Target 70 | { 71 | #ifdef SOFTPARTICLES_ON 72 | float sceneZ = LinearEyeDepth(SAMPLE_DEPTH_TEXTURE_PROJ(_CameraDepthTexture, UNITY_PROJ_COORD(i.projPos))); 73 | float partZ = i.projPos.z; 74 | float fade = saturate(_InvFade * (sceneZ - partZ)); 75 | i.color.a *= fade; 76 | #endif 77 | 78 | fixed4 col = 2.0f * i.color * _TintColor * tex2D(_MainTex, i.texcoord); 79 | UNITY_APPLY_FOG_COLOR(i.fogCoord, col, fixed4(0,0,0,0)); 80 | return col; 81 | } 82 | ENDCG 83 | } 84 | } 85 | } 86 | } 87 | -------------------------------------------------------------------------------- /Assets/Scenes/SharedAssets/LightHaloShader.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f7285014296e6b74ba81f9ed9c5bf64a 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Scenes/SharedAssets/LookAt.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class LookAt : MonoBehaviour { 6 | public Transform target; 7 | 8 | // Use this for initialization 9 | void Start () { 10 | UpdateOrientation(); 11 | } 12 | 13 | public void UpdateOrientation() 14 | { 15 | if (target != null) 16 | { 17 | transform.LookAt(target); 18 | } 19 | } 20 | 21 | // Update is called once per frame 22 | void Update () { 23 | UpdateOrientation(); 24 | 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Assets/Scenes/SharedAssets/LookAt.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c7c372c1d51dbaa4c8c4fa70efbd93fd 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scenes/SharedAssets/Navigation.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 842d44e175ba540438232d079f4b56d4 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/SharedAssets/Navigation/ArrowMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 959e1fa00effa7a4dbca60f4f1653afc 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/SharedAssets/Navigation/ArrowStandardShader.shader: -------------------------------------------------------------------------------- 1 | Shader "Custom/ArrowStandardShader" { 2 | Properties { 3 | _Color ("Color", Color) = (1,1,1,1) 4 | _Glossiness ("Smoothness", Range(0,1)) = 0.5 5 | _Metallic ("Metallic", Range(0,1)) = 0.0 6 | _TintColor("Tint Color", Color) = (0.5,0.5,0.5,0.5) 7 | _BaseColor("Base Color", Color) = (0.0, 0.0, 0.0, 0.0) 8 | _LerpFactor("Lerp Factor", Range(0.0,1.0)) = 0.0 9 | _LerpRate("Lerp Rate", Range(1, 3)) = 2 10 | } 11 | SubShader { 12 | Tags{ "RenderType" = "Transparent" "Queue" = "Transparent" } 13 | LOD 200 14 | Cull Off 15 | Blend SrcAlpha One 16 | 17 | CGPROGRAM 18 | #pragma surface surf Standard 19 | 20 | #pragma target 3.0 21 | 22 | struct Input { 23 | float4 color : COLOR; 24 | }; 25 | 26 | half _Glossiness; 27 | half _Metallic; 28 | fixed4 _Color; 29 | half _LerpFactor; 30 | fixed _LerpRate; 31 | fixed4 _TintColor; 32 | fixed4 _BaseColor; 33 | 34 | 35 | UNITY_INSTANCING_BUFFER_START(Props) 36 | 37 | UNITY_INSTANCING_BUFFER_END(Props) 38 | 39 | void surf (Input IN, inout SurfaceOutputStandard o) { 40 | 41 | float alpha = saturate(IN.color.r + (_LerpRate * _LerpFactor - 1.0)); 42 | o.Albedo = 0.0; 43 | 44 | 45 | o.Metallic = _Metallic; 46 | o.Smoothness = _Glossiness; 47 | 48 | o.Emission = _BaseColor.rgb + _TintColor.rgb * alpha; 49 | o.Alpha = _BaseColor.a + _TintColor.a * alpha; 50 | } 51 | ENDCG 52 | } 53 | FallBack "Diffuse" 54 | } 55 | -------------------------------------------------------------------------------- /Assets/Scenes/SharedAssets/Navigation/ArrowStandardShader.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8390192a48e09c34f9b593602fa71193 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Scenes/SharedAssets/Navigation/GazeMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 26e9581dd1aac464c8bd662e708b3835 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/SharedAssets/Navigation/GazeSprite.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class GazeSprite : MonoBehaviour { 6 | 7 | public Transform[] m_GazeableTransforms; 8 | public float m_Angle; 9 | private MeshRenderer m_MeshRenderer; 10 | private Material m_Material; 11 | public Color m_Color; 12 | 13 | public float m_Distance = 2.0f; 14 | 15 | 16 | // Use this for initialization 17 | void Start () { 18 | m_MeshRenderer = GetComponent(); 19 | if(m_MeshRenderer != null) 20 | { 21 | m_Material = m_MeshRenderer.material; 22 | } 23 | } 24 | 25 | // Update is called once per frame 26 | void Update () { 27 | 28 | if (m_Material != null) 29 | { 30 | float bestAngle = float.MaxValue; 31 | 32 | foreach (Transform t in m_GazeableTransforms) 33 | { 34 | Vector3 dir = (t.transform.position - Camera.main.transform.position).normalized; 35 | float angle = Mathf.Abs(Vector3.Angle(dir, Camera.main.transform.forward)); 36 | 37 | if (angle < bestAngle) 38 | { 39 | bestAngle = angle; 40 | } 41 | } 42 | 43 | float delta = m_Angle - bestAngle; 44 | float lerpFactor = 0.0f; 45 | if(delta > 0f) 46 | { 47 | lerpFactor = 1.0f - (bestAngle / m_Angle); 48 | } 49 | 50 | m_Material.SetColor("_TintColor", Color.Lerp(Color.clear, m_Color, lerpFactor)); 51 | 52 | if (m_MeshRenderer != null) 53 | { 54 | m_MeshRenderer.enabled = lerpFactor > 0f; 55 | } 56 | } 57 | 58 | 59 | } 60 | 61 | private void LateUpdate() 62 | { 63 | transform.position = Camera.main.transform.position + Camera.main.transform.forward * m_Distance; 64 | transform.forward = -Camera.main.transform.forward; 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /Assets/Scenes/SharedAssets/Navigation/GazeSprite.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7abb057ee2b138e4c87640f77e3cf89a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scenes/SharedAssets/Navigation/GazeStandardShader.shader: -------------------------------------------------------------------------------- 1 | Shader "Custom/GazeStandardShader" { 2 | Properties { 3 | _TintColor("Tint Color", Color) = (0, 0, 0, 0) 4 | _Glossiness ("Smoothness", Range(0,1)) = 0.5 5 | _Metallic ("Metallic", Range(0,1)) = 0.0 6 | } 7 | SubShader { 8 | Tags{ "RenderType" = "Transparent" "Queue" = "Transparent" } 9 | LOD 100 10 | ZTest Always 11 | Cull Off 12 | ZWrite Off 13 | Blend One One 14 | 15 | CGPROGRAM 16 | 17 | #pragma surface surf Standard 18 | 19 | #pragma target 3.0 20 | 21 | sampler2D _MainTex; 22 | 23 | struct Input { 24 | float2 uv_MainTex; 25 | }; 26 | 27 | half _Glossiness; 28 | half _Metallic; 29 | fixed4 _TintColor; 30 | 31 | UNITY_INSTANCING_BUFFER_START(Props) 32 | UNITY_INSTANCING_BUFFER_END(Props) 33 | 34 | void surf (Input IN, inout SurfaceOutputStandard o) { 35 | 36 | o.Albedo = 0.0; 37 | o.Metallic = _Metallic; 38 | o.Smoothness = _Glossiness; 39 | o.Emission = _TintColor.rgb; 40 | o.Alpha = _TintColor.a; 41 | } 42 | ENDCG 43 | } 44 | FallBack "Diffuse" 45 | } 46 | -------------------------------------------------------------------------------- /Assets/Scenes/SharedAssets/Navigation/GazeStandardShader.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2a6ed43c0cde868458ec572053ccd9e6 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Scenes/SharedAssets/Navigation/Navigation.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 528623831bf17d7458203fa38b2c36e5 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scenes/SharedAssets/Navigation/NavigationArrow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 779d5b169a0687a4fa2c671ecbff4071 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scenes/SharedAssets/Navigation/NavigationArrows.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5982501e2fb1eb741abed92849d0f915 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 100100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/SharedAssets/Navigation/gazeSprite.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Assets/Scenes/SharedAssets/Navigation/gazeSprite.psd -------------------------------------------------------------------------------- /Assets/Scenes/SharedAssets/Orbit.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class Orbit : MonoBehaviour { 6 | 7 | public GameObject target; 8 | public float angularVelocity; 9 | public Vector3 rotationAxis; 10 | 11 | private float m_Radius; 12 | private Vector3 m_Direction; 13 | private float m_AngleOffset = 0.0f; 14 | 15 | // Use this for initialization 16 | void Start () { 17 | m_Direction = (transform.position - target.transform.position); 18 | m_Radius = m_Direction.magnitude; 19 | m_Direction.Normalize(); 20 | } 21 | 22 | // Update is called once per frame 23 | void Update () 24 | { 25 | m_AngleOffset += Time.deltaTime * angularVelocity; 26 | transform.position = target.transform.position + Quaternion.AngleAxis(m_AngleOffset, rotationAxis.normalized) * m_Direction * m_Radius; 27 | 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Assets/Scenes/SharedAssets/Orbit.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 21dd40b7848fc134dba7e79b4e95ec37 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scenes/SharedAssets/RandomOrbit.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class RandomOrbit : MonoBehaviour { 6 | 7 | public GameObject orbitTarget; 8 | public Vector3 eulerFactors = Vector3.one; 9 | public float velocityMagnitude; 10 | public Vector3 offsetScale = Vector3.one; 11 | public float orbitRadius; 12 | 13 | private Vector3 m_Euler; 14 | private Vector3 m_EulerVelocity; 15 | private Vector3 m_PosePosition; 16 | 17 | // Use this for initialization 18 | void Start () { 19 | m_EulerVelocity = Vector3.forward * velocityMagnitude; 20 | m_PosePosition = transform.position; 21 | UpdatePosition(); 22 | } 23 | 24 | private void UpdatePosition() 25 | { 26 | m_EulerVelocity = velocityMagnitude * eulerFactors; 27 | 28 | m_Euler += m_EulerVelocity * Time.deltaTime; 29 | 30 | Quaternion rot = Quaternion.Euler(m_Euler); 31 | Vector3 offset = Vector3.Scale((rot * Vector3.forward) * orbitRadius, offsetScale); 32 | 33 | if (orbitTarget != null) 34 | { 35 | transform.position = orbitTarget.transform.position + offset; 36 | } 37 | else 38 | { 39 | transform.position = m_PosePosition + offset; 40 | } 41 | } 42 | 43 | // Update is called once per frame 44 | void Update () { 45 | UpdatePosition(); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /Assets/Scenes/SharedAssets/RandomOrbit.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5ce9b57e7acd3234585156318ffe7d59 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scenes/SharedAssets/Scaler.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class Scaler : MonoBehaviour { 6 | 7 | public float scaleDelta = 0.25f; 8 | public float rate = 1.0f; 9 | public Vector3 axisScale = Vector3.zero; 10 | 11 | private Vector3 m_PoseScale; 12 | 13 | // Use this for initialization 14 | void Start () { 15 | m_PoseScale = transform.localScale; 16 | } 17 | 18 | // Update is called once per frame 19 | void Update () { 20 | 21 | float scale = Mathf.Sin(Time.time * rate) * 0.5f + 0.5f; 22 | 23 | scale *= scaleDelta; 24 | 25 | transform.localScale = m_PoseScale + Vector3.Scale(new Vector3(scale, scale, scale), axisScale); 26 | 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Assets/Scenes/SharedAssets/Scaler.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1abcd62c223b37f489d0180cfbddf368 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scenes/SharedAssets/Translate.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEngine.Serialization; 5 | 6 | public class Translate : MonoBehaviour { 7 | 8 | public float rate; 9 | public float maxTranslation; 10 | public Vector3 axis; 11 | 12 | private Vector3 m_PosePosition; 13 | private float m_AnimationTimeOffset; 14 | 15 | public bool randomize; 16 | 17 | // Use this for initialization 18 | void Start () { 19 | m_PosePosition = transform.position; 20 | if(randomize) 21 | { 22 | m_AnimationTimeOffset = Random.Range(0.0f, 360.0f); 23 | } 24 | } 25 | 26 | // Update is called once per frame 27 | void Update () { 28 | float offset = Mathf.Sin( (Time.time + m_AnimationTimeOffset) * rate) * 0.5f + 0.5f; 29 | 30 | transform.position = ((axis.normalized) * maxTranslation * offset) + m_PosePosition; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Assets/Scenes/SharedAssets/Translate.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: adb57adec996ca743be6cc386ad4d802 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scenes/SharedAssets/XRSetup.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class XRSetup : MonoBehaviour 6 | { 7 | // Start is called before the first frame update 8 | void Start() 9 | { 10 | DontDestroyOnLoad(gameObject); 11 | } 12 | 13 | // Update is called once per frame 14 | void Update() 15 | { 16 | 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Assets/Scenes/SharedAssets/XRSetup.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6374139f6c4eecb41bc578081ba88ca4 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scenes/SharedAssets/models.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Assets/Scenes/SharedAssets/models.fbx -------------------------------------------------------------------------------- /Assets/Scenes/TerrainTest.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 584898e57f57850429c132ea9f4dcf56 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/TerrainTest/Fruit.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 72e69f842d049c348a4328d9cd72a758 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/TerrainTest/Terrain.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Assets/Scenes/TerrainTest/Terrain.asset -------------------------------------------------------------------------------- /Assets/Scenes/TerrainTest/Terrain.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eeaa475f726205e4f90a40550f58841f 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 15600000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/TerrainTest/TerrainTest.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e7bcad52ea436de4a8d0c0b984ffcd01 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes/TerrainTest/Tree.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9e32eda5b9453f24893606133a2865e5 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 100100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/TerrainTest/TreePrefab.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ad1a23f79c0826146b93d495a3370f1a 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 100100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/TerrainTest/Tree_Textures.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e197d25324d691d41bb38e597f4e7a67 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/TerrainTest/Tree_Textures/diffuse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Assets/Scenes/TerrainTest/Tree_Textures/diffuse.png -------------------------------------------------------------------------------- /Assets/Scenes/TerrainTest/Tree_Textures/diffuse.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b3c4e229a5eee6f409fbeba193a261b9 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | externalObjects: {} 6 | serializedVersion: 5 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 | grayScaleToAlpha: 0 25 | generateCubemap: 6 26 | cubemapConvolution: 0 27 | seamlessCubemap: 0 28 | textureFormat: 1 29 | maxTextureSize: 2048 30 | textureSettings: 31 | serializedVersion: 2 32 | filterMode: -1 33 | aniso: -1 34 | mipBias: -1 35 | wrapU: -1 36 | wrapV: -1 37 | wrapW: -1 38 | nPOTScale: 1 39 | lightmap: 0 40 | compressionQuality: 50 41 | spriteMode: 0 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 47 | spritePixelsToUnits: 100 48 | alphaUsage: 1 49 | alphaIsTransparency: 1 50 | spriteTessellationDetail: -1 51 | textureType: 0 52 | textureShape: 1 53 | singleChannelComponent: 0 54 | maxTextureSizeSet: 0 55 | compressionQualitySet: 0 56 | textureFormatSet: 0 57 | platformSettings: 58 | - serializedVersion: 2 59 | buildTarget: DefaultTexturePlatform 60 | maxTextureSize: 2048 61 | resizeAlgorithm: 0 62 | textureFormat: -1 63 | textureCompression: 1 64 | compressionQuality: 50 65 | crunchedCompression: 0 66 | allowsAlphaSplitting: 0 67 | overridden: 0 68 | androidETC2FallbackOverride: 0 69 | spriteSheet: 70 | serializedVersion: 2 71 | sprites: [] 72 | outline: [] 73 | physicsShape: [] 74 | bones: [] 75 | spriteID: 76 | vertices: [] 77 | indices: 78 | edges: [] 79 | weights: [] 80 | spritePackingTag: 81 | userData: 82 | assetBundleName: 83 | assetBundleVariant: 84 | -------------------------------------------------------------------------------- /Assets/Scenes/TerrainTest/Tree_Textures/normal_specular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Assets/Scenes/TerrainTest/Tree_Textures/normal_specular.png -------------------------------------------------------------------------------- /Assets/Scenes/TerrainTest/Tree_Textures/normal_specular.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1707fc7549ca6f7438fdba1bc015f80d 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | externalObjects: {} 6 | serializedVersion: 5 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 | grayScaleToAlpha: 0 25 | generateCubemap: 6 26 | cubemapConvolution: 0 27 | seamlessCubemap: 0 28 | textureFormat: 1 29 | maxTextureSize: 2048 30 | textureSettings: 31 | serializedVersion: 2 32 | filterMode: -1 33 | aniso: -1 34 | mipBias: -1 35 | wrapU: -1 36 | wrapV: -1 37 | wrapW: -1 38 | nPOTScale: 1 39 | lightmap: 0 40 | compressionQuality: 50 41 | spriteMode: 0 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 47 | spritePixelsToUnits: 100 48 | alphaUsage: 1 49 | alphaIsTransparency: 0 50 | spriteTessellationDetail: -1 51 | textureType: 0 52 | textureShape: 1 53 | singleChannelComponent: 0 54 | maxTextureSizeSet: 0 55 | compressionQualitySet: 0 56 | textureFormatSet: 0 57 | platformSettings: 58 | - serializedVersion: 2 59 | buildTarget: DefaultTexturePlatform 60 | maxTextureSize: 2048 61 | resizeAlgorithm: 0 62 | textureFormat: -1 63 | textureCompression: 1 64 | compressionQuality: 50 65 | crunchedCompression: 0 66 | allowsAlphaSplitting: 0 67 | overridden: 0 68 | androidETC2FallbackOverride: 0 69 | spriteSheet: 70 | serializedVersion: 2 71 | sprites: [] 72 | outline: [] 73 | physicsShape: [] 74 | bones: [] 75 | spriteID: 76 | vertices: [] 77 | indices: 78 | edges: [] 79 | weights: [] 80 | spritePackingTag: 81 | userData: 82 | assetBundleName: 83 | assetBundleVariant: 84 | -------------------------------------------------------------------------------- /Assets/Scenes/TerrainTest/Tree_Textures/shadow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Assets/Scenes/TerrainTest/Tree_Textures/shadow.png -------------------------------------------------------------------------------- /Assets/Scenes/TerrainTest/Tree_Textures/shadow.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ca2bfb4f087f4cd4683e148cbc3c2635 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | externalObjects: {} 6 | serializedVersion: 5 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 | grayScaleToAlpha: 0 25 | generateCubemap: 6 26 | cubemapConvolution: 0 27 | seamlessCubemap: 0 28 | textureFormat: 1 29 | maxTextureSize: 2048 30 | textureSettings: 31 | serializedVersion: 2 32 | filterMode: -1 33 | aniso: -1 34 | mipBias: -1 35 | wrapU: -1 36 | wrapV: -1 37 | wrapW: -1 38 | nPOTScale: 1 39 | lightmap: 0 40 | compressionQuality: 50 41 | spriteMode: 0 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 47 | spritePixelsToUnits: 100 48 | alphaUsage: 1 49 | alphaIsTransparency: 0 50 | spriteTessellationDetail: -1 51 | textureType: 0 52 | textureShape: 1 53 | singleChannelComponent: 0 54 | maxTextureSizeSet: 0 55 | compressionQualitySet: 0 56 | textureFormatSet: 0 57 | platformSettings: 58 | - serializedVersion: 2 59 | buildTarget: DefaultTexturePlatform 60 | maxTextureSize: 128 61 | resizeAlgorithm: 0 62 | textureFormat: -1 63 | textureCompression: 1 64 | compressionQuality: 50 65 | crunchedCompression: 0 66 | allowsAlphaSplitting: 0 67 | overridden: 0 68 | androidETC2FallbackOverride: 0 69 | spriteSheet: 70 | serializedVersion: 2 71 | sprites: [] 72 | outline: [] 73 | physicsShape: [] 74 | bones: [] 75 | spriteID: 76 | vertices: [] 77 | indices: 78 | edges: [] 79 | weights: [] 80 | spritePackingTag: 81 | userData: 82 | assetBundleName: 83 | assetBundleVariant: 84 | -------------------------------------------------------------------------------- /Assets/Scenes/TerrainTest/Tree_Textures/translucency_gloss.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Assets/Scenes/TerrainTest/Tree_Textures/translucency_gloss.png -------------------------------------------------------------------------------- /Assets/Scenes/TerrainTest/Tree_Textures/translucency_gloss.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 267de37a7f8a85849b5177ff478d6074 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | externalObjects: {} 6 | serializedVersion: 5 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 | grayScaleToAlpha: 0 25 | generateCubemap: 6 26 | cubemapConvolution: 0 27 | seamlessCubemap: 0 28 | textureFormat: 1 29 | maxTextureSize: 2048 30 | textureSettings: 31 | serializedVersion: 2 32 | filterMode: -1 33 | aniso: -1 34 | mipBias: -1 35 | wrapU: -1 36 | wrapV: -1 37 | wrapW: -1 38 | nPOTScale: 1 39 | lightmap: 0 40 | compressionQuality: 50 41 | spriteMode: 0 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 47 | spritePixelsToUnits: 100 48 | alphaUsage: 1 49 | alphaIsTransparency: 0 50 | spriteTessellationDetail: -1 51 | textureType: 0 52 | textureShape: 1 53 | singleChannelComponent: 0 54 | maxTextureSizeSet: 0 55 | compressionQualitySet: 0 56 | textureFormatSet: 0 57 | platformSettings: 58 | - serializedVersion: 2 59 | buildTarget: DefaultTexturePlatform 60 | maxTextureSize: 2048 61 | resizeAlgorithm: 0 62 | textureFormat: -1 63 | textureCompression: 1 64 | compressionQuality: 50 65 | crunchedCompression: 0 66 | allowsAlphaSplitting: 0 67 | overridden: 0 68 | androidETC2FallbackOverride: 0 69 | spriteSheet: 70 | serializedVersion: 2 71 | sprites: [] 72 | outline: [] 73 | physicsShape: [] 74 | bones: [] 75 | spriteID: 76 | vertices: [] 77 | indices: 78 | edges: [] 79 | weights: [] 80 | spritePackingTag: 81 | userData: 82 | assetBundleName: 83 | assetBundleVariant: 84 | -------------------------------------------------------------------------------- /Assets/Scenes/TerrainTest/fruitAlbedo.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Assets/Scenes/TerrainTest/fruitAlbedo.psd -------------------------------------------------------------------------------- /Assets/Scenes/TerrainTest/fruitAlbedo.psd.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 906c9117127040245965b1ccf1fcedf2 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | externalObjects: {} 6 | serializedVersion: 5 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 | grayScaleToAlpha: 0 25 | generateCubemap: 6 26 | cubemapConvolution: 0 27 | seamlessCubemap: 0 28 | textureFormat: 1 29 | maxTextureSize: 2048 30 | textureSettings: 31 | serializedVersion: 2 32 | filterMode: -1 33 | aniso: -1 34 | mipBias: -1 35 | wrapU: -1 36 | wrapV: -1 37 | wrapW: -1 38 | nPOTScale: 1 39 | lightmap: 0 40 | compressionQuality: 50 41 | spriteMode: 0 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 47 | spritePixelsToUnits: 100 48 | alphaUsage: 1 49 | alphaIsTransparency: 0 50 | spriteTessellationDetail: -1 51 | textureType: 0 52 | textureShape: 1 53 | singleChannelComponent: 0 54 | maxTextureSizeSet: 0 55 | compressionQualitySet: 0 56 | textureFormatSet: 0 57 | platformSettings: 58 | - serializedVersion: 2 59 | buildTarget: DefaultTexturePlatform 60 | maxTextureSize: 2048 61 | resizeAlgorithm: 0 62 | textureFormat: -1 63 | textureCompression: 1 64 | compressionQuality: 50 65 | crunchedCompression: 0 66 | allowsAlphaSplitting: 0 67 | overridden: 0 68 | androidETC2FallbackOverride: 0 69 | spriteSheet: 70 | serializedVersion: 2 71 | sprites: [] 72 | outline: [] 73 | physicsShape: [] 74 | bones: [] 75 | spriteID: 76 | vertices: [] 77 | indices: 78 | edges: [] 79 | weights: [] 80 | spritePackingTag: 81 | userData: 82 | assetBundleName: 83 | assetBundleVariant: 84 | -------------------------------------------------------------------------------- /Assets/Scenes/TerrainTest/fruitNormal.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Assets/Scenes/TerrainTest/fruitNormal.psd -------------------------------------------------------------------------------- /Assets/Scenes/TerrainTest/fruitNormal.psd.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a41ec61df52b60843bd0bf3e9095df5f 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | externalObjects: {} 6 | serializedVersion: 5 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 | grayScaleToAlpha: 0 25 | generateCubemap: 6 26 | cubemapConvolution: 0 27 | seamlessCubemap: 0 28 | textureFormat: 1 29 | maxTextureSize: 2048 30 | textureSettings: 31 | serializedVersion: 2 32 | filterMode: -1 33 | aniso: -1 34 | mipBias: -1 35 | wrapU: -1 36 | wrapV: -1 37 | wrapW: -1 38 | nPOTScale: 1 39 | lightmap: 0 40 | compressionQuality: 50 41 | spriteMode: 0 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 47 | spritePixelsToUnits: 100 48 | alphaUsage: 1 49 | alphaIsTransparency: 0 50 | spriteTessellationDetail: -1 51 | textureType: 1 52 | textureShape: 1 53 | singleChannelComponent: 0 54 | maxTextureSizeSet: 0 55 | compressionQualitySet: 0 56 | textureFormatSet: 0 57 | platformSettings: 58 | - serializedVersion: 2 59 | buildTarget: DefaultTexturePlatform 60 | maxTextureSize: 2048 61 | resizeAlgorithm: 0 62 | textureFormat: -1 63 | textureCompression: 1 64 | compressionQuality: 50 65 | crunchedCompression: 0 66 | allowsAlphaSplitting: 0 67 | overridden: 0 68 | androidETC2FallbackOverride: 0 69 | spriteSheet: 70 | serializedVersion: 2 71 | sprites: [] 72 | outline: [] 73 | physicsShape: [] 74 | bones: [] 75 | spriteID: 76 | vertices: [] 77 | indices: 78 | edges: [] 79 | weights: [] 80 | spritePackingTag: 81 | userData: 82 | assetBundleName: 83 | assetBundleVariant: 84 | -------------------------------------------------------------------------------- /Assets/WSATestCertificate.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Assets/WSATestCertificate.pfx -------------------------------------------------------------------------------- /Assets/WSATestCertificate.pfx.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5b462dc5bee84574aa84c7ab0d1bb3a0 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/XR.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0252561768fe7654d8b122633b880253 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/XR/Loaders.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e205ab23c8f7ba74fb3e25d49ed7bbaf 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/XR/Loaders/Google Cardboard XR Loader.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 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_GeneratorAsset: {fileID: 0} 13 | m_Script: {fileID: 11500000, guid: a85aeafcea02841758d6a440de6d8e15, type: 3} 14 | m_Name: Google Cardboard XR Loader 15 | m_EditorClassIdentifier: 16 | -------------------------------------------------------------------------------- /Assets/XR/Loaders/Google Cardboard XR Loader.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eb17dbaee1dd41a46a66f440a52e0091 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/XR/Loaders/Google Daydream XR Loader.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 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_GeneratorAsset: {fileID: 0} 13 | m_Script: {fileID: 11500000, guid: 7262228c89384350a2c0ec6f2ddcfe62, type: 3} 14 | m_Name: Google Daydream XR Loader 15 | m_EditorClassIdentifier: 16 | -------------------------------------------------------------------------------- /Assets/XR/Loaders/Google Daydream XR Loader.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a29adfb095867b045a21e0291c7cc0c9 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /CONTRIBUTING: -------------------------------------------------------------------------------- 1 | # PR review process 2 | 3 | - Any PR must have an entry in the corresponding changelog in a separate commit (CHANGELOG.MD file) 4 | - Changelog follow these guidelines: https://github.com/Unity-Technologies/PostProcessing/blob/v2/CHANGELOG.md 5 | - Each release branch (2018.1, 2018.2...) have a unique Changelog file 6 | - when backporting, don't backport the changelog commit but update the branch changelog manually 7 | - (optional) add reviewver from doc team 8 | - Any more complex description of a change with future need to go in a release note file -------------------------------------------------------------------------------- /CONTRIBUTIONS.md: -------------------------------------------------------------------------------- 1 | # Contributions 2 | 3 | ## If you are interested in contributing, here are some ground rules: 4 | * Talk to us before doing the work -- we love contributions, but we might already be working on the same thing, or we might have different opinions on how it should be implemented. 5 | 6 | ## All contributions are subject to the [Unity Contribution Agreement(UCA)](https://unity3d.com/legal/licenses/Unity_Contribution_Agreement) 7 | By making a pull request, you are confirming agreement to the terms and conditions of the UCA, including that your Contributions are your original creation and that you have complete right and authority to make your Contributions. 8 | 9 | ## Once you have a change ready following these ground rules. Simply make a pull request in Github -------------------------------------------------------------------------------- /Documentation/XRAssessmentDocumentation.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Documentation/XRAssessmentDocumentation.pdf -------------------------------------------------------------------------------- /Documentation/bakedLighting.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Documentation/bakedLighting.png -------------------------------------------------------------------------------- /Documentation/canvasButton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Documentation/canvasButton.png -------------------------------------------------------------------------------- /Documentation/canvasSlider.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Documentation/canvasSlider.png -------------------------------------------------------------------------------- /Documentation/canvasText.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Documentation/canvasText.png -------------------------------------------------------------------------------- /Documentation/canvasToggle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Documentation/canvasToggle.png -------------------------------------------------------------------------------- /Documentation/effectsLineRenderer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Documentation/effectsLineRenderer.png -------------------------------------------------------------------------------- /Documentation/effectsParticles.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Documentation/effectsParticles.png -------------------------------------------------------------------------------- /Documentation/effectsProjector.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Documentation/effectsProjector.png -------------------------------------------------------------------------------- /Documentation/effectsSprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Documentation/effectsSprite.png -------------------------------------------------------------------------------- /Documentation/effectsTerrain.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Documentation/effectsTerrain.png -------------------------------------------------------------------------------- /Documentation/effectsTrailRenderer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Documentation/effectsTrailRenderer.png -------------------------------------------------------------------------------- /Documentation/inputButtons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Documentation/inputButtons.png -------------------------------------------------------------------------------- /Documentation/inputNodeStates.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Documentation/inputNodeStates.png -------------------------------------------------------------------------------- /Documentation/inputTrackedPoseDriver.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Documentation/inputTrackedPoseDriver.png -------------------------------------------------------------------------------- /Documentation/inputTracking.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Documentation/inputTracking.png -------------------------------------------------------------------------------- /Documentation/lightDirectional.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Documentation/lightDirectional.png -------------------------------------------------------------------------------- /Documentation/lightPoint.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Documentation/lightPoint.png -------------------------------------------------------------------------------- /Documentation/lightingSpot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Documentation/lightingSpot.png -------------------------------------------------------------------------------- /Documentation/materialsGPUInstancing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Documentation/materialsGPUInstancing.png -------------------------------------------------------------------------------- /Documentation/materialsRenderTexture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Documentation/materialsRenderTexture.png -------------------------------------------------------------------------------- /Documentation/materialsSetTargetBuffers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Documentation/materialsSetTargetBuffers.png -------------------------------------------------------------------------------- /Documentation/materialsStandard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Documentation/materialsStandard.png -------------------------------------------------------------------------------- /Documentation/materialsStencil.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Documentation/materialsStencil.png -------------------------------------------------------------------------------- /Documentation/materialsTransparent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Documentation/materialsTransparent.png -------------------------------------------------------------------------------- /Documentation/navigationArrows.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Documentation/navigationArrows.png -------------------------------------------------------------------------------- /Documentation/performance.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/Documentation/performance.png -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | Copyright © 2018 Unity Technologies ApS 2 | 3 | Licensed under the Unity Companion License for Unity-dependent projects--see [Unity Companion License](http://www.unity3d.com/legal/licenses/Unity_Companion_License). 4 | 5 | Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. Please review the license for details on these and other terms and conditions. -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.2d.sprite": "1.0.0", 4 | "com.unity.2d.tilemap": "1.0.0", 5 | "com.unity.ads": "2.0.8", 6 | "com.unity.analytics": "3.3.2", 7 | "com.unity.collab-proxy": "1.2.16", 8 | "com.unity.ide.rider": "1.0.8", 9 | "com.unity.ide.visualstudio": "1.0.11", 10 | "com.unity.ide.vscode": "1.0.7", 11 | "com.unity.purchasing": "2.0.6", 12 | "com.unity.textmeshpro": "2.0.1", 13 | "com.unity.timeline": "1.1.0", 14 | "com.unity.xr.legacyinputhelpers": "2.0.4", 15 | "com.unity.modules.ai": "1.0.0", 16 | "com.unity.modules.animation": "1.0.0", 17 | "com.unity.modules.assetbundle": "1.0.0", 18 | "com.unity.modules.audio": "1.0.0", 19 | "com.unity.modules.cloth": "1.0.0", 20 | "com.unity.modules.director": "1.0.0", 21 | "com.unity.modules.imageconversion": "1.0.0", 22 | "com.unity.modules.imgui": "1.0.0", 23 | "com.unity.modules.jsonserialize": "1.0.0", 24 | "com.unity.modules.particlesystem": "1.0.0", 25 | "com.unity.modules.physics": "1.0.0", 26 | "com.unity.modules.physics2d": "1.0.0", 27 | "com.unity.modules.screencapture": "1.0.0", 28 | "com.unity.modules.terrain": "1.0.0", 29 | "com.unity.modules.terrainphysics": "1.0.0", 30 | "com.unity.modules.tilemap": "1.0.0", 31 | "com.unity.modules.ui": "1.0.0", 32 | "com.unity.modules.uielements": "1.0.0", 33 | "com.unity.modules.umbra": "1.0.0", 34 | "com.unity.modules.unityanalytics": "1.0.0", 35 | "com.unity.modules.unitywebrequest": "1.0.0", 36 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 37 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 38 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 39 | "com.unity.modules.unitywebrequestwww": "1.0.0", 40 | "com.unity.modules.vehicles": "1.0.0", 41 | "com.unity.modules.video": "1.0.0", 42 | "com.unity.modules.vr": "1.0.0", 43 | "com.unity.modules.wind": "1.0.0", 44 | "com.unity.modules.xr": "1.0.0" 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | m_Volume: 1 7 | Rolloff Scale: 1 8 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 1024 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_AmbisonicDecoderPlugin: 16 | m_DisableAudio: 0 17 | m_VirtualizeEffects: 1 18 | -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 7 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_DefaultSolverIterations: 6 13 | m_DefaultSolverVelocityIterations: 1 14 | m_QueriesHitBackfaces: 0 15 | m_QueriesHitTriggers: 1 16 | m_EnableAdaptiveForce: 0 17 | m_ClothInterCollisionDistance: 0 18 | m_ClothInterCollisionStiffness: 0 19 | m_ContactsGeneration: 1 20 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 21 | m_AutoSimulation: 1 22 | m_AutoSyncTransforms: 1 23 | m_ClothInterCollisionSettingsToggle: 0 24 | m_ContactPairsMode: 0 25 | m_BroadphaseType: 0 26 | m_WorldBounds: 27 | m_Center: {x: 0, y: 0, z: 0} 28 | m_Extent: {x: 250, y: 250, z: 250} 29 | m_WorldSubdivisions: 8 30 | -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: 8 | - enabled: 1 9 | path: Assets/Scenes/MaterialTest/MaterialTest.unity 10 | guid: 2ac1fe7a552ab304c9df224f5969dd41 11 | - enabled: 1 12 | path: Assets/Scenes/LightingTest/BakedLighting/BakedLighting.unity 13 | guid: c431ebb404895f843b5b00524a1b0ae3 14 | - enabled: 1 15 | path: Assets/Scenes/LightingTest/RealtimeLighting/RealtimeLighting.unity 16 | guid: e5ad5d1a62efb224ca028cddac95a49c 17 | - enabled: 1 18 | path: Assets/Scenes/EffectTest/EffectTest.unity 19 | guid: ff97ddddc5cb2614fb34ea5c5345914a 20 | - enabled: 1 21 | path: Assets/Scenes/TerrainTest/TerrainTest.unity 22 | guid: e7bcad52ea436de4a8d0c0b984ffcd01 23 | - enabled: 1 24 | path: Assets/Scenes/CanvasTest/CanvasTest.unity 25 | guid: f0c77c4076271e84ab9e4de36245e2fe 26 | - enabled: 1 27 | path: Assets/Scenes/APICheckTest/APICheckTest.unity 28 | guid: 9d50340ba7f4e0b4a9a7768d8870f44d 29 | - enabled: 1 30 | path: Assets/Scenes/PerformanceTest/PerformanceTest.unity 31 | guid: dbbfe3d4e43ee2b419ed8114843e2375 32 | - enabled: 1 33 | path: Assets/Scenes/InputRegressionTest/InputRegressionTest.unity 34 | guid: d2e19aec385c9284aa61de3cea3bbce3 35 | m_configObjects: {} 36 | -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 7 7 | m_ExternalVersionControlSupport: Hidden Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 2 10 | m_DefaultBehaviorMode: 0 11 | m_PrefabRegularEnvironment: {fileID: 0} 12 | m_PrefabUIEnvironment: {fileID: 0} 13 | m_SpritePackerMode: 0 14 | m_SpritePackerPaddingPower: 1 15 | m_EtcTextureCompressorBehavior: 1 16 | m_EtcTextureFastCompressor: 1 17 | m_EtcTextureNormalCompressor: 2 18 | m_EtcTextureBestCompressor: 4 19 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp 20 | m_ProjectGenerationRootNamespace: 21 | m_CollabEditorSettings: 22 | inProgressEnabled: 1 23 | m_EnableTextureStreamingInEditMode: 1 24 | m_EnableTextureStreamingInPlayMode: 1 25 | m_ShowLightmapResolutionOverlay: 1 26 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshProjectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | m_LastAgentTypeID: -887442657 73 | m_Settings: 74 | - serializedVersion: 2 75 | agentTypeID: 0 76 | agentRadius: 0.5 77 | agentHeight: 2 78 | agentSlope: 45 79 | agentClimb: 0.75 80 | ledgeDropHeight: 0 81 | maxJumpAcrossDistance: 0 82 | minRegionArea: 2 83 | manualCellSize: 0 84 | cellSize: 0.16666667 85 | manualTileSize: 0 86 | tileSize: 256 87 | accuratePlacement: 0 88 | debug: 89 | m_Flags: 0 90 | m_SettingNames: 91 | - Humanoid 92 | -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 3 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_BaumgarteScale: 0.2 17 | m_BaumgarteTimeOfImpactScale: 0.75 18 | m_TimeToSleep: 0.5 19 | m_LinearSleepTolerance: 0.01 20 | m_AngularSleepTolerance: 2 21 | m_DefaultContactOffset: 0.01 22 | m_AutoSimulation: 1 23 | m_QueriesHitTriggers: 1 24 | m_QueriesStartInColliders: 1 25 | m_ChangeStopsCallbacks: 0 26 | m_CallbacksOnDisable: 1 27 | m_AutoSyncTransforms: 1 28 | m_AlwaysShowColliders: 0 29 | m_ShowColliderSleep: 1 30 | m_ShowColliderContacts: 0 31 | m_ShowColliderAABB: 0 32 | m_ContactArrowScale: 0.2 33 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 34 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 35 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 36 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 37 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 38 | -------------------------------------------------------------------------------- /ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1386491679 &1 4 | PresetManager: 5 | m_ObjectHideFlags: 0 6 | m_DefaultList: 7 | - type: 8 | m_NativeTypeID: 108 9 | m_ManagedTypePPtr: {fileID: 0} 10 | m_ManagedTypeFallback: 11 | defaultPresets: 12 | - m_Preset: {fileID: 2655988077585873504, guid: c1cf8506f04ef2c4a88b64b6c4202eea, 13 | type: 2} 14 | - type: 15 | m_NativeTypeID: 1020 16 | m_ManagedTypePPtr: {fileID: 0} 17 | m_ManagedTypeFallback: 18 | defaultPresets: 19 | - m_Preset: {fileID: 2655988077585873504, guid: 0cd792cc87e492d43b4e95b205fc5cc6, 20 | type: 2} 21 | - type: 22 | m_NativeTypeID: 1006 23 | m_ManagedTypePPtr: {fileID: 0} 24 | m_ManagedTypeFallback: 25 | defaultPresets: 26 | - m_Preset: {fileID: 2655988077585873504, guid: 7a99f8aa944efe94cb9bd74562b7d5f9, 27 | type: 2} 28 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2019.3.0a9 2 | m_EditorVersionWithRevision: 2019.3.0a9 (b1934478c844) 3 | -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - PostProcessing 17 | - Hidden 18 | - Collision 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.0167 7 | Maximum Allowed Timestep: 0.1 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 1 7 | m_Enabled: 1 8 | m_TestMode: 0 9 | m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events 10 | m_EventUrl: https://cdp.cloud.unity3d.com/v1/events 11 | m_ConfigUrl: https://config.uca.cloud.unity3d.com 12 | m_TestInitMode: 0 13 | CrashReportingSettings: 14 | m_EventUrl: https://perf-events.cloud.unity3d.com 15 | m_Enabled: 0 16 | m_LogBufferSize: 10 17 | m_CaptureEditorExceptions: 1 18 | UnityPurchasingSettings: 19 | m_Enabled: 0 20 | m_TestMode: 0 21 | UnityAnalyticsSettings: 22 | m_Enabled: 1 23 | m_TestMode: 0 24 | m_InitializeOnStartup: 1 25 | UnityAdsSettings: 26 | m_Enabled: 0 27 | m_InitializeOnStartup: 1 28 | m_TestMode: 0 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | m_GameIds: {} 32 | m_GameId: 33 | PerformanceReportingSettings: 34 | m_Enabled: 0 35 | -------------------------------------------------------------------------------- /ProjectSettings/VFXManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!937362698 &1 4 | VFXManager: 5 | m_ObjectHideFlags: 0 6 | m_IndirectShader: {fileID: 0} 7 | m_CopyBufferShader: {fileID: 0} 8 | m_SortShader: {fileID: 0} 9 | m_RenderPipeSettingsPath: 10 | m_FixedTimeStep: 0.016666668 11 | m_MaxDeltaTime: 0.05 12 | -------------------------------------------------------------------------------- /ProjectSettings/XRSettings.asset: -------------------------------------------------------------------------------- 1 | { 2 | "m_SettingKeys": [ 3 | "VR Device Disabled", 4 | "VR Device User Alert" 5 | ], 6 | "m_SettingValues": [ 7 | "False", 8 | "False" 9 | ] 10 | } -------------------------------------------------------------------------------- /assetSources/models.blend: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/assetSources/models.blend -------------------------------------------------------------------------------- /assetSources/models.blend1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Unity-Technologies/XRAcceptanceTests/39e6f67d83d37ad581d7806cdc9ea7e11b371be8/assetSources/models.blend1 -------------------------------------------------------------------------------- /assetSources/models.blend1.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 442eda168ae66774095090e99dc7b4fd 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | --------------------------------------------------------------------------------