├── Assets ├── System │ ├── TestCard.png │ ├── TestCard.mat.meta │ ├── ValueOverride.asset.meta │ ├── Bypass.cs.meta │ ├── WebCamSelector.cs.meta │ ├── Bypass.cs │ ├── WebCamSelector.cs │ ├── TestCard.mat │ ├── TestCard.png.meta │ └── ValueOverride.asset ├── Main.unity.meta ├── Delay.meta ├── Ludiq.meta ├── NNCam.meta ├── ONNX.meta ├── Swirl.meta ├── System.meta ├── SlitScan.meta ├── NNCam │ ├── Preprocess.compute.meta │ ├── Postprocess.shader.meta │ ├── Util.cs.meta │ ├── Util.cs │ ├── InputStream.cs.meta │ ├── Postprocess.shader │ ├── Preprocess.compute │ └── InputStream.cs ├── Delay │ ├── Delay.shader.meta │ ├── Delay.cs.meta │ ├── Delay.cs │ └── Delay.shader ├── Swirl │ ├── Swirl.shader.meta │ ├── Swirl.cs.meta │ ├── Swirl.shader │ └── Swirl.cs ├── SlitScan │ ├── SlitScan.shader.meta │ ├── SlitScan.cs.meta │ ├── SlitScan.shader │ └── SlitScan.cs └── ONNX │ ├── ResNet50-stride16.onnx.meta │ ├── ResNet50-stride32.onnx.meta │ ├── MobileNetV1-x050-stride16.onnx.meta │ ├── MobileNetV1-x050-stride8.onnx.meta │ ├── MobileNetV1-x075-stride16.onnx.meta │ ├── MobileNetV1-x075-stride8.onnx.meta │ ├── MobileNetV1-x100-stride16.onnx.meta │ └── MobileNetV1-x100-stride8.onnx.meta ├── ProjectSettings ├── ProjectVersion.txt ├── ClusterInputManager.asset ├── PresetManager.asset ├── NetworkManager.asset ├── XRSettings.asset ├── VersionControlSettings.asset ├── TimeManager.asset ├── EditorBuildSettings.asset ├── BurstAotSettings_iOS.json ├── VFXManager.asset ├── BurstAotSettings_StandaloneOSX.json ├── BurstAotSettings_StandaloneWindows.json ├── AudioManager.asset ├── TagManager.asset ├── UnityConnectSettings.asset ├── EditorSettings.asset ├── DynamicsManager.asset ├── PackageManagerSettings.asset ├── QualitySettings.asset ├── NavMeshAreas.asset ├── Physics2DSettings.asset ├── GraphicsSettings.asset ├── SceneTemplateSettings.json ├── InputManager.asset └── ProjectSettings.asset ├── .gitattributes ├── .gitignore └── Packages ├── manifest.json └── packages-lock.json /Assets/System/TestCard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/keijiro/Svira/HEAD/Assets/System/TestCard.png -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2020.2.1f1 2 | m_EditorVersionWithRevision: 2020.2.1f1 (270dd8c3da1c) 3 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Assets/Main.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1bdba072bb5322349911e9ebf368ceaa 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /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 | serializedVersion: 2 7 | m_DefaultPresets: {} 8 | -------------------------------------------------------------------------------- /Assets/Delay.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a280a544504c50f44b2b3f4013503534 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Ludiq.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c1fa6f52f8139ed4c8cd6efc40d327e9 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/NNCam.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6c481d9569b431c4b8d3db4387a50985 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ONNX.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eac4801912c792f45b200bedfc36c2e6 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Swirl.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a5570fe61a62b9149a7a5206c3e575bb 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/System.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b55dfa31f55744a5c8c0a6281311288b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * -text 2 | 3 | *.cs text eol=lf diff=csharp 4 | *.shader text eol=lf 5 | *.cginc text eol=lf 6 | *.hlsl text eol=lf 7 | *.compute text eol=lf 8 | 9 | *.meta text eol=lf 10 | -------------------------------------------------------------------------------- /Assets/SlitScan.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2ff5ab6f2b0451948ae86e93ece11b47 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /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/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 | } -------------------------------------------------------------------------------- /Assets/System/TestCard.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8c6c8f27d2bcb47089668e8a0d564868 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/System/ValueOverride.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e50723ef24baca945b9302a4b4803563 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /ProjectSettings/VersionControlSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!890905787 &1 4 | VersionControlSettings: 5 | m_ObjectHideFlags: 0 6 | m_Mode: Visible Meta Files 7 | m_CollabEditorSettings: 8 | inProgressEnabled: 1 9 | -------------------------------------------------------------------------------- /Assets/NNCam/Preprocess.compute.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 326c8a5b8ac30474eb880d89c9b67fbe 3 | ComputeShaderImporter: 4 | externalObjects: {} 5 | currentAPIMask: 4 6 | preprocessorOverride: 0 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /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.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /Assets/Delay/Delay.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 380fce69e2a2c6c4998e4d9a7fae0395 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | preprocessorOverride: 0 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Swirl/Swirl.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4d4d27379aecc9d41aef1fa959c0cc69 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | preprocessorOverride: 0 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/NNCam/Postprocess.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 263d3f72334a1d146abbb50483d18d64 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | preprocessorOverride: 0 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/SlitScan/SlitScan.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: da4c36586b535c443835501358245abd 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | preprocessorOverride: 0 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/NNCam/Util.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 34d6fd90e3e32684487c4390024a9563 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/System/Bypass.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a6dd5f534c022467ab80182c1722d501 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/SlitScan/SlitScan.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1f32e4ed0f28e8f4e89362f53009a3d4 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/System/WebCamSelector.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e1ba7b608db874102b4c63b2aeb2b73d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /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/Main.unity 10 | guid: 1bdba072bb5322349911e9ebf368ceaa 11 | m_configObjects: {} 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Windows 2 | Thumbs.db 3 | Desktop.ini 4 | 5 | # macOS 6 | .DS_Store 7 | 8 | # Code Editors 9 | /.idea 10 | /.vscode 11 | /*.csproj 12 | /*.sln 13 | *.swp 14 | *.vcxproj.user 15 | 16 | # Unity 17 | /Library 18 | /Logs 19 | /Recordings 20 | /UserSettings 21 | /Temp 22 | 23 | # Bolt 24 | /Assets/Ludiq 25 | 26 | # ONNX 27 | *.onnx 28 | -------------------------------------------------------------------------------- /ProjectSettings/BurstAotSettings_iOS.json: -------------------------------------------------------------------------------- 1 | { 2 | "MonoBehaviour": { 3 | "Version": 3, 4 | "EnableBurstCompilation": true, 5 | "EnableOptimisations": true, 6 | "EnableSafetyChecks": false, 7 | "EnableDebugInAllBuilds": false, 8 | "CpuMinTargetX32": 0, 9 | "CpuMaxTargetX32": 0, 10 | "CpuMinTargetX64": 0, 11 | "CpuMaxTargetX64": 0 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Assets/Delay/Delay.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9d64ad32c28f2154cbb42feca3089e37 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: 7 | - _shader: {fileID: 4800000, guid: 380fce69e2a2c6c4998e4d9a7fae0395, type: 3} 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /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_StripUpdateShader: {fileID: 0} 10 | m_RenderPipeSettingsPath: 11 | m_FixedTimeStep: 0.016666668 12 | m_MaxDeltaTime: 0.05 13 | -------------------------------------------------------------------------------- /Assets/System/Bypass.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | public sealed class Bypass : MonoBehaviour 4 | { 5 | [SerializeField] WebCamSelector _webcam = null; 6 | 7 | void OnRenderImage(RenderTexture source, RenderTexture destination) 8 | { 9 | if (_webcam.ready) 10 | Graphics.Blit(_webcam.texture, destination); 11 | else 12 | Graphics.Blit(source, destination); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Assets/Swirl/Swirl.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b3c0f61d745edc6448013ca652a250fd 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: 7 | - _inputStream: {instanceID: 0} 8 | - _shader: {fileID: 4800000, guid: 4d4d27379aecc9d41aef1fa959c0cc69, type: 3} 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/ONNX/ResNet50-stride16.onnx.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 56efa733f39043f43aa491a48434e084 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 11500000, guid: 683b6cb6d0a474744822c888b46772c9, type: 3} 11 | optimizeModel: 1 12 | forceArbitraryBatchSize: 1 13 | treatErrorsAsWarnings: 0 14 | -------------------------------------------------------------------------------- /Assets/ONNX/ResNet50-stride32.onnx.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 111a8181a68bb4d4eac898cf03b4e773 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 11500000, guid: 683b6cb6d0a474744822c888b46772c9, type: 3} 11 | optimizeModel: 1 12 | forceArbitraryBatchSize: 1 13 | treatErrorsAsWarnings: 0 14 | -------------------------------------------------------------------------------- /Assets/ONNX/MobileNetV1-x050-stride16.onnx.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: deac284823744034982954ba658860e4 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 11500000, guid: 683b6cb6d0a474744822c888b46772c9, type: 3} 11 | optimizeModel: 1 12 | forceArbitraryBatchSize: 1 13 | treatErrorsAsWarnings: 0 14 | -------------------------------------------------------------------------------- /Assets/ONNX/MobileNetV1-x050-stride8.onnx.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fcce9c5120d18de4a8a7e6ace345d2da 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 11500000, guid: 683b6cb6d0a474744822c888b46772c9, type: 3} 11 | optimizeModel: 1 12 | forceArbitraryBatchSize: 1 13 | treatErrorsAsWarnings: 0 14 | -------------------------------------------------------------------------------- /Assets/ONNX/MobileNetV1-x075-stride16.onnx.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cd1945c859cf29244b1541a3ba183abc 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 11500000, guid: 683b6cb6d0a474744822c888b46772c9, type: 3} 11 | optimizeModel: 1 12 | forceArbitraryBatchSize: 1 13 | treatErrorsAsWarnings: 0 14 | -------------------------------------------------------------------------------- /Assets/ONNX/MobileNetV1-x075-stride8.onnx.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 000575fc6c1f1064e8f7a41efefc5706 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 11500000, guid: 683b6cb6d0a474744822c888b46772c9, type: 3} 11 | optimizeModel: 1 12 | forceArbitraryBatchSize: 1 13 | treatErrorsAsWarnings: 0 14 | -------------------------------------------------------------------------------- /Assets/ONNX/MobileNetV1-x100-stride16.onnx.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 74e14b95834ac4d41a030d0900b24545 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 11500000, guid: 683b6cb6d0a474744822c888b46772c9, type: 3} 11 | optimizeModel: 1 12 | forceArbitraryBatchSize: 1 13 | treatErrorsAsWarnings: 0 14 | -------------------------------------------------------------------------------- /Assets/ONNX/MobileNetV1-x100-stride8.onnx.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1f792b99e1f313d4c8f1ebec6307c6be 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 11500000, guid: 683b6cb6d0a474744822c888b46772c9, type: 3} 11 | optimizeModel: 1 12 | forceArbitraryBatchSize: 1 13 | treatErrorsAsWarnings: 0 14 | -------------------------------------------------------------------------------- /ProjectSettings/BurstAotSettings_StandaloneOSX.json: -------------------------------------------------------------------------------- 1 | { 2 | "MonoBehaviour": { 3 | "Version": 3, 4 | "EnableBurstCompilation": true, 5 | "EnableOptimisations": true, 6 | "EnableSafetyChecks": false, 7 | "EnableDebugInAllBuilds": false, 8 | "UsePlatformSDKLinker": false, 9 | "CpuMinTargetX32": 0, 10 | "CpuMaxTargetX32": 0, 11 | "CpuMinTargetX64": 0, 12 | "CpuMaxTargetX64": 0, 13 | "CpuTargetsX64": 72 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ProjectSettings/BurstAotSettings_StandaloneWindows.json: -------------------------------------------------------------------------------- 1 | { 2 | "MonoBehaviour": { 3 | "Version": 3, 4 | "EnableBurstCompilation": true, 5 | "EnableOptimisations": true, 6 | "EnableSafetyChecks": false, 7 | "EnableDebugInAllBuilds": false, 8 | "UsePlatformSDKLinker": false, 9 | "CpuMinTargetX32": 0, 10 | "CpuMaxTargetX32": 0, 11 | "CpuMinTargetX64": 0, 12 | "CpuMaxTargetX64": 0, 13 | "CpuTargetsX32": 6, 14 | "CpuTargetsX64": 72 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Assets/NNCam/Util.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace NNCam { 4 | 5 | static class Util 6 | { 7 | public static RenderTextureFormat SingleChannelRTFormat 8 | => SystemInfo.SupportsRenderTextureFormat(RenderTextureFormat.R8) 9 | ? RenderTextureFormat.R8 : RenderTextureFormat.Default; 10 | 11 | public static RenderTexture NewSingleChannelRT(int width, int height) 12 | => new RenderTexture(width, height, 0, SingleChannelRTFormat); 13 | } 14 | 15 | } // namespace NNCam 16 | -------------------------------------------------------------------------------- /Assets/NNCam/InputStream.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8b612fc1cf81f3f409219c272953994c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: 7 | - _model: {instanceID: 0} 8 | - _preprocessor: {fileID: 7200000, guid: 326c8a5b8ac30474eb880d89c9b67fbe, type: 3} 9 | - _postprocessShader: {fileID: 4800000, guid: 263d3f72334a1d146abbb50483d18d64, type: 3} 10 | executionOrder: 0 11 | icon: {instanceID: 0} 12 | userData: 13 | assetBundleName: 14 | assetBundleVariant: 15 | -------------------------------------------------------------------------------- /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 | serializedVersion: 2 7 | m_Volume: 1 8 | Rolloff Scale: 1 9 | Doppler Factor: 1 10 | Default Speaker Mode: 2 11 | m_SampleRate: 0 12 | m_DSPBufferSize: 1024 13 | m_VirtualVoiceCount: 512 14 | m_RealVoiceCount: 32 15 | m_SpatializerPlugin: 16 | m_AmbisonicDecoderPlugin: 17 | m_DisableAudio: 0 18 | m_VirtualizeEffects: 1 19 | m_RequestedDSPBufferSize: 0 20 | -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "scopedRegistries": [ 3 | { 4 | "name": "Keijiro", 5 | "url": "https://registry.npmjs.com", 6 | "scopes": [ 7 | "jp.keijiro" 8 | ] 9 | } 10 | ], 11 | "dependencies": { 12 | "com.unity.barracuda": "1.2.1-preview", 13 | "com.unity.ugui": "1.0.0", 14 | "jp.keijiro.bolt.klak.base": "1.0.1", 15 | "jp.keijiro.bolt.minis": "1.0.1", 16 | "jp.keijiro.noiseshader": "1.0.0", 17 | "com.unity.modules.audio": "1.0.0", 18 | "com.unity.modules.uielements": "1.0.0" 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /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 | - 17 | - 18 | - 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/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: 0 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: 0 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 | -------------------------------------------------------------------------------- /Assets/System/WebCamSelector.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.UI; 3 | 4 | public sealed class WebCamSelector : MonoBehaviour 5 | { 6 | [SerializeField] Dropdown _dropdown = null; 7 | 8 | WebCamTexture _webcam; 9 | 10 | public bool ready => _webcam != null; 11 | public Texture texture => _webcam; 12 | 13 | void Start() 14 | { 15 | _dropdown.ClearOptions(); 16 | _dropdown.options.Add(new Dropdown.OptionData("--")); 17 | foreach (var device in WebCamTexture.devices) 18 | _dropdown.options.Add(new Dropdown.OptionData(device.name)); 19 | _dropdown.value = 0; 20 | _dropdown.RefreshShownValue(); 21 | } 22 | 23 | public void OnChangeValue(int value) 24 | { 25 | if (_webcam != null) 26 | { 27 | _webcam.Stop(); 28 | Destroy(_webcam); 29 | } 30 | 31 | if (value == 0) return; 32 | 33 | var deviceName = _dropdown.options[value].text; 34 | _webcam = new WebCamTexture(deviceName, 1920, 1080, 60); 35 | _webcam.Play(); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /Assets/NNCam/Postprocess.shader: -------------------------------------------------------------------------------- 1 | Shader "Hidden/NNCam/Postprocess" 2 | { 3 | Properties 4 | { 5 | _MainTex("", 2D) = ""{} 6 | } 7 | 8 | CGINCLUDE 9 | 10 | #include "UnityCG.cginc" 11 | 12 | sampler2D _MainTex; 13 | 14 | void Vertex(float4 position : POSITION, 15 | float2 uv : TEXCOORD0, 16 | out float4 outPosition : SV_Position, 17 | out float2 outUV : TEXCOORD0) 18 | { 19 | outPosition = UnityObjectToClipPos(position); 20 | outUV = uv; 21 | } 22 | 23 | float4 Fragment(float4 position : SV_Position, 24 | float2 uv : TEXCOORD0) : SV_Target 25 | { 26 | // Denormalization 27 | float s = (tex2D(_MainTex, uv).r - 0.5) * 32; 28 | 29 | // Sigmoid activator 30 | return 1 / (1 + exp(-s)); 31 | } 32 | 33 | ENDCG 34 | 35 | SubShader 36 | { 37 | Pass 38 | { 39 | CGPROGRAM 40 | #pragma vertex Vertex 41 | #pragma fragment Fragment 42 | ENDCG 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /Assets/NNCam/Preprocess.compute: -------------------------------------------------------------------------------- 1 | #pragma kernel PreprocessImageNetV1 2 | #pragma kernel PreprocessResNet50 3 | 4 | sampler2D _Texture; 5 | RWBuffer _Tensor; 6 | uint _Width, _Height; 7 | 8 | float3 SampleInput(uint3 id) 9 | { 10 | float2 uv = (id.xy + 0.5) / float2(_Width, _Height); 11 | uv.y = 1 - uv.y; 12 | 13 | float2 dx = float2(1.0 / _Width, 0); 14 | float2 dy = float2(0, -1.0 / _Height); 15 | 16 | return tex2Dgrad(_Texture, uv, dx, dy).rgb; 17 | } 18 | 19 | void OutputElement(uint3 id, float3 rgb) 20 | { 21 | uint offs = (id.y * _Width + id.x) * 3; 22 | _Tensor[offs + 0] = rgb.r; 23 | _Tensor[offs + 1] = rgb.g; 24 | _Tensor[offs + 2] = rgb.b; 25 | } 26 | 27 | [numthreads(8, 8, 1)] 28 | void PreprocessImageNetV1(uint3 id : SV_DispatchThreadID) 29 | { 30 | if (any(id.xy >= uint2(_Width, _Height))) return; 31 | OutputElement(id, SampleInput(id) * 2 - 1); 32 | } 33 | 34 | [numthreads(8, 8, 1)] 35 | void PreprocessResNet50(uint3 id : SV_DispatchThreadID) 36 | { 37 | if (any(id.xy >= uint2(_Width, _Height))) return; 38 | const float3 kImageNetMean = float3(-123.15, -115.90, -103.06); 39 | OutputElement(id, SampleInput(id) * 255 + kImageNetMean); 40 | } 41 | -------------------------------------------------------------------------------- /Assets/Delay/Delay.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | public sealed class Delay : MonoBehaviour 4 | { 5 | [SerializeField] WebCamSelector _webcam = null; 6 | [SerializeField, Range(0, 1)] float _delayAmount = 0.5f; 7 | [SerializeField, HideInInspector] Shader _shader = null; 8 | 9 | public float DelayAmount 10 | { get => _delayAmount; set => _delayAmount = value; } 11 | 12 | const int History = 64; 13 | 14 | Material _material; 15 | Texture2DArray _buffer; 16 | 17 | void Start() 18 | { 19 | _material = new Material(_shader); 20 | 21 | _buffer = new Texture2DArray 22 | (1920, 1080, History, TextureFormat.RGB565, false); 23 | _buffer.filterMode = FilterMode.Bilinear; 24 | _buffer.wrapMode = TextureWrapMode.Clamp; 25 | } 26 | 27 | void OnPostRender() 28 | { 29 | if (!_webcam.ready) return; 30 | 31 | var frame = Time.frameCount & (History - 1); 32 | 33 | var ac = RenderTexture.active; 34 | Graphics.ConvertTexture(_webcam.texture, 0, _buffer, frame); 35 | RenderTexture.active = ac; 36 | 37 | _material.SetPass(0); 38 | _material.SetTexture("_BufferTex", _buffer); 39 | _material.SetFloat("_DelayAmount", _delayAmount * 7.99f); 40 | _material.SetInt("_FrameCount", frame); 41 | Graphics.DrawProceduralNow(MeshTopology.Quads, 4, 1); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /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: 11 7 | m_SerializationMode: 2 8 | m_LineEndingsForNewScripts: 1 9 | m_DefaultBehaviorMode: 1 10 | m_PrefabRegularEnvironment: {fileID: 0} 11 | m_PrefabUIEnvironment: {fileID: 0} 12 | m_SpritePackerMode: 4 13 | m_SpritePackerPaddingPower: 1 14 | m_EtcTextureCompressorBehavior: 1 15 | m_EtcTextureFastCompressor: 1 16 | m_EtcTextureNormalCompressor: 2 17 | m_EtcTextureBestCompressor: 4 18 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;asmref;rsp 19 | m_ProjectGenerationRootNamespace: 20 | m_EnableTextureStreamingInEditMode: 1 21 | m_EnableTextureStreamingInPlayMode: 1 22 | m_AsyncShaderCompilation: 1 23 | m_CachingShaderPreprocessor: 1 24 | m_PrefabModeAllowAutoSave: 1 25 | m_EnterPlayModeOptionsEnabled: 1 26 | m_EnterPlayModeOptions: 3 27 | m_GameObjectNamingDigits: 1 28 | m_GameObjectNamingScheme: 0 29 | m_AssetNamingUsesSpace: 1 30 | m_UseLegacyProbeSampleCount: 0 31 | m_SerializeInlineMappingsOnOneLine: 1 32 | m_DisableCookiesInLightmapper: 1 33 | m_AssetPipelineMode: 1 34 | m_CacheServerMode: 0 35 | m_CacheServerEndpoint: 36 | m_CacheServerNamespacePrefix: default 37 | m_CacheServerEnableDownload: 1 38 | m_CacheServerEnableUpload: 1 39 | m_CacheServerEnableAuth: 0 40 | m_CacheServerEnableTls: 0 41 | -------------------------------------------------------------------------------- /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: 13 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.1 18 | m_ClothInterCollisionStiffness: 0.2 19 | m_ContactsGeneration: 1 20 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 21 | m_AutoSimulation: 1 22 | m_AutoSyncTransforms: 0 23 | m_ReuseCollisionCallbacks: 1 24 | m_ClothInterCollisionSettingsToggle: 0 25 | m_ClothGravity: {x: 0, y: -9.81, z: 0} 26 | m_ContactPairsMode: 0 27 | m_BroadphaseType: 0 28 | m_WorldBounds: 29 | m_Center: {x: 0, y: 0, z: 0} 30 | m_Extent: {x: 250, y: 250, z: 250} 31 | m_WorldSubdivisions: 8 32 | m_FrictionType: 0 33 | m_EnableEnhancedDeterminism: 0 34 | m_EnableUnifiedHeightmaps: 1 35 | m_SolverType: 0 36 | m_DefaultMaxAngularSpeed: 50 37 | -------------------------------------------------------------------------------- /ProjectSettings/PackageManagerSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &1 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 61 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 13964, guid: 0000000000000000e000000000000000, type: 0} 13 | m_Name: 14 | m_EditorClassIdentifier: 15 | m_EnablePreviewPackages: 1 16 | m_EnablePackageDependencies: 1 17 | m_AdvancedSettingsExpanded: 1 18 | m_ScopedRegistriesSettingsExpanded: 1 19 | oneTimeWarningShown: 1 20 | m_Registries: 21 | - m_Id: main 22 | m_Name: 23 | m_Url: https://packages.unity.com 24 | m_Scopes: [] 25 | m_IsDefault: 1 26 | m_Capabilities: 7 27 | - m_Id: scoped:Keijiro 28 | m_Name: Keijiro 29 | m_Url: https://registry.npmjs.com 30 | m_Scopes: 31 | - jp.keijiro 32 | m_IsDefault: 0 33 | m_Capabilities: 0 34 | m_UserSelectedRegistryName: 35 | m_UserAddingNewScopedRegistry: 0 36 | m_RegistryInfoDraft: 37 | m_ErrorMessage: 38 | m_Original: 39 | m_Id: scoped:Keijiro 40 | m_Name: Keijiro 41 | m_Url: https://registry.npmjs.com 42 | m_Scopes: 43 | - jp.keijiro 44 | m_IsDefault: 0 45 | m_Capabilities: 0 46 | m_Modified: 0 47 | m_Name: Keijiro 48 | m_Url: https://registry.npmjs.com 49 | m_Scopes: 50 | - jp.keijiro 51 | m_SelectedScopeIndex: 0 52 | -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!47 &1 4 | QualitySettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_CurrentQuality: 0 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Medium 11 | pixelLightCount: 1 12 | shadows: 1 13 | shadowResolution: 0 14 | shadowProjection: 1 15 | shadowCascades: 1 16 | shadowDistance: 20 17 | shadowNearPlaneOffset: 3 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | shadowmaskMode: 0 21 | skinWeights: 2 22 | textureQuality: 0 23 | anisotropicTextures: 1 24 | antiAliasing: 0 25 | softParticles: 0 26 | softVegetation: 0 27 | realtimeReflectionProbes: 0 28 | billboardsFaceCameraPosition: 0 29 | vSyncCount: 1 30 | lodBias: 0.7 31 | maximumLODLevel: 0 32 | streamingMipmapsActive: 0 33 | streamingMipmapsAddAllCameras: 1 34 | streamingMipmapsMemoryBudget: 512 35 | streamingMipmapsRenderersPerFrame: 512 36 | streamingMipmapsMaxLevelReduction: 2 37 | streamingMipmapsMaxFileIORequests: 1024 38 | particleRaycastBudget: 64 39 | asyncUploadTimeSlice: 2 40 | asyncUploadBufferSize: 16 41 | asyncUploadPersistentBuffer: 1 42 | resolutionScalingFixedDPIFactor: 1 43 | customRenderPipeline: {fileID: 0} 44 | excludedTargetPlatforms: [] 45 | m_PerPlatformDefaultQuality: 46 | Android: 0 47 | Lumin: 0 48 | Nintendo Switch: 0 49 | PS4: 0 50 | Stadia: 0 51 | Standalone: 0 52 | WebGL: 0 53 | Windows Store Apps: 0 54 | XboxOne: 0 55 | iPhone: 0 56 | tvOS: 0 57 | -------------------------------------------------------------------------------- /Assets/SlitScan/SlitScan.shader: -------------------------------------------------------------------------------- 1 | Shader "Hidden/Svira/SlitScan" 2 | { 3 | Properties 4 | { 5 | _BufferTex("", 2DArray) = "" {} 6 | } 7 | 8 | CGINCLUDE 9 | 10 | #include "UnityCG.cginc" 11 | 12 | #define HISTORY 256 13 | 14 | UNITY_DECLARE_TEX2DARRAY(_BufferTex); 15 | float _Opacity; 16 | float _DelayAmount; 17 | float _AxisSwitch; 18 | uint _FrameCount; 19 | uint _BufferCount; 20 | 21 | float3 GetHistory(float2 uv, uint offset) 22 | { 23 | offset = min(_BufferCount, offset); 24 | uint i = (_FrameCount + HISTORY - offset) & (HISTORY - 1); 25 | return UNITY_SAMPLE_TEX2DARRAY(_BufferTex, float3(uv, i)).rgb; 26 | } 27 | 28 | void Vertex(uint vid : SV_VertexID, 29 | out float4 pos : SV_Position, 30 | out float2 uv : TEXCOORD0) 31 | { 32 | float x = vid >> 1; 33 | float y = (vid & 1) ^ (vid >> 1); 34 | 35 | pos = float4(float2(x, y) * 2 - 1, 1, 1); 36 | uv = float2(x, y); 37 | } 38 | 39 | float4 Fragment(float4 pos : SV_Position, 40 | float2 uv : TEXCOORD0) : SV_Target 41 | { 42 | float delay = lerp(uv.x, 1 - uv.y, _AxisSwitch) * _DelayAmount; 43 | uint offset = (uint)delay; 44 | float3 p0 = GetHistory(uv, 0); 45 | float3 p1 = GetHistory(uv, offset + 0); 46 | float3 p2 = GetHistory(uv, offset + 1); 47 | return float4(lerp(p0, lerp(p1, p2, frac(delay)), _Opacity), 1); 48 | } 49 | 50 | ENDCG 51 | 52 | SubShader 53 | { 54 | Pass 55 | { 56 | Cull off ZTest Always 57 | CGPROGRAM 58 | #pragma vertex Vertex 59 | #pragma fragment Fragment 60 | ENDCG 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /Assets/Delay/Delay.shader: -------------------------------------------------------------------------------- 1 | Shader "Hidden/Svira/Delay" 2 | { 3 | Properties 4 | { 5 | _BufferTex("", 2DArray) = "" {} 6 | } 7 | 8 | CGINCLUDE 9 | 10 | #include "UnityCG.cginc" 11 | 12 | #define HISTORY 64 13 | 14 | UNITY_DECLARE_TEX2DARRAY(_BufferTex); 15 | float _DelayAmount; 16 | uint _FrameCount; 17 | 18 | float3 GetHistory(float2 uv, uint offset) 19 | { 20 | uint i = (_FrameCount + HISTORY - offset) & (HISTORY - 1); 21 | return UNITY_SAMPLE_TEX2DARRAY(_BufferTex, float3(uv, i)).rgb; 22 | } 23 | 24 | void Vertex(uint vid : SV_VertexID, 25 | out float4 pos : SV_Position, 26 | out float2 uv : TEXCOORD0) 27 | { 28 | float x = vid >> 1; 29 | float y = (vid & 1) ^ (vid >> 1); 30 | 31 | pos = float4(float2(x, y) * 2 - 1, 1, 1); 32 | uv = float2(x, y); 33 | } 34 | 35 | float4 Fragment(float4 pos : SV_Position, 36 | float2 uv : TEXCOORD0) : SV_Target 37 | { 38 | float3 acc = 0; 39 | 40 | for (uint i = 0; i < 8; i++) 41 | { 42 | // Source with monochrome + contrast 43 | float3 c = GetHistory(uv, i * _DelayAmount); 44 | 45 | // Hue 46 | float h = i / 8.0 * 6 - 2; 47 | c *= saturate(float3(abs(h - 1) - 1, 2 - abs(h), 2 - abs(h - 2))); 48 | 49 | // Accumulation 50 | acc += c / 4; 51 | } 52 | 53 | return float4(acc, 1); 54 | } 55 | 56 | ENDCG 57 | 58 | SubShader 59 | { 60 | Pass 61 | { 62 | Cull off ZTest Always 63 | CGPROGRAM 64 | #pragma vertex Vertex 65 | #pragma fragment Fragment 66 | ENDCG 67 | } 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Assets/SlitScan/SlitScan.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | public sealed class SlitScan : MonoBehaviour 4 | { 5 | [SerializeField] WebCamSelector _webcam = null; 6 | [SerializeField, Range(0, 1)] float _opacity = 1; 7 | [SerializeField, Range(0, 1)] float _delayAmount = 0.5f; 8 | [SerializeField] bool _rotateAxis = false; 9 | [SerializeField] bool _enableBuffer = true; 10 | [SerializeField, HideInInspector] Shader _shader = null; 11 | 12 | public float Opacity 13 | { get => _opacity; set => _opacity = value; } 14 | 15 | public float DelayAmount 16 | { get => _delayAmount; set => _delayAmount = value; } 17 | 18 | public bool RotateAxis 19 | { get => _rotateAxis; set => _rotateAxis = value; } 20 | 21 | public bool EnableBuffer 22 | { get => _enableBuffer; set => _enableBuffer = value; } 23 | 24 | const int History = 256; 25 | 26 | Material _material; 27 | Texture2DArray _buffer; 28 | int _bufferCount; 29 | 30 | void Start() 31 | { 32 | _material = new Material(_shader); 33 | 34 | _buffer = new Texture2DArray 35 | (1920, 1080, History, TextureFormat.RGB565, false); 36 | _buffer.filterMode = FilterMode.Bilinear; 37 | _buffer.wrapMode = TextureWrapMode.Clamp; 38 | } 39 | 40 | void Update() 41 | => _bufferCount = _enableBuffer ? _bufferCount + 1 : 0; 42 | 43 | void OnPostRender() 44 | { 45 | if (!_webcam.ready) return; 46 | 47 | var frame = Time.frameCount & (History - 1); 48 | 49 | var ac = RenderTexture.active; 50 | Graphics.ConvertTexture(_webcam.texture, 0, _buffer, frame); 51 | RenderTexture.active = ac; 52 | 53 | _material.SetPass(0); 54 | _material.SetTexture("_BufferTex", _buffer); 55 | _material.SetFloat("_Opacity", _opacity); 56 | _material.SetFloat("_DelayAmount", _delayAmount * 255); 57 | _material.SetFloat("_AxisSwitch", _rotateAxis ? 0 : 1); 58 | _material.SetInt("_FrameCount", frame); 59 | _material.SetInt("_BufferCount", _bufferCount); 60 | Graphics.DrawProceduralNow(MeshTopology.Quads, 4, 1); 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /Assets/Swirl/Swirl.shader: -------------------------------------------------------------------------------- 1 | Shader "Hidden/Svira/Swirl" 2 | { 3 | Properties 4 | { 5 | _MainTex("", 2D) = ""{} 6 | _FeedbackTex("", 2D) = ""{} 7 | _MaskTex("", 2D) = ""{} 8 | } 9 | 10 | CGINCLUDE 11 | 12 | #include "UnityCG.cginc" 13 | #include "Packages/jp.keijiro.noiseshader/Shader/SimplexNoise3D.hlsl" 14 | 15 | sampler2D _MainTex; 16 | sampler2D _FeedbackTex; 17 | sampler2D _MaskTex; 18 | float2 _Feedback; // length, decay 19 | float3 _Noise; // frequency, speed, amount 20 | float _Letterbox; 21 | 22 | float2 DFNoise(float2 uv, float3 freq) 23 | { 24 | float3 np = float3(uv, _Time.y) * freq; 25 | float2 n1 = snoise_grad(np).xy; 26 | return cross(float3(n1, 0), float3(0, 0, 1)).xy; 27 | } 28 | 29 | float2 Displacement(float2 uv) 30 | { 31 | float aspect = _ScreenParams.x / _ScreenParams.y; 32 | float2 p = uv * float2(aspect, 1); 33 | float2 n = DFNoise(p, _Noise.xxy * -1) * _Noise.z + 34 | DFNoise(p, _Noise.xxy * +2) * _Noise.z * 0.5; 35 | return n * float2(1, aspect); 36 | } 37 | 38 | void Vertex(float4 position : POSITION, 39 | float2 uv : TEXCOORD0, 40 | out float4 outPosition : SV_Position, 41 | out float2 outUV : TEXCOORD0) 42 | { 43 | outPosition = UnityObjectToClipPos(position); 44 | outUV = uv; 45 | } 46 | 47 | float4 Fragment(float4 position : SV_Position, 48 | float2 uv : TEXCOORD0) : SV_Target 49 | { 50 | float3 camera = tex2D(_MainTex, uv).rgb; 51 | float4 feedback = tex2D(_FeedbackTex, uv + Displacement(uv)); 52 | 53 | camera *= abs(uv.y - 0.5) < 0.5 - _Letterbox / 2; 54 | 55 | float mask = smoothstep(0.9, 1, tex2D(_MaskTex, uv).r); 56 | 57 | float alpha = lerp(feedback.a * (1 - _Feedback.y), _Feedback.x, mask); 58 | float3 rgb = lerp(camera, feedback.rgb, saturate(alpha) * (1 - mask)); 59 | 60 | return float4(rgb, alpha); 61 | } 62 | 63 | ENDCG 64 | 65 | SubShader 66 | { 67 | Pass 68 | { 69 | CGPROGRAM 70 | #pragma vertex Vertex 71 | #pragma fragment Fragment 72 | ENDCG 73 | } 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /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: 5 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_JobOptions: 23 | serializedVersion: 2 24 | useMultithreading: 0 25 | useConsistencySorting: 0 26 | m_InterpolationPosesPerJob: 100 27 | m_NewContactsPerJob: 30 28 | m_CollideContactsPerJob: 100 29 | m_ClearFlagsPerJob: 200 30 | m_ClearBodyForcesPerJob: 200 31 | m_SyncDiscreteFixturesPerJob: 50 32 | m_SyncContinuousFixturesPerJob: 50 33 | m_FindNearestContactsPerJob: 100 34 | m_UpdateTriggerContactsPerJob: 100 35 | m_IslandSolverCostThreshold: 100 36 | m_IslandSolverBodyCostScale: 1 37 | m_IslandSolverContactCostScale: 10 38 | m_IslandSolverJointCostScale: 10 39 | m_IslandSolverBodiesPerJob: 50 40 | m_IslandSolverContactsPerJob: 50 41 | m_SimulationMode: 0 42 | m_QueriesHitTriggers: 1 43 | m_QueriesStartInColliders: 1 44 | m_CallbacksOnDisable: 1 45 | m_ReuseCollisionCallbacks: 1 46 | m_AutoSyncTransforms: 0 47 | m_AlwaysShowColliders: 0 48 | m_ShowColliderSleep: 1 49 | m_ShowColliderContacts: 0 50 | m_ShowColliderAABB: 0 51 | m_ContactArrowScale: 0.2 52 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 53 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 54 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 55 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 56 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 57 | -------------------------------------------------------------------------------- /Assets/System/TestCard.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: TestCard 11 | m_Shader: {fileID: 10752, guid: 0000000000000000f000000000000000, type: 0} 12 | m_ShaderKeywords: 13 | m_LightmapFlags: 4 14 | m_EnableInstancingVariants: 0 15 | m_DoubleSidedGI: 0 16 | m_CustomRenderQueue: -1 17 | stringTagMap: {} 18 | disabledShaderPasses: [] 19 | m_SavedProperties: 20 | serializedVersion: 3 21 | m_TexEnvs: 22 | - _BumpMap: 23 | m_Texture: {fileID: 0} 24 | m_Scale: {x: 1, y: 1} 25 | m_Offset: {x: 0, y: 0} 26 | - _DetailAlbedoMap: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - _DetailMask: 31 | m_Texture: {fileID: 0} 32 | m_Scale: {x: 1, y: 1} 33 | m_Offset: {x: 0, y: 0} 34 | - _DetailNormalMap: 35 | m_Texture: {fileID: 0} 36 | m_Scale: {x: 1, y: 1} 37 | m_Offset: {x: 0, y: 0} 38 | - _EmissionMap: 39 | m_Texture: {fileID: 0} 40 | m_Scale: {x: 1, y: 1} 41 | m_Offset: {x: 0, y: 0} 42 | - _MainTex: 43 | m_Texture: {fileID: 2800000, guid: fbc7629aa550e4ec2bcc0850e4d54ae1, type: 3} 44 | m_Scale: {x: 1, y: 1} 45 | m_Offset: {x: 0, y: 0} 46 | - _MetallicGlossMap: 47 | m_Texture: {fileID: 0} 48 | m_Scale: {x: 1, y: 1} 49 | m_Offset: {x: 0, y: 0} 50 | - _OcclusionMap: 51 | m_Texture: {fileID: 0} 52 | m_Scale: {x: 1, y: 1} 53 | m_Offset: {x: 0, y: 0} 54 | - _ParallaxMap: 55 | m_Texture: {fileID: 0} 56 | m_Scale: {x: 1, y: 1} 57 | m_Offset: {x: 0, y: 0} 58 | m_Floats: 59 | - _BumpScale: 1 60 | - _Cutoff: 0.5 61 | - _DetailNormalMapScale: 1 62 | - _DstBlend: 0 63 | - _GlossMapScale: 1 64 | - _Glossiness: 0.5 65 | - _GlossyReflections: 1 66 | - _Metallic: 0 67 | - _Mode: 0 68 | - _OcclusionStrength: 1 69 | - _Parallax: 0.02 70 | - _SmoothnessTextureChannel: 0 71 | - _SpecularHighlights: 1 72 | - _SrcBlend: 1 73 | - _UVSec: 0 74 | - _ZWrite: 1 75 | m_Colors: 76 | - _Color: {r: 1, g: 1, b: 1, a: 1} 77 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 78 | m_BuildTextureStacks: [] 79 | -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 13 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_VideoShadersIncludeMode: 2 32 | m_AlwaysIncludedShaders: 33 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 38 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 39 | - {fileID: 10783, guid: 0000000000000000f000000000000000, type: 0} 40 | m_PreloadedShaders: [] 41 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} 42 | m_CustomRenderPipeline: {fileID: 0} 43 | m_TransparencySortMode: 0 44 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 45 | m_DefaultRenderingPath: 1 46 | m_DefaultMobileRenderingPath: 1 47 | m_TierSettings: [] 48 | m_LightmapStripping: 0 49 | m_FogStripping: 0 50 | m_InstancingStripping: 0 51 | m_LightmapKeepPlain: 1 52 | m_LightmapKeepDirCombined: 1 53 | m_LightmapKeepDynamicPlain: 1 54 | m_LightmapKeepDynamicDirCombined: 1 55 | m_LightmapKeepShadowMask: 1 56 | m_LightmapKeepSubtractive: 1 57 | m_FogKeepLinear: 1 58 | m_FogKeepExp: 1 59 | m_FogKeepExp2: 1 60 | m_AlbedoSwatchInfos: [] 61 | m_LightsUseLinearIntensity: 0 62 | m_LightsUseColorTemperature: 0 63 | m_LogWhenShaderIsCompiled: 0 64 | -------------------------------------------------------------------------------- /Assets/Swirl/Swirl.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | public sealed class Swirl : MonoBehaviour 4 | { 5 | #region Editor only attributes 6 | 7 | [SerializeField] NNCam.InputStream _inputStream = null; 8 | [SerializeField, HideInInspector] Shader _shader = null; 9 | 10 | #endregion 11 | 12 | #region Editable properties 13 | 14 | [SerializeField] float _feedbackLength = 3; 15 | [SerializeField] float _feedbackDecay = 1; 16 | [SerializeField] float _noiseFrequency = 1; 17 | [SerializeField] float _noiseSpeed = 1; 18 | [SerializeField] float _noiseAmount = 1; 19 | [SerializeField, Range(0, 1)] float _letterboxing = 0.1f; 20 | 21 | public float FeedbackLength 22 | { get => _feedbackLength; set => _feedbackLength = value; } 23 | 24 | public float FeedbackDecay 25 | { get => _feedbackDecay; set => _feedbackDecay = value; } 26 | 27 | public float NoiseFrequency 28 | { get => _noiseFrequency; set => _noiseFrequency = value; } 29 | 30 | public float NoiseSpeed 31 | { get => _noiseSpeed; set => _noiseSpeed = value; } 32 | 33 | public float NoiseAmount 34 | { get => _noiseAmount; set => _noiseAmount = value; } 35 | 36 | public float Letterboxing 37 | { get => _letterboxing; set => _letterboxing = value; } 38 | 39 | #endregion 40 | 41 | #region Private members 42 | 43 | RenderTexture NewBuffer() 44 | => new RenderTexture(1920, 1080, 0, RenderTextureFormat.ARGBHalf); 45 | 46 | Vector2 FeedbackParamsVector 47 | => new Vector3(_feedbackLength, _feedbackDecay / 100); 48 | 49 | Vector3 NoiseParamsVector 50 | => new Vector3(_noiseFrequency, _noiseSpeed, _noiseAmount / 1000); 51 | 52 | (RenderTexture rt1, RenderTexture rt2) _buffer; 53 | Material _material; 54 | 55 | #endregion 56 | 57 | #region MonoBehaviour implementation 58 | 59 | void Start() 60 | { 61 | _material = new Material(_shader); 62 | _buffer.rt1 = NewBuffer(); 63 | _buffer.rt2 = NewBuffer(); 64 | } 65 | 66 | void OnDestroy() 67 | { 68 | Destroy(_material); 69 | Destroy(_buffer.rt1); 70 | Destroy(_buffer.rt2); 71 | } 72 | 73 | void OnRenderImage(RenderTexture source, RenderTexture destination) 74 | { 75 | if (_inputStream.MaskTexture == null) 76 | { 77 | Graphics.Blit(source, destination); 78 | return; 79 | } 80 | 81 | // Effector shader 82 | _material.SetTexture("_FeedbackTex", _buffer.rt1); 83 | _material.SetTexture("_MaskTex", _inputStream.MaskTexture); 84 | _material.SetVector("_Feedback", FeedbackParamsVector); 85 | _material.SetVector("_Noise", NoiseParamsVector); 86 | _material.SetFloat("_Letterbox", _letterboxing); 87 | Graphics.Blit(_inputStream.CameraTexture, _buffer.rt2, _material, 0); 88 | 89 | // Final blit 90 | Graphics.Blit(_buffer.rt2, destination); 91 | 92 | // Double buffer swapping 93 | _buffer = (_buffer.rt2, _buffer.rt1); 94 | } 95 | 96 | #endregion 97 | } 98 | -------------------------------------------------------------------------------- /Assets/System/TestCard.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fbc7629aa550e4ec2bcc0850e4d54ae1 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 11 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 0 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 | vTOnly: 0 27 | grayScaleToAlpha: 0 28 | generateCubemap: 6 29 | cubemapConvolution: 0 30 | seamlessCubemap: 0 31 | textureFormat: 1 32 | maxTextureSize: 2048 33 | textureSettings: 34 | serializedVersion: 2 35 | filterMode: -1 36 | aniso: 1 37 | mipBias: -100 38 | wrapU: 1 39 | wrapV: 1 40 | wrapW: 1 41 | nPOTScale: 0 42 | lightmap: 0 43 | compressionQuality: 50 44 | spriteMode: 1 45 | spriteExtrude: 1 46 | spriteMeshType: 1 47 | alignment: 0 48 | spritePivot: {x: 0.5, y: 0.5} 49 | spritePixelsToUnits: 100 50 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 51 | spriteGenerateFallbackPhysicsShape: 1 52 | alphaUsage: 1 53 | alphaIsTransparency: 1 54 | spriteTessellationDetail: -1 55 | textureType: 2 56 | textureShape: 1 57 | singleChannelComponent: 0 58 | flipbookRows: 1 59 | flipbookColumns: 1 60 | maxTextureSizeSet: 0 61 | compressionQualitySet: 0 62 | textureFormatSet: 0 63 | ignorePngGamma: 0 64 | applyGammaDecoding: 0 65 | platformSettings: 66 | - serializedVersion: 3 67 | buildTarget: DefaultTexturePlatform 68 | maxTextureSize: 2048 69 | resizeAlgorithm: 0 70 | textureFormat: -1 71 | textureCompression: 0 72 | compressionQuality: 50 73 | crunchedCompression: 0 74 | allowsAlphaSplitting: 0 75 | overridden: 0 76 | androidETC2FallbackOverride: 0 77 | forceMaximumCompressionQuality_BC6H_BC7: 0 78 | - serializedVersion: 3 79 | buildTarget: Standalone 80 | maxTextureSize: 2048 81 | resizeAlgorithm: 0 82 | textureFormat: -1 83 | textureCompression: 0 84 | compressionQuality: 50 85 | crunchedCompression: 0 86 | allowsAlphaSplitting: 0 87 | overridden: 0 88 | androidETC2FallbackOverride: 0 89 | forceMaximumCompressionQuality_BC6H_BC7: 0 90 | - serializedVersion: 3 91 | buildTarget: iPhone 92 | maxTextureSize: 2048 93 | resizeAlgorithm: 0 94 | textureFormat: -1 95 | textureCompression: 0 96 | compressionQuality: 50 97 | crunchedCompression: 0 98 | allowsAlphaSplitting: 0 99 | overridden: 0 100 | androidETC2FallbackOverride: 0 101 | forceMaximumCompressionQuality_BC6H_BC7: 0 102 | spriteSheet: 103 | serializedVersion: 2 104 | sprites: [] 105 | outline: [] 106 | physicsShape: [] 107 | bones: [] 108 | spriteID: 5e97eb03825dee720800000000000000 109 | internalID: 0 110 | vertices: [] 111 | indices: 112 | edges: [] 113 | weights: [] 114 | secondaryTextures: [] 115 | spritePackingTag: 116 | pSDRemoveMatte: 0 117 | pSDShowRemoveMatteOption: 0 118 | userData: 119 | assetBundleName: 120 | assetBundleVariant: 121 | -------------------------------------------------------------------------------- /Assets/NNCam/InputStream.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using Unity.Barracuda; 3 | 4 | namespace NNCam { 5 | 6 | sealed class InputStream : MonoBehaviour 7 | { 8 | #region Enum definitions 9 | 10 | enum Architecture { MobileNetV1, ResNet50 } 11 | 12 | #endregion 13 | 14 | #region Editable attributes 15 | 16 | [SerializeField] WebCamSelector _webcam = null; 17 | [SerializeField] Architecture _architecture = Architecture.MobileNetV1; 18 | [SerializeField] Unity.Barracuda.NNModel _model = null; 19 | [SerializeField, HideInInspector] ComputeShader _preprocessor = null; 20 | [SerializeField, HideInInspector] Shader _postprocessShader = null; 21 | 22 | #endregion 23 | 24 | #region Compile-time constants 25 | 26 | // We use a bit strange aspect ratio (20:11) because we have to use 16n+1 27 | // for these dimension values. It may distort input images a bit, but it 28 | // might not be a problem for the segmentation models. 29 | public const int Width = 640 + 1; 30 | public const int Height = 352 + 1; 31 | 32 | #endregion 33 | 34 | #region Internal objects 35 | 36 | RenderTexture _webcamBuffer; 37 | ComputeBuffer _preprocessed; 38 | RenderTexture _postprocessed; 39 | Material _postprocessor; 40 | IWorker _worker; 41 | 42 | #endregion 43 | 44 | #region Public properties 45 | 46 | public Texture CameraTexture => _webcam.ready ? _webcamBuffer : null; 47 | public Texture MaskTexture => _webcam.ready ? _postprocessed : null; 48 | 49 | #endregion 50 | 51 | #region MonoBehaviour implementation 52 | 53 | void Start() 54 | { 55 | _webcamBuffer = new RenderTexture(1920, 1080, 0); 56 | _postprocessed = Util.NewSingleChannelRT(1920, 1000); 57 | _postprocessor = new Material(_postprocessShader); 58 | } 59 | 60 | void OnEnable() 61 | { 62 | _preprocessed = new ComputeBuffer(Width * Height * 3, sizeof(float)); 63 | _worker = ModelLoader.Load(_model).CreateWorker(); 64 | } 65 | 66 | void OnDisable() 67 | { 68 | _preprocessed?.Dispose(); 69 | _preprocessed = null; 70 | 71 | _worker?.Dispose(); 72 | _worker = null; 73 | } 74 | 75 | void OnDestroy() 76 | { 77 | if (_webcamBuffer != null) Destroy(_webcamBuffer); 78 | if (_postprocessed != null) Destroy(_postprocessed); 79 | if (_postprocessor != null) Destroy(_postprocessor); 80 | } 81 | 82 | void Update() 83 | { 84 | if (!_webcam.ready) return; 85 | 86 | // Input buffer update 87 | var vflip = false; 88 | var scale = new Vector2(1, vflip ? -1 : 1); 89 | var offset = new Vector2(0, vflip ? 1 : 0); 90 | Graphics.Blit(_webcam.texture, _webcamBuffer, scale, offset); 91 | 92 | // Preprocessing for BodyPix 93 | var kernel = (int)_architecture; 94 | _preprocessor.SetTexture(kernel, "_Texture", _webcamBuffer); 95 | _preprocessor.SetBuffer(kernel, "_Tensor", _preprocessed); 96 | _preprocessor.SetInt("_Width", Width); 97 | _preprocessor.SetInt("_Height", Height); 98 | _preprocessor.Dispatch(kernel, Width / 8 + 1, Height / 8 + 1, 1); 99 | 100 | // BodyPix invocation 101 | using (var tensor = new Tensor(1, Height, Width, 3, _preprocessed)) 102 | _worker.Execute(tensor); 103 | 104 | // BodyPix output retrieval 105 | var output = _worker.PeekOutput("float_segments"); 106 | var (w, h) = (output.shape.sequenceLength, output.shape.height); 107 | using (var segs = output.Reshape(new TensorShape(1, h, w, 1))) 108 | { 109 | // Bake into a render texture with normalizing into [0, 1]. 110 | var segsRT = segs.ToRenderTexture(0, 0, 1.0f / 32, 0.5f); 111 | // Postprocessing shader invocation 112 | Graphics.Blit(segsRT, _postprocessed, _postprocessor); 113 | Destroy(segsRT); 114 | } 115 | } 116 | 117 | #endregion 118 | } 119 | 120 | } // namespace NNCam 121 | -------------------------------------------------------------------------------- /Packages/packages-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.barracuda": { 4 | "version": "1.2.1-preview", 5 | "depth": 0, 6 | "source": "registry", 7 | "dependencies": { 8 | "com.unity.burst": "1.3.4", 9 | "com.unity.modules.jsonserialize": "1.0.0", 10 | "com.unity.modules.imageconversion": "1.0.0" 11 | }, 12 | "url": "https://packages.unity.com" 13 | }, 14 | "com.unity.burst": { 15 | "version": "1.3.4", 16 | "depth": 1, 17 | "source": "registry", 18 | "dependencies": { 19 | "com.unity.mathematics": "1.2.1" 20 | }, 21 | "url": "https://packages.unity.com" 22 | }, 23 | "com.unity.inputsystem": { 24 | "version": "1.0.0", 25 | "depth": 2, 26 | "source": "registry", 27 | "dependencies": {}, 28 | "url": "https://packages.unity.com" 29 | }, 30 | "com.unity.mathematics": { 31 | "version": "1.2.1", 32 | "depth": 1, 33 | "source": "registry", 34 | "dependencies": {}, 35 | "url": "https://packages.unity.com" 36 | }, 37 | "com.unity.ugui": { 38 | "version": "1.0.0", 39 | "depth": 0, 40 | "source": "builtin", 41 | "dependencies": { 42 | "com.unity.modules.ui": "1.0.0", 43 | "com.unity.modules.imgui": "1.0.0" 44 | } 45 | }, 46 | "jp.keijiro.bolt.klak.base": { 47 | "version": "1.0.1", 48 | "depth": 0, 49 | "source": "registry", 50 | "dependencies": { 51 | "com.unity.mathematics": "1.2.1" 52 | }, 53 | "url": "https://registry.npmjs.com" 54 | }, 55 | "jp.keijiro.bolt.minis": { 56 | "version": "1.0.1", 57 | "depth": 0, 58 | "source": "registry", 59 | "dependencies": { 60 | "jp.keijiro.minis": "1.0.8" 61 | }, 62 | "url": "https://registry.npmjs.com" 63 | }, 64 | "jp.keijiro.minis": { 65 | "version": "1.0.8", 66 | "depth": 1, 67 | "source": "registry", 68 | "dependencies": { 69 | "jp.keijiro.rtmidi": "1.0.3", 70 | "com.unity.inputsystem": "1.0.0" 71 | }, 72 | "url": "https://registry.npmjs.com" 73 | }, 74 | "jp.keijiro.noiseshader": { 75 | "version": "1.0.0", 76 | "depth": 0, 77 | "source": "registry", 78 | "dependencies": {}, 79 | "url": "https://registry.npmjs.com" 80 | }, 81 | "jp.keijiro.rtmidi": { 82 | "version": "1.0.3", 83 | "depth": 2, 84 | "source": "registry", 85 | "dependencies": {}, 86 | "url": "https://registry.npmjs.com" 87 | }, 88 | "com.unity.modules.audio": { 89 | "version": "1.0.0", 90 | "depth": 0, 91 | "source": "builtin", 92 | "dependencies": {} 93 | }, 94 | "com.unity.modules.imageconversion": { 95 | "version": "1.0.0", 96 | "depth": 1, 97 | "source": "builtin", 98 | "dependencies": {} 99 | }, 100 | "com.unity.modules.imgui": { 101 | "version": "1.0.0", 102 | "depth": 1, 103 | "source": "builtin", 104 | "dependencies": {} 105 | }, 106 | "com.unity.modules.jsonserialize": { 107 | "version": "1.0.0", 108 | "depth": 1, 109 | "source": "builtin", 110 | "dependencies": {} 111 | }, 112 | "com.unity.modules.ui": { 113 | "version": "1.0.0", 114 | "depth": 1, 115 | "source": "builtin", 116 | "dependencies": {} 117 | }, 118 | "com.unity.modules.uielements": { 119 | "version": "1.0.0", 120 | "depth": 0, 121 | "source": "builtin", 122 | "dependencies": { 123 | "com.unity.modules.ui": "1.0.0", 124 | "com.unity.modules.imgui": "1.0.0", 125 | "com.unity.modules.jsonserialize": "1.0.0", 126 | "com.unity.modules.uielementsnative": "1.0.0" 127 | } 128 | }, 129 | "com.unity.modules.uielementsnative": { 130 | "version": "1.0.0", 131 | "depth": 1, 132 | "source": "builtin", 133 | "dependencies": { 134 | "com.unity.modules.ui": "1.0.0", 135 | "com.unity.modules.imgui": "1.0.0", 136 | "com.unity.modules.jsonserialize": "1.0.0" 137 | } 138 | } 139 | } 140 | } 141 | -------------------------------------------------------------------------------- /ProjectSettings/SceneTemplateSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "templatePinStates": [], 3 | "dependencyTypeInfos": [ 4 | { 5 | "userAdded": false, 6 | "type": "UnityEngine.AnimationClip", 7 | "ignore": false, 8 | "defaultInstantiationMode": 0, 9 | "supportsModification": true 10 | }, 11 | { 12 | "userAdded": false, 13 | "type": "UnityEditor.Animations.AnimatorController", 14 | "ignore": false, 15 | "defaultInstantiationMode": 0, 16 | "supportsModification": true 17 | }, 18 | { 19 | "userAdded": false, 20 | "type": "UnityEngine.AnimatorOverrideController", 21 | "ignore": false, 22 | "defaultInstantiationMode": 0, 23 | "supportsModification": true 24 | }, 25 | { 26 | "userAdded": false, 27 | "type": "UnityEditor.Audio.AudioMixerController", 28 | "ignore": false, 29 | "defaultInstantiationMode": 0, 30 | "supportsModification": true 31 | }, 32 | { 33 | "userAdded": false, 34 | "type": "UnityEngine.ComputeShader", 35 | "ignore": true, 36 | "defaultInstantiationMode": 1, 37 | "supportsModification": true 38 | }, 39 | { 40 | "userAdded": false, 41 | "type": "UnityEngine.Cubemap", 42 | "ignore": false, 43 | "defaultInstantiationMode": 0, 44 | "supportsModification": true 45 | }, 46 | { 47 | "userAdded": false, 48 | "type": "UnityEngine.GameObject", 49 | "ignore": false, 50 | "defaultInstantiationMode": 0, 51 | "supportsModification": true 52 | }, 53 | { 54 | "userAdded": false, 55 | "type": "UnityEditor.LightingDataAsset", 56 | "ignore": false, 57 | "defaultInstantiationMode": 0, 58 | "supportsModification": false 59 | }, 60 | { 61 | "userAdded": false, 62 | "type": "UnityEngine.LightingSettings", 63 | "ignore": false, 64 | "defaultInstantiationMode": 0, 65 | "supportsModification": true 66 | }, 67 | { 68 | "userAdded": false, 69 | "type": "UnityEngine.Material", 70 | "ignore": false, 71 | "defaultInstantiationMode": 0, 72 | "supportsModification": true 73 | }, 74 | { 75 | "userAdded": false, 76 | "type": "UnityEditor.MonoScript", 77 | "ignore": true, 78 | "defaultInstantiationMode": 1, 79 | "supportsModification": true 80 | }, 81 | { 82 | "userAdded": false, 83 | "type": "UnityEngine.PhysicMaterial", 84 | "ignore": false, 85 | "defaultInstantiationMode": 0, 86 | "supportsModification": true 87 | }, 88 | { 89 | "userAdded": false, 90 | "type": "UnityEngine.PhysicsMaterial2D", 91 | "ignore": false, 92 | "defaultInstantiationMode": 0, 93 | "supportsModification": true 94 | }, 95 | { 96 | "userAdded": false, 97 | "type": "UnityEngine.Rendering.PostProcessing.PostProcessProfile", 98 | "ignore": false, 99 | "defaultInstantiationMode": 0, 100 | "supportsModification": true 101 | }, 102 | { 103 | "userAdded": false, 104 | "type": "UnityEngine.Rendering.PostProcessing.PostProcessResources", 105 | "ignore": false, 106 | "defaultInstantiationMode": 0, 107 | "supportsModification": true 108 | }, 109 | { 110 | "userAdded": false, 111 | "type": "UnityEngine.Rendering.VolumeProfile", 112 | "ignore": false, 113 | "defaultInstantiationMode": 0, 114 | "supportsModification": true 115 | }, 116 | { 117 | "userAdded": false, 118 | "type": "UnityEditor.SceneAsset", 119 | "ignore": false, 120 | "defaultInstantiationMode": 0, 121 | "supportsModification": false 122 | }, 123 | { 124 | "userAdded": false, 125 | "type": "UnityEngine.Shader", 126 | "ignore": true, 127 | "defaultInstantiationMode": 1, 128 | "supportsModification": true 129 | }, 130 | { 131 | "userAdded": false, 132 | "type": "UnityEngine.ShaderVariantCollection", 133 | "ignore": true, 134 | "defaultInstantiationMode": 1, 135 | "supportsModification": true 136 | }, 137 | { 138 | "userAdded": false, 139 | "type": "UnityEngine.Texture", 140 | "ignore": false, 141 | "defaultInstantiationMode": 0, 142 | "supportsModification": true 143 | }, 144 | { 145 | "userAdded": false, 146 | "type": "UnityEngine.Texture2D", 147 | "ignore": false, 148 | "defaultInstantiationMode": 0, 149 | "supportsModification": true 150 | }, 151 | { 152 | "userAdded": false, 153 | "type": "UnityEngine.Timeline.TimelineAsset", 154 | "ignore": false, 155 | "defaultInstantiationMode": 0, 156 | "supportsModification": true 157 | } 158 | ], 159 | "defaultDependencyTypeInfo": { 160 | "userAdded": false, 161 | "type": "", 162 | "ignore": false, 163 | "defaultInstantiationMode": 1, 164 | "supportsModification": true 165 | }, 166 | "newSceneOverride": 0 167 | } -------------------------------------------------------------------------------- /Assets/System/ValueOverride.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_Script: {fileID: -1893448595, guid: a040fb66244a7f54289914d98ea4ef7d, type: 3} 13 | m_Name: ValueOverride 14 | m_EditorClassIdentifier: 15 | _data: 16 | _json: '{"graph":{"variables":{"collection":{"$content":[{"name":"Count","value":{"$content":0,"$type":"System.Int32"},"$version":"A"}],"$version":"A"},"$version":"A"},"controlInputDefinitions":[{"key":"Reset","label":null,"summary":null,"hideLabel":false},{"key":"Update","label":null,"summary":null,"hideLabel":false},{"key":"Change","label":null,"summary":null,"hideLabel":false}],"controlOutputDefinitions":[{"key":"Changed","label":null,"summary":null,"hideLabel":false}],"valueInputDefinitions":[{"hasDefaultValue":false,"defaultValue":{"$content":0.0,"$type":"System.Single"},"_type":"System.Single","key":"InitialValue","label":null,"summary":null,"hideLabel":false},{"hasDefaultValue":false,"defaultValue":{"$content":0.0,"$type":"System.Single"},"_type":"System.Single","key":"UpdateValue","label":null,"summary":null,"hideLabel":false},{"hasDefaultValue":false,"defaultValue":{"$content":false,"$type":"System.Boolean"},"_type":"System.Boolean","key":"Gate","label":null,"summary":null,"hideLabel":false}],"valueOutputDefinitions":[{"_type":"System.Single","key":"Value","label":null,"summary":null,"hideLabel":false}],"title":null,"summary":null,"pan":{"x":-44.0,"y":-43.0},"zoom":1.0,"elements":[{"defaultValues":{},"position":{"x":-707.0,"y":-108.0},"guid":"6d79389b-8a87-445e-b258-9d65df271647","$version":"A","$type":"Bolt.GraphInput","$id":"18"},{"defaultValues":{},"position":{"x":388.0,"y":-81.0},"guid":"65d55786-9ce1-4866-8b84-6cd0a81d1d11","$version":"A","$type":"Bolt.GraphOutput","$id":"20"},{"specifyFallback":false,"kind":"Graph","defaultValues":{"name":{"$content":"Count","$type":"System.String"}},"position":{"x":-412.0,"y":-175.0},"guid":"2415736d-e64e-42f8-933e-0e96b03df144","$version":"A","$type":"Bolt.GetVariable","$id":"22"},{"kind":"Graph","defaultValues":{"name":{"$content":"Count","$type":"System.String"}},"position":{"x":-163.0,"y":-438.0},"guid":"14e68d64-9d0b-4381-9d00-b688fd17d3bf","$version":"A","$type":"Bolt.SetVariable","$id":"24"},{"type":"System.Int32","value":{"$content":2,"$type":"System.Int32"},"defaultValues":{},"position":{"x":-337.0,"y":-363.0},"guid":"ec695277-897f-4086-9e33-49ea5569d98d","$version":"A","$type":"Bolt.Literal","$id":"26"},{"defaultValues":{"minuend":{"$content":1.0,"$type":"System.Single"},"subtrahend":{"$content":1.0,"$type":"System.Single"}},"position":{"x":-200.0,"y":-180.0},"guid":"ccb9f818-1ff0-4a31-a6c1-7d2503cac860","$version":"A","$type":"Bolt.ScalarSubtract","$id":"28"},{"kind":"Graph","defaultValues":{"name":{"$content":"Count","$type":"System.String"}},"position":{"x":-3.0,"y":-231.0},"guid":"1c76b691-0bca-4710-9a16-2fd76a5808a0","$version":"A","$type":"Bolt.SetVariable","$id":"30"},{"specifyFallback":false,"kind":"Graph","defaultValues":{"name":{"$content":"Count","$type":"System.String"}},"position":{"x":-274.0,"y":55.0},"guid":"02bc08a6-3a2d-40cd-bf3a-6e22202c0578","$version":"A","$type":"Bolt.GetVariable","$id":"32"},{"numeric":true,"defaultValues":{"b":{"$content":0.0,"$type":"System.Single"}},"position":{"x":-72.0,"y":69.0},"guid":"e48a637c-2238-4c0e-b460-c0efd66698b3","$version":"A","$type":"Bolt.Greater","$id":"34"},{"defaultValues":{},"position":{"x":120.0,"y":128.0},"guid":"6e777d6a-a3ed-4166-854b-1049d3d839b2","$version":"A","$type":"Bolt.SelectUnit","$id":"36"},{"defaultValues":{},"position":{"x":-336.0,"y":-73.0},"guid":"1300c9fc-bbf9-452c-b48f-1e4318a11baf","$version":"A","$type":"Bolt.Branch","$id":"38"},{"sourceUnit":{"$ref":"18"},"sourceKey":"Reset","destinationUnit":{"$ref":"24"},"destinationKey":"assign","guid":"8144e0e8-c014-4a73-a428-0da27e26baec","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"18"},"sourceKey":"Update","destinationUnit":{"$ref":"30"},"destinationKey":"assign","guid":"a35d7177-f8b3-4bac-a846-752a99e31f2b","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"24"},"sourceKey":"assigned","destinationUnit":{"$ref":"20"},"destinationKey":"Changed","guid":"4b881bab-0cea-4e33-ab10-4bc02143d8a3","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"18"},"sourceKey":"Change","destinationUnit":{"$ref":"38"},"destinationKey":"enter","guid":"8edb9cd5-02cc-4f82-8b57-548af5e6e022","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"38"},"sourceKey":"ifTrue","destinationUnit":{"$ref":"20"},"destinationKey":"Changed","guid":"354c3afb-1ce2-4252-b76f-5d4019646796","$type":"Bolt.ControlConnection"},{"sourceUnit":{"$ref":"34"},"sourceKey":"comparison","destinationUnit":{"$ref":"36"},"destinationKey":"condition","guid":"bf1962be-a24f-4633-8265-0de0adfb0ad9","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"32"},"sourceKey":"value","destinationUnit":{"$ref":"34"},"destinationKey":"a","guid":"4f3afec8-af59-40af-bd4e-419028b1cc7c","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"28"},"sourceKey":"difference","destinationUnit":{"$ref":"30"},"destinationKey":"input","guid":"3dfdd12f-816d-4a7a-9dcf-5e9285d2ceb5","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"22"},"sourceKey":"value","destinationUnit":{"$ref":"28"},"destinationKey":"minuend","guid":"c3d3ec08-3858-45d5-bc10-4f7f6fe0bc83","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"26"},"sourceKey":"output","destinationUnit":{"$ref":"24"},"destinationKey":"input","guid":"3100993c-c5db-4407-a07c-676fcfee212c","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"18"},"sourceKey":"InitialValue","destinationUnit":{"$ref":"36"},"destinationKey":"ifTrue","guid":"c903db70-ed1a-4e01-9ca2-764883b8245f","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"18"},"sourceKey":"UpdateValue","destinationUnit":{"$ref":"36"},"destinationKey":"ifFalse","guid":"72447b65-73c1-4581-a01f-5283ca011ce4","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"36"},"sourceKey":"selection","destinationUnit":{"$ref":"20"},"destinationKey":"Value","guid":"d24deb13-a163-4fb8-ab65-7b438e03176e","$type":"Bolt.ValueConnection"},{"sourceUnit":{"$ref":"18"},"sourceKey":"Gate","destinationUnit":{"$ref":"38"},"destinationKey":"condition","guid":"24efb40e-baa7-4a44-a339-ff080349352a","$type":"Bolt.ValueConnection"}],"$version":"A"}}' 17 | _objectReferences: [] 18 | -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!13 &1 4 | InputManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Axes: 8 | - serializedVersion: 3 9 | m_Name: Horizontal 10 | descriptiveName: 11 | descriptiveNegativeName: 12 | negativeButton: left 13 | positiveButton: right 14 | altNegativeButton: a 15 | altPositiveButton: d 16 | gravity: 3 17 | dead: 0.001 18 | sensitivity: 3 19 | snap: 1 20 | invert: 0 21 | type: 0 22 | axis: 0 23 | joyNum: 0 24 | - serializedVersion: 3 25 | m_Name: Vertical 26 | descriptiveName: 27 | descriptiveNegativeName: 28 | negativeButton: down 29 | positiveButton: up 30 | altNegativeButton: s 31 | altPositiveButton: w 32 | gravity: 3 33 | dead: 0.001 34 | sensitivity: 3 35 | snap: 1 36 | invert: 0 37 | type: 0 38 | axis: 0 39 | joyNum: 0 40 | - serializedVersion: 3 41 | m_Name: Fire1 42 | descriptiveName: 43 | descriptiveNegativeName: 44 | negativeButton: 45 | positiveButton: left ctrl 46 | altNegativeButton: 47 | altPositiveButton: mouse 0 48 | gravity: 1000 49 | dead: 0.001 50 | sensitivity: 1000 51 | snap: 0 52 | invert: 0 53 | type: 0 54 | axis: 0 55 | joyNum: 0 56 | - serializedVersion: 3 57 | m_Name: Fire2 58 | descriptiveName: 59 | descriptiveNegativeName: 60 | negativeButton: 61 | positiveButton: left alt 62 | altNegativeButton: 63 | altPositiveButton: mouse 1 64 | gravity: 1000 65 | dead: 0.001 66 | sensitivity: 1000 67 | snap: 0 68 | invert: 0 69 | type: 0 70 | axis: 0 71 | joyNum: 0 72 | - serializedVersion: 3 73 | m_Name: Fire3 74 | descriptiveName: 75 | descriptiveNegativeName: 76 | negativeButton: 77 | positiveButton: left shift 78 | altNegativeButton: 79 | altPositiveButton: mouse 2 80 | gravity: 1000 81 | dead: 0.001 82 | sensitivity: 1000 83 | snap: 0 84 | invert: 0 85 | type: 0 86 | axis: 0 87 | joyNum: 0 88 | - serializedVersion: 3 89 | m_Name: Jump 90 | descriptiveName: 91 | descriptiveNegativeName: 92 | negativeButton: 93 | positiveButton: space 94 | altNegativeButton: 95 | altPositiveButton: 96 | gravity: 1000 97 | dead: 0.001 98 | sensitivity: 1000 99 | snap: 0 100 | invert: 0 101 | type: 0 102 | axis: 0 103 | joyNum: 0 104 | - serializedVersion: 3 105 | m_Name: Mouse X 106 | descriptiveName: 107 | descriptiveNegativeName: 108 | negativeButton: 109 | positiveButton: 110 | altNegativeButton: 111 | altPositiveButton: 112 | gravity: 0 113 | dead: 0 114 | sensitivity: 0.1 115 | snap: 0 116 | invert: 0 117 | type: 1 118 | axis: 0 119 | joyNum: 0 120 | - serializedVersion: 3 121 | m_Name: Mouse Y 122 | descriptiveName: 123 | descriptiveNegativeName: 124 | negativeButton: 125 | positiveButton: 126 | altNegativeButton: 127 | altPositiveButton: 128 | gravity: 0 129 | dead: 0 130 | sensitivity: 0.1 131 | snap: 0 132 | invert: 0 133 | type: 1 134 | axis: 1 135 | joyNum: 0 136 | - serializedVersion: 3 137 | m_Name: Mouse ScrollWheel 138 | descriptiveName: 139 | descriptiveNegativeName: 140 | negativeButton: 141 | positiveButton: 142 | altNegativeButton: 143 | altPositiveButton: 144 | gravity: 0 145 | dead: 0 146 | sensitivity: 0.1 147 | snap: 0 148 | invert: 0 149 | type: 1 150 | axis: 2 151 | joyNum: 0 152 | - serializedVersion: 3 153 | m_Name: Horizontal 154 | descriptiveName: 155 | descriptiveNegativeName: 156 | negativeButton: 157 | positiveButton: 158 | altNegativeButton: 159 | altPositiveButton: 160 | gravity: 0 161 | dead: 0.19 162 | sensitivity: 1 163 | snap: 0 164 | invert: 0 165 | type: 2 166 | axis: 0 167 | joyNum: 0 168 | - serializedVersion: 3 169 | m_Name: Vertical 170 | descriptiveName: 171 | descriptiveNegativeName: 172 | negativeButton: 173 | positiveButton: 174 | altNegativeButton: 175 | altPositiveButton: 176 | gravity: 0 177 | dead: 0.19 178 | sensitivity: 1 179 | snap: 0 180 | invert: 1 181 | type: 2 182 | axis: 1 183 | joyNum: 0 184 | - serializedVersion: 3 185 | m_Name: Fire1 186 | descriptiveName: 187 | descriptiveNegativeName: 188 | negativeButton: 189 | positiveButton: joystick button 0 190 | altNegativeButton: 191 | altPositiveButton: 192 | gravity: 1000 193 | dead: 0.001 194 | sensitivity: 1000 195 | snap: 0 196 | invert: 0 197 | type: 0 198 | axis: 0 199 | joyNum: 0 200 | - serializedVersion: 3 201 | m_Name: Fire2 202 | descriptiveName: 203 | descriptiveNegativeName: 204 | negativeButton: 205 | positiveButton: joystick button 1 206 | altNegativeButton: 207 | altPositiveButton: 208 | gravity: 1000 209 | dead: 0.001 210 | sensitivity: 1000 211 | snap: 0 212 | invert: 0 213 | type: 0 214 | axis: 0 215 | joyNum: 0 216 | - serializedVersion: 3 217 | m_Name: Fire3 218 | descriptiveName: 219 | descriptiveNegativeName: 220 | negativeButton: 221 | positiveButton: joystick button 2 222 | altNegativeButton: 223 | altPositiveButton: 224 | gravity: 1000 225 | dead: 0.001 226 | sensitivity: 1000 227 | snap: 0 228 | invert: 0 229 | type: 0 230 | axis: 0 231 | joyNum: 0 232 | - serializedVersion: 3 233 | m_Name: Jump 234 | descriptiveName: 235 | descriptiveNegativeName: 236 | negativeButton: 237 | positiveButton: joystick button 3 238 | altNegativeButton: 239 | altPositiveButton: 240 | gravity: 1000 241 | dead: 0.001 242 | sensitivity: 1000 243 | snap: 0 244 | invert: 0 245 | type: 0 246 | axis: 0 247 | joyNum: 0 248 | - serializedVersion: 3 249 | m_Name: Submit 250 | descriptiveName: 251 | descriptiveNegativeName: 252 | negativeButton: 253 | positiveButton: return 254 | altNegativeButton: 255 | altPositiveButton: joystick button 0 256 | gravity: 1000 257 | dead: 0.001 258 | sensitivity: 1000 259 | snap: 0 260 | invert: 0 261 | type: 0 262 | axis: 0 263 | joyNum: 0 264 | - serializedVersion: 3 265 | m_Name: Submit 266 | descriptiveName: 267 | descriptiveNegativeName: 268 | negativeButton: 269 | positiveButton: enter 270 | altNegativeButton: 271 | altPositiveButton: space 272 | gravity: 1000 273 | dead: 0.001 274 | sensitivity: 1000 275 | snap: 0 276 | invert: 0 277 | type: 0 278 | axis: 0 279 | joyNum: 0 280 | - serializedVersion: 3 281 | m_Name: Cancel 282 | descriptiveName: 283 | descriptiveNegativeName: 284 | negativeButton: 285 | positiveButton: escape 286 | altNegativeButton: 287 | altPositiveButton: joystick button 1 288 | gravity: 1000 289 | dead: 0.001 290 | sensitivity: 1000 291 | snap: 0 292 | invert: 0 293 | type: 0 294 | axis: 0 295 | joyNum: 0 296 | - serializedVersion: 3 297 | m_Name: Enable Debug Button 1 298 | descriptiveName: 299 | descriptiveNegativeName: 300 | negativeButton: 301 | positiveButton: left ctrl 302 | altNegativeButton: 303 | altPositiveButton: joystick button 8 304 | gravity: 0 305 | dead: 0 306 | sensitivity: 0 307 | snap: 0 308 | invert: 0 309 | type: 0 310 | axis: 0 311 | joyNum: 0 312 | - serializedVersion: 3 313 | m_Name: Enable Debug Button 2 314 | descriptiveName: 315 | descriptiveNegativeName: 316 | negativeButton: 317 | positiveButton: backspace 318 | altNegativeButton: 319 | altPositiveButton: joystick button 9 320 | gravity: 0 321 | dead: 0 322 | sensitivity: 0 323 | snap: 0 324 | invert: 0 325 | type: 0 326 | axis: 0 327 | joyNum: 0 328 | - serializedVersion: 3 329 | m_Name: Debug Reset 330 | descriptiveName: 331 | descriptiveNegativeName: 332 | negativeButton: 333 | positiveButton: left alt 334 | altNegativeButton: 335 | altPositiveButton: joystick button 1 336 | gravity: 0 337 | dead: 0 338 | sensitivity: 0 339 | snap: 0 340 | invert: 0 341 | type: 0 342 | axis: 0 343 | joyNum: 0 344 | - serializedVersion: 3 345 | m_Name: Debug Next 346 | descriptiveName: 347 | descriptiveNegativeName: 348 | negativeButton: 349 | positiveButton: page down 350 | altNegativeButton: 351 | altPositiveButton: joystick button 5 352 | gravity: 0 353 | dead: 0 354 | sensitivity: 0 355 | snap: 0 356 | invert: 0 357 | type: 0 358 | axis: 0 359 | joyNum: 0 360 | - serializedVersion: 3 361 | m_Name: Debug Previous 362 | descriptiveName: 363 | descriptiveNegativeName: 364 | negativeButton: 365 | positiveButton: page up 366 | altNegativeButton: 367 | altPositiveButton: joystick button 4 368 | gravity: 0 369 | dead: 0 370 | sensitivity: 0 371 | snap: 0 372 | invert: 0 373 | type: 0 374 | axis: 0 375 | joyNum: 0 376 | - serializedVersion: 3 377 | m_Name: Debug Validate 378 | descriptiveName: 379 | descriptiveNegativeName: 380 | negativeButton: 381 | positiveButton: return 382 | altNegativeButton: 383 | altPositiveButton: joystick button 0 384 | gravity: 0 385 | dead: 0 386 | sensitivity: 0 387 | snap: 0 388 | invert: 0 389 | type: 0 390 | axis: 0 391 | joyNum: 0 392 | - serializedVersion: 3 393 | m_Name: Debug Persistent 394 | descriptiveName: 395 | descriptiveNegativeName: 396 | negativeButton: 397 | positiveButton: right shift 398 | altNegativeButton: 399 | altPositiveButton: joystick button 2 400 | gravity: 0 401 | dead: 0 402 | sensitivity: 0 403 | snap: 0 404 | invert: 0 405 | type: 0 406 | axis: 0 407 | joyNum: 0 408 | - serializedVersion: 3 409 | m_Name: Debug Multiplier 410 | descriptiveName: 411 | descriptiveNegativeName: 412 | negativeButton: 413 | positiveButton: left shift 414 | altNegativeButton: 415 | altPositiveButton: joystick button 3 416 | gravity: 0 417 | dead: 0 418 | sensitivity: 0 419 | snap: 0 420 | invert: 0 421 | type: 0 422 | axis: 0 423 | joyNum: 0 424 | - serializedVersion: 3 425 | m_Name: Debug Horizontal 426 | descriptiveName: 427 | descriptiveNegativeName: 428 | negativeButton: left 429 | positiveButton: right 430 | altNegativeButton: 431 | altPositiveButton: 432 | gravity: 1000 433 | dead: 0.001 434 | sensitivity: 1000 435 | snap: 0 436 | invert: 0 437 | type: 0 438 | axis: 0 439 | joyNum: 0 440 | - serializedVersion: 3 441 | m_Name: Debug Vertical 442 | descriptiveName: 443 | descriptiveNegativeName: 444 | negativeButton: down 445 | positiveButton: up 446 | altNegativeButton: 447 | altPositiveButton: 448 | gravity: 1000 449 | dead: 0.001 450 | sensitivity: 1000 451 | snap: 0 452 | invert: 0 453 | type: 0 454 | axis: 0 455 | joyNum: 0 456 | - serializedVersion: 3 457 | m_Name: Debug Vertical 458 | descriptiveName: 459 | descriptiveNegativeName: 460 | negativeButton: down 461 | positiveButton: up 462 | altNegativeButton: 463 | altPositiveButton: 464 | gravity: 1000 465 | dead: 0.001 466 | sensitivity: 1000 467 | snap: 0 468 | invert: 0 469 | type: 2 470 | axis: 6 471 | joyNum: 0 472 | - serializedVersion: 3 473 | m_Name: Debug Horizontal 474 | descriptiveName: 475 | descriptiveNegativeName: 476 | negativeButton: left 477 | positiveButton: right 478 | altNegativeButton: 479 | altPositiveButton: 480 | gravity: 1000 481 | dead: 0.001 482 | sensitivity: 1000 483 | snap: 0 484 | invert: 0 485 | type: 2 486 | axis: 5 487 | joyNum: 0 488 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!129 &1 4 | PlayerSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 22 7 | productGUID: c363971ddf0a356409eb89fa9d9b3e92 8 | AndroidProfiler: 0 9 | AndroidFilterTouchesWhenObscured: 0 10 | AndroidEnableSustainedPerformanceMode: 0 11 | defaultScreenOrientation: 3 12 | targetDevice: 2 13 | useOnDemandResources: 0 14 | accelerometerFrequency: 60 15 | companyName: DefaultCompany 16 | productName: Svira 17 | defaultCursor: {fileID: 0} 18 | cursorHotspot: {x: 0, y: 0} 19 | m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} 20 | m_ShowUnitySplashScreen: 0 21 | m_ShowUnitySplashLogo: 1 22 | m_SplashScreenOverlayOpacity: 1 23 | m_SplashScreenAnimation: 1 24 | m_SplashScreenLogoStyle: 1 25 | m_SplashScreenDrawMode: 0 26 | m_SplashScreenBackgroundAnimationZoom: 1 27 | m_SplashScreenLogoAnimationZoom: 1 28 | m_SplashScreenBackgroundLandscapeAspect: 1 29 | m_SplashScreenBackgroundPortraitAspect: 1 30 | m_SplashScreenBackgroundLandscapeUvs: 31 | serializedVersion: 2 32 | x: 0 33 | y: 0 34 | width: 1 35 | height: 1 36 | m_SplashScreenBackgroundPortraitUvs: 37 | serializedVersion: 2 38 | x: 0 39 | y: 0 40 | width: 1 41 | height: 1 42 | m_SplashScreenLogos: [] 43 | m_VirtualRealitySplashScreen: {fileID: 0} 44 | m_HolographicTrackingLossScreen: {fileID: 0} 45 | defaultScreenWidth: 1920 46 | defaultScreenHeight: 1080 47 | defaultScreenWidthWeb: 960 48 | defaultScreenHeightWeb: 600 49 | m_StereoRenderingPath: 0 50 | m_ActiveColorSpace: 0 51 | m_MTRendering: 1 52 | mipStripping: 0 53 | numberOfMipsStripped: 0 54 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 55 | iosShowActivityIndicatorOnLoading: -1 56 | androidShowActivityIndicatorOnLoading: -1 57 | iosUseCustomAppBackgroundBehavior: 0 58 | iosAllowHTTPDownload: 1 59 | allowedAutorotateToPortrait: 1 60 | allowedAutorotateToPortraitUpsideDown: 1 61 | allowedAutorotateToLandscapeRight: 1 62 | allowedAutorotateToLandscapeLeft: 1 63 | useOSAutorotation: 1 64 | use32BitDisplayBuffer: 1 65 | preserveFramebufferAlpha: 0 66 | disableDepthAndStencilBuffers: 0 67 | androidStartInFullscreen: 1 68 | androidRenderOutsideSafeArea: 1 69 | androidUseSwappy: 1 70 | androidBlitType: 0 71 | defaultIsNativeResolution: 1 72 | macRetinaSupport: 1 73 | runInBackground: 1 74 | captureSingleScreen: 0 75 | muteOtherAudioSources: 0 76 | Prepare IOS For Recording: 0 77 | Force IOS Speakers When Recording: 0 78 | deferSystemGesturesMode: 0 79 | hideHomeButton: 0 80 | submitAnalytics: 1 81 | usePlayerLog: 1 82 | bakeCollisionMeshes: 0 83 | forceSingleInstance: 0 84 | useFlipModelSwapchain: 1 85 | resizableWindow: 0 86 | useMacAppStoreValidation: 0 87 | macAppStoreCategory: public.app-category.games 88 | gpuSkinning: 0 89 | xboxPIXTextureCapture: 0 90 | xboxEnableAvatar: 0 91 | xboxEnableKinect: 0 92 | xboxEnableKinectAutoTracking: 0 93 | xboxEnableFitness: 0 94 | visibleInBackground: 1 95 | allowFullscreenSwitch: 1 96 | fullscreenMode: 1 97 | xboxSpeechDB: 0 98 | xboxEnableHeadOrientation: 0 99 | xboxEnableGuest: 0 100 | xboxEnablePIXSampling: 0 101 | metalFramebufferOnly: 0 102 | xboxOneResolution: 0 103 | xboxOneSResolution: 0 104 | xboxOneXResolution: 3 105 | xboxOneMonoLoggingLevel: 0 106 | xboxOneLoggingLevel: 1 107 | xboxOneDisableEsram: 0 108 | xboxOneEnableTypeOptimization: 0 109 | xboxOnePresentImmediateThreshold: 0 110 | switchQueueCommandMemory: 1048576 111 | switchQueueControlMemory: 16384 112 | switchQueueComputeMemory: 262144 113 | switchNVNShaderPoolsGranularity: 33554432 114 | switchNVNDefaultPoolsGranularity: 16777216 115 | switchNVNOtherPoolsGranularity: 16777216 116 | switchNVNMaxPublicTextureIDCount: 0 117 | switchNVNMaxPublicSamplerIDCount: 0 118 | stadiaPresentMode: 0 119 | stadiaTargetFramerate: 0 120 | vulkanNumSwapchainBuffers: 3 121 | vulkanEnableSetSRGBWrite: 0 122 | vulkanEnablePreTransform: 0 123 | vulkanEnableLateAcquireNextImage: 0 124 | m_SupportedAspectRatios: 125 | 4:3: 1 126 | 5:4: 1 127 | 16:10: 1 128 | 16:9: 1 129 | Others: 1 130 | bundleVersion: 1.0 131 | preloadedAssets: [] 132 | metroInputSource: 0 133 | wsaTransparentSwapchain: 0 134 | m_HolographicPauseOnTrackingLoss: 1 135 | xboxOneDisableKinectGpuReservation: 1 136 | xboxOneEnable7thCore: 1 137 | vrSettings: 138 | enable360StereoCapture: 0 139 | isWsaHolographicRemotingEnabled: 0 140 | enableFrameTimingStats: 0 141 | useHDRDisplay: 0 142 | D3DHDRBitDepth: 0 143 | m_ColorGamuts: 00000000 144 | targetPixelDensity: 30 145 | resolutionScalingMode: 0 146 | androidSupportedAspectRatio: 1 147 | androidMaxAspectRatio: 2.1 148 | applicationIdentifier: 149 | Standalone: com.DefaultCompany.Svira 150 | iPhone: com.DefaultCompany.NNCam 151 | buildNumber: 152 | Standalone: 0 153 | iPhone: 0 154 | tvOS: 0 155 | overrideDefaultApplicationIdentifier: 0 156 | AndroidBundleVersionCode: 1 157 | AndroidMinSdkVersion: 19 158 | AndroidTargetSdkVersion: 0 159 | AndroidPreferredInstallLocation: 1 160 | aotOptions: 161 | stripEngineCode: 1 162 | iPhoneStrippingLevel: 0 163 | iPhoneScriptCallOptimization: 0 164 | ForceInternetPermission: 0 165 | ForceSDCardPermission: 0 166 | CreateWallpaper: 0 167 | APKExpansionFiles: 0 168 | keepLoadedShadersAlive: 0 169 | StripUnusedMeshComponents: 0 170 | VertexChannelCompressionMask: 4054 171 | iPhoneSdkVersion: 988 172 | iOSTargetOSVersionString: 11.0 173 | tvOSSdkVersion: 0 174 | tvOSRequireExtendedGameController: 0 175 | tvOSTargetOSVersionString: 11.0 176 | uIPrerenderedIcon: 0 177 | uIRequiresPersistentWiFi: 0 178 | uIRequiresFullScreen: 1 179 | uIStatusBarHidden: 1 180 | uIExitOnSuspend: 0 181 | uIStatusBarStyle: 0 182 | appleTVSplashScreen: {fileID: 0} 183 | appleTVSplashScreen2x: {fileID: 0} 184 | tvOSSmallIconLayers: [] 185 | tvOSSmallIconLayers2x: [] 186 | tvOSLargeIconLayers: [] 187 | tvOSLargeIconLayers2x: [] 188 | tvOSTopShelfImageLayers: [] 189 | tvOSTopShelfImageLayers2x: [] 190 | tvOSTopShelfImageWideLayers: [] 191 | tvOSTopShelfImageWideLayers2x: [] 192 | iOSLaunchScreenType: 0 193 | iOSLaunchScreenPortrait: {fileID: 0} 194 | iOSLaunchScreenLandscape: {fileID: 0} 195 | iOSLaunchScreenBackgroundColor: 196 | serializedVersion: 2 197 | rgba: 0 198 | iOSLaunchScreenFillPct: 100 199 | iOSLaunchScreenSize: 100 200 | iOSLaunchScreenCustomXibPath: 201 | iOSLaunchScreeniPadType: 0 202 | iOSLaunchScreeniPadImage: {fileID: 0} 203 | iOSLaunchScreeniPadBackgroundColor: 204 | serializedVersion: 2 205 | rgba: 0 206 | iOSLaunchScreeniPadFillPct: 100 207 | iOSLaunchScreeniPadSize: 100 208 | iOSLaunchScreeniPadCustomXibPath: 209 | iOSLaunchScreenCustomStoryboardPath: 210 | iOSLaunchScreeniPadCustomStoryboardPath: 211 | iOSDeviceRequirements: [] 212 | iOSURLSchemes: [] 213 | iOSBackgroundModes: 0 214 | iOSMetalForceHardShadows: 0 215 | metalEditorSupport: 1 216 | metalAPIValidation: 1 217 | iOSRenderExtraFrameOnPause: 0 218 | iosCopyPluginsCodeInsteadOfSymlink: 0 219 | appleDeveloperTeamID: 220 | iOSManualSigningProvisioningProfileID: 221 | tvOSManualSigningProvisioningProfileID: 222 | iOSManualSigningProvisioningProfileType: 0 223 | tvOSManualSigningProvisioningProfileType: 0 224 | appleEnableAutomaticSigning: 0 225 | iOSRequireARKit: 0 226 | iOSAutomaticallyDetectAndAddCapabilities: 1 227 | appleEnableProMotion: 0 228 | shaderPrecisionModel: 0 229 | clonedFromGUID: 10ad67313f4034357812315f3c407484 230 | templatePackageId: com.unity.template.2d@5.0.0 231 | templateDefaultScene: Assets/Scenes/SampleScene.unity 232 | useCustomMainManifest: 0 233 | useCustomLauncherManifest: 0 234 | useCustomMainGradleTemplate: 0 235 | useCustomLauncherGradleManifest: 0 236 | useCustomBaseGradleTemplate: 0 237 | useCustomGradlePropertiesTemplate: 0 238 | useCustomProguardFile: 0 239 | AndroidTargetArchitectures: 1 240 | AndroidSplashScreenScale: 0 241 | androidSplashScreen: {fileID: 0} 242 | AndroidKeystoreName: 243 | AndroidKeyaliasName: 244 | AndroidBuildApkPerCpuArchitecture: 0 245 | AndroidTVCompatibility: 0 246 | AndroidIsGame: 1 247 | AndroidEnableTango: 0 248 | androidEnableBanner: 1 249 | androidUseLowAccuracyLocation: 0 250 | androidUseCustomKeystore: 0 251 | m_AndroidBanners: 252 | - width: 320 253 | height: 180 254 | banner: {fileID: 0} 255 | androidGamepadSupportLevel: 0 256 | AndroidMinifyWithR8: 0 257 | AndroidMinifyRelease: 0 258 | AndroidMinifyDebug: 0 259 | AndroidValidateAppBundleSize: 1 260 | AndroidAppBundleSizeToValidate: 150 261 | m_BuildTargetIcons: [] 262 | m_BuildTargetPlatformIcons: [] 263 | m_BuildTargetBatching: [] 264 | m_BuildTargetGraphicsJobs: 265 | - m_BuildTarget: MacStandaloneSupport 266 | m_GraphicsJobs: 0 267 | - m_BuildTarget: Switch 268 | m_GraphicsJobs: 0 269 | - m_BuildTarget: MetroSupport 270 | m_GraphicsJobs: 0 271 | - m_BuildTarget: AppleTVSupport 272 | m_GraphicsJobs: 0 273 | - m_BuildTarget: BJMSupport 274 | m_GraphicsJobs: 0 275 | - m_BuildTarget: LinuxStandaloneSupport 276 | m_GraphicsJobs: 0 277 | - m_BuildTarget: PS4Player 278 | m_GraphicsJobs: 0 279 | - m_BuildTarget: iOSSupport 280 | m_GraphicsJobs: 0 281 | - m_BuildTarget: WindowsStandaloneSupport 282 | m_GraphicsJobs: 0 283 | - m_BuildTarget: XboxOnePlayer 284 | m_GraphicsJobs: 0 285 | - m_BuildTarget: LuminSupport 286 | m_GraphicsJobs: 0 287 | - m_BuildTarget: AndroidPlayer 288 | m_GraphicsJobs: 0 289 | - m_BuildTarget: WebGLSupport 290 | m_GraphicsJobs: 0 291 | m_BuildTargetGraphicsJobMode: [] 292 | m_BuildTargetGraphicsAPIs: 293 | - m_BuildTarget: AndroidPlayer 294 | m_APIs: 150000000b000000 295 | m_Automatic: 0 296 | - m_BuildTarget: iOSSupport 297 | m_APIs: 10000000 298 | m_Automatic: 1 299 | m_BuildTargetVRSettings: [] 300 | openGLRequireES31: 0 301 | openGLRequireES31AEP: 0 302 | openGLRequireES32: 0 303 | m_TemplateCustomTags: {} 304 | mobileMTRendering: 305 | Android: 1 306 | iPhone: 1 307 | tvOS: 1 308 | m_BuildTargetGroupLightmapEncodingQuality: [] 309 | m_BuildTargetGroupLightmapSettings: [] 310 | m_BuildTargetNormalMapEncoding: [] 311 | playModeTestRunnerEnabled: 0 312 | runPlayModeTestAsEditModeTest: 0 313 | actionOnDotNetUnhandledException: 1 314 | enableInternalProfiler: 0 315 | logObjCUncaughtExceptions: 1 316 | enableCrashReportAPI: 0 317 | cameraUsageDescription: NNCam requires camera device access. 318 | locationUsageDescription: 319 | microphoneUsageDescription: 320 | switchNMETAOverride: 321 | switchNetLibKey: 322 | switchSocketMemoryPoolSize: 6144 323 | switchSocketAllocatorPoolSize: 128 324 | switchSocketConcurrencyLimit: 14 325 | switchScreenResolutionBehavior: 2 326 | switchUseCPUProfiler: 0 327 | switchUseGOLDLinker: 0 328 | switchApplicationID: 0x01004b9000490000 329 | switchNSODependencies: 330 | switchTitleNames_0: 331 | switchTitleNames_1: 332 | switchTitleNames_2: 333 | switchTitleNames_3: 334 | switchTitleNames_4: 335 | switchTitleNames_5: 336 | switchTitleNames_6: 337 | switchTitleNames_7: 338 | switchTitleNames_8: 339 | switchTitleNames_9: 340 | switchTitleNames_10: 341 | switchTitleNames_11: 342 | switchTitleNames_12: 343 | switchTitleNames_13: 344 | switchTitleNames_14: 345 | switchPublisherNames_0: 346 | switchPublisherNames_1: 347 | switchPublisherNames_2: 348 | switchPublisherNames_3: 349 | switchPublisherNames_4: 350 | switchPublisherNames_5: 351 | switchPublisherNames_6: 352 | switchPublisherNames_7: 353 | switchPublisherNames_8: 354 | switchPublisherNames_9: 355 | switchPublisherNames_10: 356 | switchPublisherNames_11: 357 | switchPublisherNames_12: 358 | switchPublisherNames_13: 359 | switchPublisherNames_14: 360 | switchIcons_0: {fileID: 0} 361 | switchIcons_1: {fileID: 0} 362 | switchIcons_2: {fileID: 0} 363 | switchIcons_3: {fileID: 0} 364 | switchIcons_4: {fileID: 0} 365 | switchIcons_5: {fileID: 0} 366 | switchIcons_6: {fileID: 0} 367 | switchIcons_7: {fileID: 0} 368 | switchIcons_8: {fileID: 0} 369 | switchIcons_9: {fileID: 0} 370 | switchIcons_10: {fileID: 0} 371 | switchIcons_11: {fileID: 0} 372 | switchIcons_12: {fileID: 0} 373 | switchIcons_13: {fileID: 0} 374 | switchIcons_14: {fileID: 0} 375 | switchSmallIcons_0: {fileID: 0} 376 | switchSmallIcons_1: {fileID: 0} 377 | switchSmallIcons_2: {fileID: 0} 378 | switchSmallIcons_3: {fileID: 0} 379 | switchSmallIcons_4: {fileID: 0} 380 | switchSmallIcons_5: {fileID: 0} 381 | switchSmallIcons_6: {fileID: 0} 382 | switchSmallIcons_7: {fileID: 0} 383 | switchSmallIcons_8: {fileID: 0} 384 | switchSmallIcons_9: {fileID: 0} 385 | switchSmallIcons_10: {fileID: 0} 386 | switchSmallIcons_11: {fileID: 0} 387 | switchSmallIcons_12: {fileID: 0} 388 | switchSmallIcons_13: {fileID: 0} 389 | switchSmallIcons_14: {fileID: 0} 390 | switchManualHTML: 391 | switchAccessibleURLs: 392 | switchLegalInformation: 393 | switchMainThreadStackSize: 1048576 394 | switchPresenceGroupId: 395 | switchLogoHandling: 0 396 | switchReleaseVersion: 0 397 | switchDisplayVersion: 1.0.0 398 | switchStartupUserAccount: 0 399 | switchTouchScreenUsage: 0 400 | switchSupportedLanguagesMask: 0 401 | switchLogoType: 0 402 | switchApplicationErrorCodeCategory: 403 | switchUserAccountSaveDataSize: 0 404 | switchUserAccountSaveDataJournalSize: 0 405 | switchApplicationAttribute: 0 406 | switchCardSpecSize: -1 407 | switchCardSpecClock: -1 408 | switchRatingsMask: 0 409 | switchRatingsInt_0: 0 410 | switchRatingsInt_1: 0 411 | switchRatingsInt_2: 0 412 | switchRatingsInt_3: 0 413 | switchRatingsInt_4: 0 414 | switchRatingsInt_5: 0 415 | switchRatingsInt_6: 0 416 | switchRatingsInt_7: 0 417 | switchRatingsInt_8: 0 418 | switchRatingsInt_9: 0 419 | switchRatingsInt_10: 0 420 | switchRatingsInt_11: 0 421 | switchRatingsInt_12: 0 422 | switchLocalCommunicationIds_0: 423 | switchLocalCommunicationIds_1: 424 | switchLocalCommunicationIds_2: 425 | switchLocalCommunicationIds_3: 426 | switchLocalCommunicationIds_4: 427 | switchLocalCommunicationIds_5: 428 | switchLocalCommunicationIds_6: 429 | switchLocalCommunicationIds_7: 430 | switchParentalControl: 0 431 | switchAllowsScreenshot: 1 432 | switchAllowsVideoCapturing: 1 433 | switchAllowsRuntimeAddOnContentInstall: 0 434 | switchDataLossConfirmation: 0 435 | switchUserAccountLockEnabled: 0 436 | switchSystemResourceMemory: 16777216 437 | switchSupportedNpadStyles: 22 438 | switchNativeFsCacheSize: 32 439 | switchIsHoldTypeHorizontal: 0 440 | switchSupportedNpadCount: 8 441 | switchSocketConfigEnabled: 0 442 | switchTcpInitialSendBufferSize: 32 443 | switchTcpInitialReceiveBufferSize: 64 444 | switchTcpAutoSendBufferSizeMax: 256 445 | switchTcpAutoReceiveBufferSizeMax: 256 446 | switchUdpSendBufferSize: 9 447 | switchUdpReceiveBufferSize: 42 448 | switchSocketBufferEfficiency: 4 449 | switchSocketInitializeEnabled: 1 450 | switchNetworkInterfaceManagerInitializeEnabled: 1 451 | switchPlayerConnectionEnabled: 1 452 | switchUseNewStyleFilepaths: 0 453 | ps4NPAgeRating: 12 454 | ps4NPTitleSecret: 455 | ps4NPTrophyPackPath: 456 | ps4ParentalLevel: 11 457 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 458 | ps4Category: 0 459 | ps4MasterVersion: 01.00 460 | ps4AppVersion: 01.00 461 | ps4AppType: 0 462 | ps4ParamSfxPath: 463 | ps4VideoOutPixelFormat: 0 464 | ps4VideoOutInitialWidth: 1920 465 | ps4VideoOutBaseModeInitialWidth: 1920 466 | ps4VideoOutReprojectionRate: 60 467 | ps4PronunciationXMLPath: 468 | ps4PronunciationSIGPath: 469 | ps4BackgroundImagePath: 470 | ps4StartupImagePath: 471 | ps4StartupImagesFolder: 472 | ps4IconImagesFolder: 473 | ps4SaveDataImagePath: 474 | ps4SdkOverride: 475 | ps4BGMPath: 476 | ps4ShareFilePath: 477 | ps4ShareOverlayImagePath: 478 | ps4PrivacyGuardImagePath: 479 | ps4ExtraSceSysFile: 480 | ps4NPtitleDatPath: 481 | ps4RemotePlayKeyAssignment: -1 482 | ps4RemotePlayKeyMappingDir: 483 | ps4PlayTogetherPlayerCount: 0 484 | ps4EnterButtonAssignment: 2 485 | ps4ApplicationParam1: 0 486 | ps4ApplicationParam2: 0 487 | ps4ApplicationParam3: 0 488 | ps4ApplicationParam4: 0 489 | ps4DownloadDataSize: 0 490 | ps4GarlicHeapSize: 2048 491 | ps4ProGarlicHeapSize: 2560 492 | playerPrefsMaxSize: 32768 493 | ps4Passcode: bi9UOuSpM2Tlh01vOzwvSikHFswuzleh 494 | ps4pnSessions: 1 495 | ps4pnPresence: 1 496 | ps4pnFriends: 1 497 | ps4pnGameCustomData: 1 498 | playerPrefsSupport: 0 499 | enableApplicationExit: 0 500 | resetTempFolder: 1 501 | restrictedAudioUsageRights: 0 502 | ps4UseResolutionFallback: 0 503 | ps4ReprojectionSupport: 0 504 | ps4UseAudio3dBackend: 0 505 | ps4UseLowGarlicFragmentationMode: 1 506 | ps4SocialScreenEnabled: 0 507 | ps4ScriptOptimizationLevel: 2 508 | ps4Audio3dVirtualSpeakerCount: 14 509 | ps4attribCpuUsage: 0 510 | ps4PatchPkgPath: 511 | ps4PatchLatestPkgPath: 512 | ps4PatchChangeinfoPath: 513 | ps4PatchDayOne: 0 514 | ps4attribUserManagement: 0 515 | ps4attribMoveSupport: 0 516 | ps4attrib3DSupport: 0 517 | ps4attribShareSupport: 0 518 | ps4attribExclusiveVR: 0 519 | ps4disableAutoHideSplash: 0 520 | ps4videoRecordingFeaturesUsed: 0 521 | ps4contentSearchFeaturesUsed: 0 522 | ps4CompatibilityPS5: 0 523 | ps4GPU800MHz: 1 524 | ps4attribEyeToEyeDistanceSettingVR: 0 525 | ps4IncludedModules: [] 526 | ps4attribVROutputEnabled: 0 527 | monoEnv: 528 | splashScreenBackgroundSourceLandscape: {fileID: 0} 529 | splashScreenBackgroundSourcePortrait: {fileID: 0} 530 | blurSplashScreenBackground: 1 531 | spritePackerPolicy: 532 | webGLMemorySize: 32 533 | webGLExceptionSupport: 1 534 | webGLNameFilesAsHashes: 0 535 | webGLDataCaching: 1 536 | webGLDebugSymbols: 0 537 | webGLEmscriptenArgs: 538 | webGLModulesDirectory: 539 | webGLTemplate: APPLICATION:Default 540 | webGLAnalyzeBuildSize: 0 541 | webGLUseEmbeddedResources: 0 542 | webGLCompressionFormat: 0 543 | webGLWasmArithmeticExceptions: 0 544 | webGLLinkerTarget: 1 545 | webGLThreadsSupport: 0 546 | webGLDecompressionFallback: 0 547 | scriptingDefineSymbols: {} 548 | additionalCompilerArguments: {} 549 | platformArchitecture: {} 550 | scriptingBackend: 551 | Standalone: 0 552 | il2cppCompilerConfiguration: {} 553 | managedStrippingLevel: {} 554 | incrementalIl2cppBuild: {} 555 | suppressCommonWarnings: 0 556 | allowUnsafeCode: 0 557 | useDeterministicCompilation: 1 558 | useReferenceAssemblies: 1 559 | enableRoslynAnalyzers: 1 560 | additionalIl2CppArgs: 561 | scriptingRuntimeVersion: 1 562 | gcIncremental: 1 563 | gcWBarrierValidation: 0 564 | apiCompatibilityLevelPerPlatform: {} 565 | m_RenderingPath: 1 566 | m_MobileRenderingPath: 1 567 | metroPackageName: 2D_BuiltInRenderer 568 | metroPackageVersion: 569 | metroCertificatePath: 570 | metroCertificatePassword: 571 | metroCertificateSubject: 572 | metroCertificateIssuer: 573 | metroCertificateNotAfter: 0000000000000000 574 | metroApplicationDescription: 2D_BuiltInRenderer 575 | wsaImages: {} 576 | metroTileShortName: 577 | metroTileShowName: 0 578 | metroMediumTileShowName: 0 579 | metroLargeTileShowName: 0 580 | metroWideTileShowName: 0 581 | metroSupportStreamingInstall: 0 582 | metroLastRequiredScene: 0 583 | metroDefaultTileSize: 1 584 | metroTileForegroundText: 2 585 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 586 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, a: 1} 587 | metroSplashScreenUseBackgroundColor: 0 588 | platformCapabilities: {} 589 | metroTargetDeviceFamilies: {} 590 | metroFTAName: 591 | metroFTAFileTypes: [] 592 | metroProtocolName: 593 | XboxOneProductId: 594 | XboxOneUpdateKey: 595 | XboxOneSandboxId: 596 | XboxOneContentId: 597 | XboxOneTitleId: 598 | XboxOneSCId: 599 | XboxOneGameOsOverridePath: 600 | XboxOnePackagingOverridePath: 601 | XboxOneAppManifestOverridePath: 602 | XboxOneVersion: 1.0.0.0 603 | XboxOnePackageEncryption: 0 604 | XboxOnePackageUpdateGranularity: 2 605 | XboxOneDescription: 606 | XboxOneLanguage: 607 | - enus 608 | XboxOneCapability: [] 609 | XboxOneGameRating: {} 610 | XboxOneIsContentPackage: 0 611 | XboxOneEnableGPUVariability: 1 612 | XboxOneSockets: {} 613 | XboxOneSplashScreen: {fileID: 0} 614 | XboxOneAllowedProductIds: [] 615 | XboxOnePersistentLocalStorageSize: 0 616 | XboxOneXTitleMemory: 8 617 | XboxOneOverrideIdentityName: 618 | XboxOneOverrideIdentityPublisher: 619 | vrEditorSettings: {} 620 | cloudServicesEnabled: {} 621 | luminIcon: 622 | m_Name: 623 | m_ModelFolderPath: 624 | m_PortalFolderPath: 625 | luminCert: 626 | m_CertPath: 627 | m_SignPackage: 1 628 | luminIsChannelApp: 0 629 | luminVersion: 630 | m_VersionCode: 1 631 | m_VersionName: 632 | apiCompatibilityLevel: 6 633 | activeInputHandler: 2 634 | cloudProjectId: 635 | framebufferDepthMemorylessMode: 0 636 | qualitySettingsNames: [] 637 | projectName: 638 | organizationId: 639 | cloudEnabled: 0 640 | legacyClampBlendShapeWeights: 0 641 | virtualTexturingSupportEnabled: 0 642 | --------------------------------------------------------------------------------