├── .gitignore ├── Assets ├── PoissonBlending.meta ├── PoissonBlending │ ├── ComputeShaderExtension.cs │ ├── ComputeShaderExtension.cs.meta │ ├── PoissonBlending.cs │ ├── PoissonBlending.cs.meta │ ├── PoissonBlendingCompute.compute │ └── PoissonBlendingCompute.compute.meta ├── Sample.meta ├── Sample │ ├── Sample.unity │ ├── Sample.unity.meta │ ├── Textures.meta │ └── Textures │ │ ├── Don't Ever Say Last Apple.jpg │ │ ├── Don't Ever Say Last Apple.jpg.meta │ │ ├── Faces in my Apartment.jpg │ │ ├── Faces in my Apartment.jpg.meta │ │ ├── acknowledgement.txt │ │ ├── acknowledgement.txt.meta │ │ ├── mask.png │ │ └── mask.png.meta ├── Study.meta └── Study │ ├── Sample01.compute │ ├── Sample01.compute.meta │ ├── Sample01.cs │ ├── Sample01.cs.meta │ ├── Sample01.unity │ ├── Sample01.unity.meta │ ├── Sample02-Buffer.unity │ ├── Sample02-Buffer.unity.meta │ ├── Sample02.compute │ ├── Sample02.compute.meta │ ├── Sample02.cs │ ├── Sample02.cs.meta │ ├── Sample03-Texture.unity │ ├── Sample03-Texture.unity.meta │ ├── Sample03.compute │ ├── Sample03.compute.meta │ ├── Sample03.cs │ ├── Sample03.cs.meta │ ├── Sample04-TextureCopy.unity │ ├── Sample04-TextureCopy.unity.meta │ ├── Sample04.compute │ ├── Sample04.compute.meta │ ├── Sample04.cs │ ├── Sample04.cs.meta │ ├── Sample05-Recursive.unity │ ├── Sample05-Recursive.unity.meta │ ├── Sample05.compute │ ├── Sample05.compute.meta │ ├── Sample05.cs │ ├── Sample05.cs.meta │ ├── Sample06-ReadTexture.unity │ ├── Sample06-ReadTexture.unity.meta │ ├── Sample06.compute │ ├── Sample06.compute.meta │ ├── Sample06.cs │ └── Sample06.cs.meta ├── Packages └── manifest.json ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset ├── UnityConnectSettings.asset ├── VFXManager.asset └── XRSettings.asset └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | ### https://raw.github.com/github/gitignore/f731569cfcc1dbe475f2d160e1e1e582c7cfe2a6/Unity.gitignore 2 | 3 | [Ll]ibrary/ 4 | [Tt]emp/ 5 | [Oo]bj/ 6 | [Bb]uild/ 7 | [Bb]uilds/ 8 | [Ll]ogs/ 9 | 10 | # Never ignore Asset meta data 11 | ![Aa]ssets/**/*.meta 12 | 13 | # Uncomment this line if you wish to ignore the asset store tools plugin 14 | # [Aa]ssets/AssetStoreTools* 15 | 16 | # Visual Studio cache directory 17 | .vs/ 18 | 19 | # Gradle cache directory 20 | .gradle/ 21 | 22 | # Autogenerated VS/MD/Consulo solution and project files 23 | ExportedObj/ 24 | .consulo/ 25 | *.csproj 26 | *.unityproj 27 | *.sln 28 | *.suo 29 | *.tmp 30 | *.user 31 | *.userprefs 32 | *.pidb 33 | *.booproj 34 | *.svd 35 | *.pdb 36 | *.mdb 37 | *.opendb 38 | *.VC.db 39 | 40 | # Unity3D generated meta files 41 | *.pidb.meta 42 | *.pdb.meta 43 | *.mdb.meta 44 | 45 | # Unity3D generated file on crash reports 46 | sysinfo.txt 47 | 48 | # Builds 49 | *.apk 50 | *.unitypackage 51 | 52 | # Crashlytics generated file 53 | crashlytics-build.properties 54 | 55 | 56 | 57 | ### https://raw.github.com/github/gitignore/f731569cfcc1dbe475f2d160e1e1e582c7cfe2a6/Unity.gitignore 58 | 59 | [Ll]ibrary/ 60 | [Tt]emp/ 61 | [Oo]bj/ 62 | [Bb]uild/ 63 | [Bb]uilds/ 64 | [Ll]ogs/ 65 | 66 | # Never ignore Asset meta data 67 | ![Aa]ssets/**/*.meta 68 | 69 | # Uncomment this line if you wish to ignore the asset store tools plugin 70 | # [Aa]ssets/AssetStoreTools* 71 | 72 | # Visual Studio cache directory 73 | .vs/ 74 | 75 | # Gradle cache directory 76 | .gradle/ 77 | 78 | # Autogenerated VS/MD/Consulo solution and project files 79 | ExportedObj/ 80 | .consulo/ 81 | *.csproj 82 | *.unityproj 83 | *.sln 84 | *.suo 85 | *.tmp 86 | *.user 87 | *.userprefs 88 | *.pidb 89 | *.booproj 90 | *.svd 91 | *.pdb 92 | *.mdb 93 | *.opendb 94 | *.VC.db 95 | 96 | # Unity3D generated meta files 97 | *.pidb.meta 98 | *.pdb.meta 99 | *.mdb.meta 100 | 101 | # Unity3D generated file on crash reports 102 | sysinfo.txt 103 | 104 | # Builds 105 | *.apk 106 | *.unitypackage 107 | 108 | # Crashlytics generated file 109 | crashlytics-build.properties 110 | 111 | 112 | 113 | -------------------------------------------------------------------------------- /Assets/PoissonBlending.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8a7be778505fda04c972f4003957fe3b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PoissonBlending/ComputeShaderExtension.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using Unity.Mathematics; 3 | 4 | namespace PoissonBlending 5 | { 6 | public static class ComputeShaderExtension 7 | { 8 | public static uint3 GetThreadGroupSize(this ComputeShader compute, int kernelIndex) 9 | { 10 | uint x, y, z; 11 | compute.GetKernelThreadGroupSizes(kernelIndex, out x, out y, out z); 12 | return new uint3(x, y, z); 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /Assets/PoissonBlending/ComputeShaderExtension.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4ea7bdbd4d1b74bccbefe025ea0d7f91 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PoissonBlending/PoissonBlending.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | using UnityEngine; 4 | using Unity.Mathematics; 5 | using Debug = UnityEngine.Debug; 6 | 7 | 8 | namespace PoissonBlending 9 | { 10 | 11 | public class PoissonBlending : MonoBehaviour 12 | { 13 | [SerializeField] Texture2D source = null; 14 | [SerializeField] Texture2D mask = null; 15 | [SerializeField] Texture2D target = null; 16 | [SerializeField] ComputeShader compute = null; 17 | [SerializeField, Range(0, 1500)] int iterations = 800; 18 | 19 | RenderTexture tex; 20 | int kernelInit; 21 | int kernelPoisson; 22 | uint3 threads; 23 | 24 | static int _Source = Shader.PropertyToID("Source"); 25 | static int _Target = Shader.PropertyToID("Target"); 26 | static int _Result = Shader.PropertyToID("Result"); 27 | static int _Mask = Shader.PropertyToID("Mask"); 28 | 29 | void Start() 30 | { 31 | Debug.Assert(source.width == mask.width && source.width == target.width); 32 | Debug.Assert(source.height == mask.height && source.height == target.height); 33 | 34 | tex = new RenderTexture(source.width, source.height, 0); 35 | tex.enableRandomWrite = true; 36 | tex.Create(); 37 | 38 | kernelPoisson = compute.FindKernel("PoissonBlending"); 39 | kernelInit = compute.FindKernel("Init"); 40 | 41 | threads = compute.GetThreadGroupSize(kernelPoisson); 42 | Debug.Assert(source.width % threads.x == 0); 43 | Debug.Assert(source.height % threads.y == 0); 44 | 45 | } 46 | 47 | void OnGUI() 48 | { 49 | int w = Screen.width / 2; 50 | int h = Screen.height / 2; 51 | 52 | GUI.DrawTexture(new Rect(0, 0, w, h), source); 53 | GUI.DrawTexture(new Rect(w, 0, w, h), mask); 54 | GUI.DrawTexture(new Rect(0, h, w, h), target); 55 | GUI.DrawTexture(new Rect(w, h, w, h), tex); 56 | } 57 | 58 | void Update() 59 | { 60 | var sw = Stopwatch.StartNew(); 61 | 62 | // Init 63 | compute.SetTexture(kernelInit, _Target, target); 64 | compute.SetTexture(kernelInit, _Result, tex); 65 | compute.Dispatch(kernelInit, source.width / (int)threads.x, source.height / (int)threads.y, 1); 66 | 67 | // Poisson Blending 68 | compute.SetTexture(kernelPoisson, _Source, source); 69 | compute.SetTexture(kernelPoisson, _Mask, mask); 70 | compute.SetTexture(kernelPoisson, _Target, target); 71 | compute.SetTexture(kernelPoisson, _Result, tex); 72 | 73 | for (int i = 0; i < iterations; i++) 74 | { 75 | compute.Dispatch(kernelPoisson, source.width / (int)threads.x, source.height / (int)threads.y, 1); 76 | } 77 | 78 | sw.Stop(); 79 | double d = (double)sw.ElapsedTicks / (double)TimeSpan.TicksPerMillisecond; 80 | Debug.Log($"GPU: {d} ms"); 81 | } 82 | 83 | void OnDestroy() 84 | { 85 | tex.Release(); 86 | } 87 | 88 | 89 | } 90 | } 91 | -------------------------------------------------------------------------------- /Assets/PoissonBlending/PoissonBlending.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a5850533ec18a4dd588b0d874c2ea25b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: 7 | - source: {fileID: 2800000, guid: ac29fea86b3d2c84999064dc85b5a5b7, type: 3} 8 | - mask: {fileID: 2800000, guid: 85c607559a483f045a6198d4dcfd36ed, type: 3} 9 | - target: {fileID: 2800000, guid: cb35918fbb24ff84b9a5ca5c926307d2, type: 3} 10 | - compute: {fileID: 7200000, guid: f4557825b2acf05429943800cfa40b19, type: 3} 11 | executionOrder: 0 12 | icon: {instanceID: 0} 13 | userData: 14 | assetBundleName: 15 | assetBundleVariant: 16 | -------------------------------------------------------------------------------- /Assets/PoissonBlending/PoissonBlendingCompute.compute: -------------------------------------------------------------------------------- 1 | // Poisson Blending on GPU 2 | // http://cs.brown.edu/courses/csci1950-g/results/proj2/edwallac/ 3 | 4 | #pragma kernel PoissonBlending 5 | #pragma kernel Init 6 | 7 | Texture2D Source; 8 | Texture2D Mask; 9 | Texture2D Target; 10 | RWTexture2D Result; 11 | 12 | 13 | inline float3 solve(in float3 center, in float3 centerD, in uint2 tid) 14 | { 15 | float3 c = (Mask[tid].r > 0.1) ? Result[tid].rgb : Target[tid].rgb; 16 | float3 gradSrc = center - Source[tid].rgb; 17 | return c + gradSrc; 18 | 19 | //float3 gradDst = centerD - Target[tid].rgb; 20 | //return Result[tid].rgb + gradSrc * 0.99 + gradDst * 0.01; 21 | } 22 | 23 | [numthreads(16, 16, 1)] 24 | void Init(uint2 tid : SV_DispatchThreadID) 25 | { 26 | // Init with target 27 | Result[tid] = Target[tid]; 28 | } 29 | 30 | [numthreads(16, 16, 1)] 31 | void PoissonBlending(uint2 tid : SV_DispatchThreadID) 32 | { 33 | float width, height; 34 | Result.GetDimensions(width, height); 35 | 36 | float mask = Mask[tid].x; 37 | // Filter edge case 38 | if (mask < 0.1 39 | || tid.x == 0 || tid.y == 0 40 | || tid.x >= (uint)(width - 1.0) || tid.y >= (uint)(height - 1.0)) 41 | { 42 | // Outside of the mask area 43 | return; 44 | } 45 | 46 | float3 src = Source[tid].rgb; 47 | float3 dst = Target[tid].rgb; 48 | 49 | float3 sum = float3(0.0, 0.0, 0.0); 50 | sum += solve(src, dst, tid + uint2(1, 0)); // right 51 | sum += solve(src, dst, tid + uint2(-1, 0)); // left 52 | sum += solve(src, dst, tid + uint2(0, 1)); // up 53 | sum += solve(src, dst, tid + uint2(0, -1)); // down 54 | 55 | Result[tid] = float4(sum * 0.25, 1.0); 56 | 57 | } 58 | -------------------------------------------------------------------------------- /Assets/PoissonBlending/PoissonBlendingCompute.compute.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f4557825b2acf05429943800cfa40b19 3 | ComputeShaderImporter: 4 | externalObjects: {} 5 | currentAPIMask: 4 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Sample.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 34555f9299a41c640a5e0a0beefab3e2 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Sample/Sample.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 11 47 | m_GIWorkflowMode: 1 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 1 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 1 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 512 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 256 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 1 83 | m_PVRDenoiserTypeDirect: 1 84 | m_PVRDenoiserTypeIndirect: 1 85 | m_PVRDenoiserTypeAO: 1 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 1 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ShowResolutionOverlay: 1 98 | m_ExportTrainingData: 0 99 | m_LightingDataAsset: {fileID: 0} 100 | m_UseShadowmask: 1 101 | --- !u!196 &4 102 | NavMeshSettings: 103 | serializedVersion: 2 104 | m_ObjectHideFlags: 0 105 | m_BuildSettings: 106 | serializedVersion: 2 107 | agentTypeID: 0 108 | agentRadius: 0.5 109 | agentHeight: 2 110 | agentSlope: 45 111 | agentClimb: 0.4 112 | ledgeDropHeight: 0 113 | maxJumpAcrossDistance: 0 114 | minRegionArea: 2 115 | manualCellSize: 0 116 | cellSize: 0.16666667 117 | manualTileSize: 0 118 | tileSize: 256 119 | accuratePlacement: 0 120 | debug: 121 | m_Flags: 0 122 | m_NavMeshData: {fileID: 0} 123 | --- !u!1 &724072521 124 | GameObject: 125 | m_ObjectHideFlags: 0 126 | m_CorrespondingSourceObject: {fileID: 0} 127 | m_PrefabInstance: {fileID: 0} 128 | m_PrefabAsset: {fileID: 0} 129 | serializedVersion: 6 130 | m_Component: 131 | - component: {fileID: 724072522} 132 | - component: {fileID: 724072523} 133 | m_Layer: 0 134 | m_Name: Script 135 | m_TagString: Untagged 136 | m_Icon: {fileID: 0} 137 | m_NavMeshLayer: 0 138 | m_StaticEditorFlags: 0 139 | m_IsActive: 1 140 | --- !u!4 &724072522 141 | Transform: 142 | m_ObjectHideFlags: 0 143 | m_CorrespondingSourceObject: {fileID: 0} 144 | m_PrefabInstance: {fileID: 0} 145 | m_PrefabAsset: {fileID: 0} 146 | m_GameObject: {fileID: 724072521} 147 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 148 | m_LocalPosition: {x: 0, y: 0, z: 0} 149 | m_LocalScale: {x: 1, y: 1, z: 1} 150 | m_Children: [] 151 | m_Father: {fileID: 0} 152 | m_RootOrder: 1 153 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 154 | --- !u!114 &724072523 155 | MonoBehaviour: 156 | m_ObjectHideFlags: 0 157 | m_CorrespondingSourceObject: {fileID: 0} 158 | m_PrefabInstance: {fileID: 0} 159 | m_PrefabAsset: {fileID: 0} 160 | m_GameObject: {fileID: 724072521} 161 | m_Enabled: 1 162 | m_EditorHideFlags: 0 163 | m_Script: {fileID: 11500000, guid: a5850533ec18a4dd588b0d874c2ea25b, type: 3} 164 | m_Name: 165 | m_EditorClassIdentifier: 166 | source: {fileID: 2800000, guid: ac29fea86b3d2c84999064dc85b5a5b7, type: 3} 167 | mask: {fileID: 2800000, guid: 85c607559a483f045a6198d4dcfd36ed, type: 3} 168 | target: {fileID: 2800000, guid: cb35918fbb24ff84b9a5ca5c926307d2, type: 3} 169 | compute: {fileID: 7200000, guid: f4557825b2acf05429943800cfa40b19, type: 3} 170 | iterations: 800 171 | --- !u!1 &1669233212 172 | GameObject: 173 | m_ObjectHideFlags: 0 174 | m_CorrespondingSourceObject: {fileID: 0} 175 | m_PrefabInstance: {fileID: 0} 176 | m_PrefabAsset: {fileID: 0} 177 | serializedVersion: 6 178 | m_Component: 179 | - component: {fileID: 1669233215} 180 | - component: {fileID: 1669233214} 181 | - component: {fileID: 1669233213} 182 | m_Layer: 0 183 | m_Name: Main Camera 184 | m_TagString: MainCamera 185 | m_Icon: {fileID: 0} 186 | m_NavMeshLayer: 0 187 | m_StaticEditorFlags: 0 188 | m_IsActive: 1 189 | --- !u!81 &1669233213 190 | AudioListener: 191 | m_ObjectHideFlags: 0 192 | m_CorrespondingSourceObject: {fileID: 0} 193 | m_PrefabInstance: {fileID: 0} 194 | m_PrefabAsset: {fileID: 0} 195 | m_GameObject: {fileID: 1669233212} 196 | m_Enabled: 1 197 | --- !u!20 &1669233214 198 | Camera: 199 | m_ObjectHideFlags: 0 200 | m_CorrespondingSourceObject: {fileID: 0} 201 | m_PrefabInstance: {fileID: 0} 202 | m_PrefabAsset: {fileID: 0} 203 | m_GameObject: {fileID: 1669233212} 204 | m_Enabled: 1 205 | serializedVersion: 2 206 | m_ClearFlags: 2 207 | m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} 208 | m_projectionMatrixMode: 1 209 | m_GateFitMode: 2 210 | m_FOVAxisMode: 0 211 | m_SensorSize: {x: 36, y: 24} 212 | m_LensShift: {x: 0, y: 0} 213 | m_FocalLength: 50 214 | m_NormalizedViewPortRect: 215 | serializedVersion: 2 216 | x: 0 217 | y: 0 218 | width: 1 219 | height: 1 220 | near clip plane: 0.3 221 | far clip plane: 1000 222 | field of view: 60 223 | orthographic: 0 224 | orthographic size: 5 225 | m_Depth: -1 226 | m_CullingMask: 227 | serializedVersion: 2 228 | m_Bits: 4294967295 229 | m_RenderingPath: -1 230 | m_TargetTexture: {fileID: 0} 231 | m_TargetDisplay: 0 232 | m_TargetEye: 3 233 | m_HDR: 1 234 | m_AllowMSAA: 1 235 | m_AllowDynamicResolution: 0 236 | m_ForceIntoRT: 0 237 | m_OcclusionCulling: 1 238 | m_StereoConvergence: 10 239 | m_StereoSeparation: 0.022 240 | --- !u!4 &1669233215 241 | Transform: 242 | m_ObjectHideFlags: 0 243 | m_CorrespondingSourceObject: {fileID: 0} 244 | m_PrefabInstance: {fileID: 0} 245 | m_PrefabAsset: {fileID: 0} 246 | m_GameObject: {fileID: 1669233212} 247 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 248 | m_LocalPosition: {x: 0, y: 1, z: -10} 249 | m_LocalScale: {x: 1, y: 1, z: 1} 250 | m_Children: [] 251 | m_Father: {fileID: 0} 252 | m_RootOrder: 0 253 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 254 | -------------------------------------------------------------------------------- /Assets/Sample/Sample.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5d110c8f1f2e54c3892633ab98ac89b5 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Sample/Textures.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9a819b1a0d9394143b0eba4d4ea69ada 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Sample/Textures/Don't Ever Say Last Apple.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asus4/unity-poisson-blending/4a6a77b282ea5cbcaefa02e300008a4602292c72/Assets/Sample/Textures/Don't Ever Say Last Apple.jpg -------------------------------------------------------------------------------- /Assets/Sample/Textures/Don't Ever Say Last Apple.jpg.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cb35918fbb24ff84b9a5ca5c926307d2 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 10 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: 1 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: -1 35 | aniso: -1 36 | mipBias: -100 37 | wrapU: 1 38 | wrapV: 1 39 | wrapW: 1 40 | nPOTScale: 0 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 0 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 0 53 | spriteTessellationDetail: -1 54 | textureType: 0 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | platformSettings: 61 | - serializedVersion: 2 62 | buildTarget: DefaultTexturePlatform 63 | maxTextureSize: 2048 64 | resizeAlgorithm: 0 65 | textureFormat: 3 66 | textureCompression: 1 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | androidETC2FallbackOverride: 0 72 | - serializedVersion: 2 73 | buildTarget: Standalone 74 | maxTextureSize: 2048 75 | resizeAlgorithm: 0 76 | textureFormat: 3 77 | textureCompression: 1 78 | compressionQuality: 50 79 | crunchedCompression: 0 80 | allowsAlphaSplitting: 0 81 | overridden: 0 82 | androidETC2FallbackOverride: 0 83 | - serializedVersion: 2 84 | buildTarget: tvOS 85 | maxTextureSize: 2048 86 | resizeAlgorithm: 0 87 | textureFormat: 3 88 | textureCompression: 1 89 | compressionQuality: 50 90 | crunchedCompression: 0 91 | allowsAlphaSplitting: 0 92 | overridden: 0 93 | androidETC2FallbackOverride: 0 94 | - serializedVersion: 2 95 | buildTarget: iPhone 96 | maxTextureSize: 2048 97 | resizeAlgorithm: 0 98 | textureFormat: 3 99 | textureCompression: 1 100 | compressionQuality: 50 101 | crunchedCompression: 0 102 | allowsAlphaSplitting: 0 103 | overridden: 0 104 | androidETC2FallbackOverride: 0 105 | - serializedVersion: 2 106 | buildTarget: Android 107 | maxTextureSize: 2048 108 | resizeAlgorithm: 0 109 | textureFormat: 3 110 | textureCompression: 1 111 | compressionQuality: 50 112 | crunchedCompression: 0 113 | allowsAlphaSplitting: 0 114 | overridden: 0 115 | androidETC2FallbackOverride: 0 116 | - serializedVersion: 2 117 | buildTarget: WebGL 118 | maxTextureSize: 2048 119 | resizeAlgorithm: 0 120 | textureFormat: 3 121 | textureCompression: 1 122 | compressionQuality: 50 123 | crunchedCompression: 0 124 | allowsAlphaSplitting: 0 125 | overridden: 0 126 | androidETC2FallbackOverride: 0 127 | spriteSheet: 128 | serializedVersion: 2 129 | sprites: [] 130 | outline: [] 131 | physicsShape: [] 132 | bones: [] 133 | spriteID: 134 | internalID: 0 135 | vertices: [] 136 | indices: 137 | edges: [] 138 | weights: [] 139 | secondaryTextures: [] 140 | spritePackingTag: 141 | pSDRemoveMatte: 0 142 | pSDShowRemoveMatteOption: 0 143 | userData: 144 | assetBundleName: 145 | assetBundleVariant: 146 | -------------------------------------------------------------------------------- /Assets/Sample/Textures/Faces in my Apartment.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asus4/unity-poisson-blending/4a6a77b282ea5cbcaefa02e300008a4602292c72/Assets/Sample/Textures/Faces in my Apartment.jpg -------------------------------------------------------------------------------- /Assets/Sample/Textures/Faces in my Apartment.jpg.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ac29fea86b3d2c84999064dc85b5a5b7 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 10 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: 1 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: -1 35 | aniso: -1 36 | mipBias: -100 37 | wrapU: 1 38 | wrapV: 1 39 | wrapW: 1 40 | nPOTScale: 0 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 0 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 0 53 | spriteTessellationDetail: -1 54 | textureType: 0 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | platformSettings: 61 | - serializedVersion: 2 62 | buildTarget: DefaultTexturePlatform 63 | maxTextureSize: 2048 64 | resizeAlgorithm: 0 65 | textureFormat: 3 66 | textureCompression: 1 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | androidETC2FallbackOverride: 0 72 | - serializedVersion: 2 73 | buildTarget: Standalone 74 | maxTextureSize: 2048 75 | resizeAlgorithm: 0 76 | textureFormat: 3 77 | textureCompression: 1 78 | compressionQuality: 50 79 | crunchedCompression: 0 80 | allowsAlphaSplitting: 0 81 | overridden: 0 82 | androidETC2FallbackOverride: 0 83 | - serializedVersion: 2 84 | buildTarget: tvOS 85 | maxTextureSize: 2048 86 | resizeAlgorithm: 0 87 | textureFormat: 3 88 | textureCompression: 1 89 | compressionQuality: 50 90 | crunchedCompression: 0 91 | allowsAlphaSplitting: 0 92 | overridden: 0 93 | androidETC2FallbackOverride: 0 94 | - serializedVersion: 2 95 | buildTarget: iPhone 96 | maxTextureSize: 2048 97 | resizeAlgorithm: 0 98 | textureFormat: 3 99 | textureCompression: 1 100 | compressionQuality: 50 101 | crunchedCompression: 0 102 | allowsAlphaSplitting: 0 103 | overridden: 0 104 | androidETC2FallbackOverride: 0 105 | - serializedVersion: 2 106 | buildTarget: Android 107 | maxTextureSize: 2048 108 | resizeAlgorithm: 0 109 | textureFormat: 3 110 | textureCompression: 1 111 | compressionQuality: 50 112 | crunchedCompression: 0 113 | allowsAlphaSplitting: 0 114 | overridden: 0 115 | androidETC2FallbackOverride: 0 116 | - serializedVersion: 2 117 | buildTarget: WebGL 118 | maxTextureSize: 2048 119 | resizeAlgorithm: 0 120 | textureFormat: 3 121 | textureCompression: 1 122 | compressionQuality: 50 123 | crunchedCompression: 0 124 | allowsAlphaSplitting: 0 125 | overridden: 0 126 | androidETC2FallbackOverride: 0 127 | spriteSheet: 128 | serializedVersion: 2 129 | sprites: [] 130 | outline: [] 131 | physicsShape: [] 132 | bones: [] 133 | spriteID: 134 | internalID: 0 135 | vertices: [] 136 | indices: 137 | edges: [] 138 | weights: [] 139 | secondaryTextures: [] 140 | spritePackingTag: 141 | pSDRemoveMatte: 0 142 | pSDShowRemoveMatteOption: 0 143 | userData: 144 | assetBundleName: 145 | assetBundleVariant: 146 | -------------------------------------------------------------------------------- /Assets/Sample/Textures/acknowledgement.txt: -------------------------------------------------------------------------------- 1 | "Don't Ever Say Last Apple" by cogdogblog is licensed under CC CC0 1.0 2 | https://www.flickr.com/photos/37996646802@N01/42674405130 3 | 4 | "Faces in my Apartment" by clyderob is licensed under CC BY 2.0 5 | https://www.flickr.com/photos/41894170742@N01/3157671124 -------------------------------------------------------------------------------- /Assets/Sample/Textures/acknowledgement.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 385efcb5f8f026444ae331986f64d227 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Sample/Textures/mask.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asus4/unity-poisson-blending/4a6a77b282ea5cbcaefa02e300008a4602292c72/Assets/Sample/Textures/mask.png -------------------------------------------------------------------------------- /Assets/Sample/Textures/mask.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 85c607559a483f045a6198d4dcfd36ed 3 | TextureImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 10 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: 1 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: -1 35 | aniso: -1 36 | mipBias: -100 37 | wrapU: 1 38 | wrapV: 1 39 | wrapW: 1 40 | nPOTScale: 0 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 0 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 0 53 | spriteTessellationDetail: -1 54 | textureType: 0 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | platformSettings: 61 | - serializedVersion: 2 62 | buildTarget: DefaultTexturePlatform 63 | maxTextureSize: 2048 64 | resizeAlgorithm: 0 65 | textureFormat: 3 66 | textureCompression: 1 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | androidETC2FallbackOverride: 0 72 | - serializedVersion: 2 73 | buildTarget: Standalone 74 | maxTextureSize: 2048 75 | resizeAlgorithm: 0 76 | textureFormat: 3 77 | textureCompression: 1 78 | compressionQuality: 50 79 | crunchedCompression: 0 80 | allowsAlphaSplitting: 0 81 | overridden: 0 82 | androidETC2FallbackOverride: 0 83 | - serializedVersion: 2 84 | buildTarget: tvOS 85 | maxTextureSize: 2048 86 | resizeAlgorithm: 0 87 | textureFormat: 3 88 | textureCompression: 1 89 | compressionQuality: 50 90 | crunchedCompression: 0 91 | allowsAlphaSplitting: 0 92 | overridden: 0 93 | androidETC2FallbackOverride: 0 94 | - serializedVersion: 2 95 | buildTarget: iPhone 96 | maxTextureSize: 2048 97 | resizeAlgorithm: 0 98 | textureFormat: 3 99 | textureCompression: 1 100 | compressionQuality: 50 101 | crunchedCompression: 0 102 | allowsAlphaSplitting: 0 103 | overridden: 0 104 | androidETC2FallbackOverride: 0 105 | - serializedVersion: 2 106 | buildTarget: Android 107 | maxTextureSize: 2048 108 | resizeAlgorithm: 0 109 | textureFormat: 3 110 | textureCompression: 1 111 | compressionQuality: 50 112 | crunchedCompression: 0 113 | allowsAlphaSplitting: 0 114 | overridden: 0 115 | androidETC2FallbackOverride: 0 116 | - serializedVersion: 2 117 | buildTarget: WebGL 118 | maxTextureSize: 2048 119 | resizeAlgorithm: 0 120 | textureFormat: 3 121 | textureCompression: 1 122 | compressionQuality: 50 123 | crunchedCompression: 0 124 | allowsAlphaSplitting: 0 125 | overridden: 0 126 | androidETC2FallbackOverride: 0 127 | spriteSheet: 128 | serializedVersion: 2 129 | sprites: [] 130 | outline: [] 131 | physicsShape: [] 132 | bones: [] 133 | spriteID: 134 | internalID: 0 135 | vertices: [] 136 | indices: 137 | edges: [] 138 | weights: [] 139 | secondaryTextures: [] 140 | spritePackingTag: 141 | pSDRemoveMatte: 0 142 | pSDShowRemoveMatteOption: 0 143 | userData: 144 | assetBundleName: 145 | assetBundleVariant: 146 | -------------------------------------------------------------------------------- /Assets/Study.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f1352c33df2794c8b860984c4baea912 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Study/Sample01.compute: -------------------------------------------------------------------------------- 1 | #pragma enable_d3d11_debug_symbols 2 | 3 | #pragma kernel CalculateParabolaCurve 4 | 5 | RWStructuredBuffer buffer; 6 | float a, p, q; 7 | 8 | [numthreads(4, 1, 1)] 9 | void CalculateParabolaCurve (uint3 tid : SV_DispatchThreadID) 10 | { 11 | buffer[tid.x] = a * (tid.x - p) * (tid.x - p) + q; 12 | } 13 | -------------------------------------------------------------------------------- /Assets/Study/Sample01.compute.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fc987040573524b26ac9a371e3e220d4 3 | ComputeShaderImporter: 4 | externalObjects: {} 5 | currentAPIMask: 65536 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Study/Sample01.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | namespace Study 6 | { 7 | /// 8 | /// https://blog.yucchiy.com/2019/01/03/tutorial-for-unity-compute-shader/ 9 | /// 10 | public class Sample01 : MonoBehaviour 11 | { 12 | public ComputeShader compute; 13 | public float a = 2; 14 | public float p = 0; 15 | public float q = 0; 16 | public uint curveLength = 32; 17 | 18 | ComputeBuffer buffer; 19 | 20 | void Start() 21 | { 22 | var kernelIndex = compute.FindKernel("CalculateParabolaCurve"); 23 | 24 | buffer = new ComputeBuffer((int)curveLength, sizeof(float)); 25 | compute.SetBuffer(kernelIndex, "buffer", buffer); 26 | 27 | compute.SetFloat("a", a); 28 | compute.SetFloat("p", p); 29 | compute.SetFloat("q", q); 30 | 31 | uint sizeX, sizeY, sizeZ; 32 | compute.GetKernelThreadGroupSizes( 33 | kernelIndex, 34 | out sizeX, 35 | out sizeY, 36 | out sizeZ 37 | ); 38 | 39 | compute.Dispatch(kernelIndex, (int)(curveLength / sizeX), 1, 1); 40 | 41 | var result = new float[curveLength]; 42 | buffer.GetData(result); 43 | foreach (var eachResult in result) 44 | { 45 | Debug.Log(eachResult); 46 | } 47 | } 48 | 49 | void OnDestroy() 50 | { 51 | buffer.Release(); 52 | buffer = null; 53 | } 54 | 55 | } 56 | 57 | } -------------------------------------------------------------------------------- /Assets/Study/Sample01.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b6f93a0d07e974a69b5b0ab35d437cd0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Study/Sample01.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 11 47 | m_GIWorkflowMode: 1 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 1 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 1 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 512 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 256 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 1 83 | m_PVRDenoiserTypeDirect: 1 84 | m_PVRDenoiserTypeIndirect: 1 85 | m_PVRDenoiserTypeAO: 1 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 1 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ShowResolutionOverlay: 1 98 | m_ExportTrainingData: 0 99 | m_LightingDataAsset: {fileID: 0} 100 | m_UseShadowmask: 1 101 | --- !u!196 &4 102 | NavMeshSettings: 103 | serializedVersion: 2 104 | m_ObjectHideFlags: 0 105 | m_BuildSettings: 106 | serializedVersion: 2 107 | agentTypeID: 0 108 | agentRadius: 0.5 109 | agentHeight: 2 110 | agentSlope: 45 111 | agentClimb: 0.4 112 | ledgeDropHeight: 0 113 | maxJumpAcrossDistance: 0 114 | minRegionArea: 2 115 | manualCellSize: 0 116 | cellSize: 0.16666667 117 | manualTileSize: 0 118 | tileSize: 256 119 | accuratePlacement: 0 120 | debug: 121 | m_Flags: 0 122 | m_NavMeshData: {fileID: 0} 123 | --- !u!1 &21184919 124 | GameObject: 125 | m_ObjectHideFlags: 0 126 | m_CorrespondingSourceObject: {fileID: 0} 127 | m_PrefabInstance: {fileID: 0} 128 | m_PrefabAsset: {fileID: 0} 129 | serializedVersion: 6 130 | m_Component: 131 | - component: {fileID: 21184922} 132 | - component: {fileID: 21184921} 133 | - component: {fileID: 21184920} 134 | m_Layer: 0 135 | m_Name: Main Camera 136 | m_TagString: MainCamera 137 | m_Icon: {fileID: 0} 138 | m_NavMeshLayer: 0 139 | m_StaticEditorFlags: 0 140 | m_IsActive: 1 141 | --- !u!81 &21184920 142 | AudioListener: 143 | m_ObjectHideFlags: 0 144 | m_CorrespondingSourceObject: {fileID: 0} 145 | m_PrefabInstance: {fileID: 0} 146 | m_PrefabAsset: {fileID: 0} 147 | m_GameObject: {fileID: 21184919} 148 | m_Enabled: 1 149 | --- !u!20 &21184921 150 | Camera: 151 | m_ObjectHideFlags: 0 152 | m_CorrespondingSourceObject: {fileID: 0} 153 | m_PrefabInstance: {fileID: 0} 154 | m_PrefabAsset: {fileID: 0} 155 | m_GameObject: {fileID: 21184919} 156 | m_Enabled: 1 157 | serializedVersion: 2 158 | m_ClearFlags: 1 159 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 160 | m_projectionMatrixMode: 1 161 | m_GateFitMode: 2 162 | m_FOVAxisMode: 0 163 | m_SensorSize: {x: 36, y: 24} 164 | m_LensShift: {x: 0, y: 0} 165 | m_FocalLength: 50 166 | m_NormalizedViewPortRect: 167 | serializedVersion: 2 168 | x: 0 169 | y: 0 170 | width: 1 171 | height: 1 172 | near clip plane: 0.3 173 | far clip plane: 1000 174 | field of view: 60 175 | orthographic: 0 176 | orthographic size: 5 177 | m_Depth: -1 178 | m_CullingMask: 179 | serializedVersion: 2 180 | m_Bits: 4294967295 181 | m_RenderingPath: -1 182 | m_TargetTexture: {fileID: 0} 183 | m_TargetDisplay: 0 184 | m_TargetEye: 3 185 | m_HDR: 1 186 | m_AllowMSAA: 1 187 | m_AllowDynamicResolution: 0 188 | m_ForceIntoRT: 0 189 | m_OcclusionCulling: 1 190 | m_StereoConvergence: 10 191 | m_StereoSeparation: 0.022 192 | --- !u!4 &21184922 193 | Transform: 194 | m_ObjectHideFlags: 0 195 | m_CorrespondingSourceObject: {fileID: 0} 196 | m_PrefabInstance: {fileID: 0} 197 | m_PrefabAsset: {fileID: 0} 198 | m_GameObject: {fileID: 21184919} 199 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 200 | m_LocalPosition: {x: 0, y: 1, z: -10} 201 | m_LocalScale: {x: 1, y: 1, z: 1} 202 | m_Children: [] 203 | m_Father: {fileID: 0} 204 | m_RootOrder: 0 205 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 206 | --- !u!1 &1987571251 207 | GameObject: 208 | m_ObjectHideFlags: 0 209 | m_CorrespondingSourceObject: {fileID: 0} 210 | m_PrefabInstance: {fileID: 0} 211 | m_PrefabAsset: {fileID: 0} 212 | serializedVersion: 6 213 | m_Component: 214 | - component: {fileID: 1987571253} 215 | - component: {fileID: 1987571252} 216 | m_Layer: 0 217 | m_Name: Directional Light 218 | m_TagString: Untagged 219 | m_Icon: {fileID: 0} 220 | m_NavMeshLayer: 0 221 | m_StaticEditorFlags: 0 222 | m_IsActive: 1 223 | --- !u!108 &1987571252 224 | Light: 225 | m_ObjectHideFlags: 0 226 | m_CorrespondingSourceObject: {fileID: 0} 227 | m_PrefabInstance: {fileID: 0} 228 | m_PrefabAsset: {fileID: 0} 229 | m_GameObject: {fileID: 1987571251} 230 | m_Enabled: 1 231 | serializedVersion: 9 232 | m_Type: 1 233 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 234 | m_Intensity: 1 235 | m_Range: 10 236 | m_SpotAngle: 30 237 | m_InnerSpotAngle: 21.80208 238 | m_CookieSize: 10 239 | m_Shadows: 240 | m_Type: 2 241 | m_Resolution: -1 242 | m_CustomResolution: -1 243 | m_Strength: 1 244 | m_Bias: 0.05 245 | m_NormalBias: 0.4 246 | m_NearPlane: 0.2 247 | m_CullingMatrixOverride: 248 | e00: 1 249 | e01: 0 250 | e02: 0 251 | e03: 0 252 | e10: 0 253 | e11: 1 254 | e12: 0 255 | e13: 0 256 | e20: 0 257 | e21: 0 258 | e22: 1 259 | e23: 0 260 | e30: 0 261 | e31: 0 262 | e32: 0 263 | e33: 1 264 | m_UseCullingMatrixOverride: 0 265 | m_Cookie: {fileID: 0} 266 | m_DrawHalo: 0 267 | m_Flare: {fileID: 0} 268 | m_RenderMode: 0 269 | m_CullingMask: 270 | serializedVersion: 2 271 | m_Bits: 4294967295 272 | m_RenderingLayerMask: 1 273 | m_Lightmapping: 4 274 | m_LightShadowCasterMode: 0 275 | m_AreaSize: {x: 1, y: 1} 276 | m_BounceIntensity: 1 277 | m_ColorTemperature: 6570 278 | m_UseColorTemperature: 0 279 | m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} 280 | m_UseBoundingSphereOverride: 0 281 | m_ShadowRadius: 0 282 | m_ShadowAngle: 0 283 | --- !u!4 &1987571253 284 | Transform: 285 | m_ObjectHideFlags: 0 286 | m_CorrespondingSourceObject: {fileID: 0} 287 | m_PrefabInstance: {fileID: 0} 288 | m_PrefabAsset: {fileID: 0} 289 | m_GameObject: {fileID: 1987571251} 290 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 291 | m_LocalPosition: {x: 0, y: 3, z: 0} 292 | m_LocalScale: {x: 1, y: 1, z: 1} 293 | m_Children: [] 294 | m_Father: {fileID: 0} 295 | m_RootOrder: 1 296 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 297 | --- !u!1 &2042548392 298 | GameObject: 299 | m_ObjectHideFlags: 0 300 | m_CorrespondingSourceObject: {fileID: 0} 301 | m_PrefabInstance: {fileID: 0} 302 | m_PrefabAsset: {fileID: 0} 303 | serializedVersion: 6 304 | m_Component: 305 | - component: {fileID: 2042548393} 306 | - component: {fileID: 2042548394} 307 | m_Layer: 0 308 | m_Name: Script 309 | m_TagString: Untagged 310 | m_Icon: {fileID: 0} 311 | m_NavMeshLayer: 0 312 | m_StaticEditorFlags: 0 313 | m_IsActive: 1 314 | --- !u!4 &2042548393 315 | Transform: 316 | m_ObjectHideFlags: 0 317 | m_CorrespondingSourceObject: {fileID: 0} 318 | m_PrefabInstance: {fileID: 0} 319 | m_PrefabAsset: {fileID: 0} 320 | m_GameObject: {fileID: 2042548392} 321 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 322 | m_LocalPosition: {x: 0, y: 0, z: 0} 323 | m_LocalScale: {x: 1, y: 1, z: 1} 324 | m_Children: [] 325 | m_Father: {fileID: 0} 326 | m_RootOrder: 2 327 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 328 | --- !u!114 &2042548394 329 | MonoBehaviour: 330 | m_ObjectHideFlags: 0 331 | m_CorrespondingSourceObject: {fileID: 0} 332 | m_PrefabInstance: {fileID: 0} 333 | m_PrefabAsset: {fileID: 0} 334 | m_GameObject: {fileID: 2042548392} 335 | m_Enabled: 1 336 | m_EditorHideFlags: 0 337 | m_Script: {fileID: 11500000, guid: b6f93a0d07e974a69b5b0ab35d437cd0, type: 3} 338 | m_Name: 339 | m_EditorClassIdentifier: 340 | compute: {fileID: 7200000, guid: fc987040573524b26ac9a371e3e220d4, type: 3} 341 | a: 2 342 | p: 0 343 | q: 0 344 | curveLength: 32 345 | -------------------------------------------------------------------------------- /Assets/Study/Sample01.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c30737d6c6b664631a9764c6c3c75dcd 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Study/Sample02-Buffer.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 11 47 | m_GIWorkflowMode: 1 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 1 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 1 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 512 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 256 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 1 83 | m_PVRDenoiserTypeDirect: 1 84 | m_PVRDenoiserTypeIndirect: 1 85 | m_PVRDenoiserTypeAO: 1 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 1 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ShowResolutionOverlay: 1 98 | m_ExportTrainingData: 0 99 | m_LightingDataAsset: {fileID: 0} 100 | m_UseShadowmask: 1 101 | --- !u!196 &4 102 | NavMeshSettings: 103 | serializedVersion: 2 104 | m_ObjectHideFlags: 0 105 | m_BuildSettings: 106 | serializedVersion: 2 107 | agentTypeID: 0 108 | agentRadius: 0.5 109 | agentHeight: 2 110 | agentSlope: 45 111 | agentClimb: 0.4 112 | ledgeDropHeight: 0 113 | maxJumpAcrossDistance: 0 114 | minRegionArea: 2 115 | manualCellSize: 0 116 | cellSize: 0.16666667 117 | manualTileSize: 0 118 | tileSize: 256 119 | accuratePlacement: 0 120 | debug: 121 | m_Flags: 0 122 | m_NavMeshData: {fileID: 0} 123 | --- !u!1 &1205476449 124 | GameObject: 125 | m_ObjectHideFlags: 0 126 | m_CorrespondingSourceObject: {fileID: 0} 127 | m_PrefabInstance: {fileID: 0} 128 | m_PrefabAsset: {fileID: 0} 129 | serializedVersion: 6 130 | m_Component: 131 | - component: {fileID: 1205476451} 132 | - component: {fileID: 1205476450} 133 | m_Layer: 0 134 | m_Name: Script 135 | m_TagString: Untagged 136 | m_Icon: {fileID: 0} 137 | m_NavMeshLayer: 0 138 | m_StaticEditorFlags: 0 139 | m_IsActive: 1 140 | --- !u!114 &1205476450 141 | MonoBehaviour: 142 | m_ObjectHideFlags: 0 143 | m_CorrespondingSourceObject: {fileID: 0} 144 | m_PrefabInstance: {fileID: 0} 145 | m_PrefabAsset: {fileID: 0} 146 | m_GameObject: {fileID: 1205476449} 147 | m_Enabled: 1 148 | m_EditorHideFlags: 0 149 | m_Script: {fileID: 11500000, guid: 081f0ed5ff42146388f1087ce7ed9b22, type: 3} 150 | m_Name: 151 | m_EditorClassIdentifier: 152 | compute: {fileID: 7200000, guid: 4f7a2ac0018ef45638e399dcff23bb4b, type: 3} 153 | --- !u!4 &1205476451 154 | Transform: 155 | m_ObjectHideFlags: 0 156 | m_CorrespondingSourceObject: {fileID: 0} 157 | m_PrefabInstance: {fileID: 0} 158 | m_PrefabAsset: {fileID: 0} 159 | m_GameObject: {fileID: 1205476449} 160 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 161 | m_LocalPosition: {x: 960, y: 540, z: 0} 162 | m_LocalScale: {x: 1, y: 1, z: 1} 163 | m_Children: [] 164 | m_Father: {fileID: 0} 165 | m_RootOrder: 1 166 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 167 | --- !u!1 &1946346875 168 | GameObject: 169 | m_ObjectHideFlags: 0 170 | m_CorrespondingSourceObject: {fileID: 0} 171 | m_PrefabInstance: {fileID: 0} 172 | m_PrefabAsset: {fileID: 0} 173 | serializedVersion: 6 174 | m_Component: 175 | - component: {fileID: 1946346878} 176 | - component: {fileID: 1946346877} 177 | - component: {fileID: 1946346876} 178 | m_Layer: 0 179 | m_Name: Main Camera 180 | m_TagString: MainCamera 181 | m_Icon: {fileID: 0} 182 | m_NavMeshLayer: 0 183 | m_StaticEditorFlags: 0 184 | m_IsActive: 1 185 | --- !u!81 &1946346876 186 | AudioListener: 187 | m_ObjectHideFlags: 0 188 | m_CorrespondingSourceObject: {fileID: 0} 189 | m_PrefabInstance: {fileID: 0} 190 | m_PrefabAsset: {fileID: 0} 191 | m_GameObject: {fileID: 1946346875} 192 | m_Enabled: 1 193 | --- !u!20 &1946346877 194 | Camera: 195 | m_ObjectHideFlags: 0 196 | m_CorrespondingSourceObject: {fileID: 0} 197 | m_PrefabInstance: {fileID: 0} 198 | m_PrefabAsset: {fileID: 0} 199 | m_GameObject: {fileID: 1946346875} 200 | m_Enabled: 1 201 | serializedVersion: 2 202 | m_ClearFlags: 1 203 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 204 | m_projectionMatrixMode: 1 205 | m_GateFitMode: 2 206 | m_FOVAxisMode: 0 207 | m_SensorSize: {x: 36, y: 24} 208 | m_LensShift: {x: 0, y: 0} 209 | m_FocalLength: 50 210 | m_NormalizedViewPortRect: 211 | serializedVersion: 2 212 | x: 0 213 | y: 0 214 | width: 1 215 | height: 1 216 | near clip plane: 0.3 217 | far clip plane: 1000 218 | field of view: 60 219 | orthographic: 0 220 | orthographic size: 5 221 | m_Depth: -1 222 | m_CullingMask: 223 | serializedVersion: 2 224 | m_Bits: 4294967295 225 | m_RenderingPath: -1 226 | m_TargetTexture: {fileID: 0} 227 | m_TargetDisplay: 0 228 | m_TargetEye: 3 229 | m_HDR: 1 230 | m_AllowMSAA: 1 231 | m_AllowDynamicResolution: 0 232 | m_ForceIntoRT: 0 233 | m_OcclusionCulling: 1 234 | m_StereoConvergence: 10 235 | m_StereoSeparation: 0.022 236 | --- !u!4 &1946346878 237 | Transform: 238 | m_ObjectHideFlags: 0 239 | m_CorrespondingSourceObject: {fileID: 0} 240 | m_PrefabInstance: {fileID: 0} 241 | m_PrefabAsset: {fileID: 0} 242 | m_GameObject: {fileID: 1946346875} 243 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 244 | m_LocalPosition: {x: 0, y: 1, z: -10} 245 | m_LocalScale: {x: 1, y: 1, z: 1} 246 | m_Children: [] 247 | m_Father: {fileID: 0} 248 | m_RootOrder: 0 249 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 250 | -------------------------------------------------------------------------------- /Assets/Study/Sample02-Buffer.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b77bf26c205d244378d8e220e9b23aa2 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Study/Sample02.compute: -------------------------------------------------------------------------------- 1 | #pragma kernel CSMain 2 | 3 | RWStructuredBuffer buffer; 4 | 5 | [numthreads(4,4,1)] 6 | void CSMain (uint3 tid : SV_DispatchThreadID) 7 | { 8 | int id = tid.x + tid.y * 8; 9 | buffer[id] = id; 10 | } 11 | -------------------------------------------------------------------------------- /Assets/Study/Sample02.compute.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4f7a2ac0018ef45638e399dcff23bb4b 3 | ComputeShaderImporter: 4 | externalObjects: {} 5 | currentAPIMask: 65536 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Study/Sample02.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | namespace Study 6 | { 7 | 8 | public class Sample02 : MonoBehaviour 9 | { 10 | public ComputeShader compute; 11 | 12 | void Start() 13 | { 14 | ComputeBuffer buffer = new ComputeBuffer(4 * 4 * 2 * 2, sizeof(int)); 15 | 16 | int kernel = compute.FindKernel("CSMain"); 17 | 18 | compute.SetBuffer(kernel, "buffer", buffer); 19 | compute.Dispatch(kernel, 2, 2, 1); 20 | 21 | int[] data = new int[4 * 4 * 2 * 2]; 22 | 23 | buffer.GetData(data); 24 | 25 | for (int i = 0; i < 8; i++) 26 | { 27 | string line = ""; 28 | for (int j = 0; j < 8; j++) 29 | { 30 | line += " " + data[j + i * 8]; 31 | } 32 | Debug.Log(line); 33 | } 34 | 35 | buffer.Release(); 36 | } 37 | } 38 | } -------------------------------------------------------------------------------- /Assets/Study/Sample02.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 081f0ed5ff42146388f1087ce7ed9b22 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Study/Sample03-Texture.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 11 47 | m_GIWorkflowMode: 1 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 1 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 1 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 512 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 256 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 1 83 | m_PVRDenoiserTypeDirect: 1 84 | m_PVRDenoiserTypeIndirect: 1 85 | m_PVRDenoiserTypeAO: 1 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 1 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ShowResolutionOverlay: 1 98 | m_ExportTrainingData: 0 99 | m_LightingDataAsset: {fileID: 0} 100 | m_UseShadowmask: 1 101 | --- !u!196 &4 102 | NavMeshSettings: 103 | serializedVersion: 2 104 | m_ObjectHideFlags: 0 105 | m_BuildSettings: 106 | serializedVersion: 2 107 | agentTypeID: 0 108 | agentRadius: 0.5 109 | agentHeight: 2 110 | agentSlope: 45 111 | agentClimb: 0.4 112 | ledgeDropHeight: 0 113 | maxJumpAcrossDistance: 0 114 | minRegionArea: 2 115 | manualCellSize: 0 116 | cellSize: 0.16666667 117 | manualTileSize: 0 118 | tileSize: 256 119 | accuratePlacement: 0 120 | debug: 121 | m_Flags: 0 122 | m_NavMeshData: {fileID: 0} 123 | --- !u!1 &27628821 124 | GameObject: 125 | m_ObjectHideFlags: 0 126 | m_CorrespondingSourceObject: {fileID: 0} 127 | m_PrefabInstance: {fileID: 0} 128 | m_PrefabAsset: {fileID: 0} 129 | serializedVersion: 6 130 | m_Component: 131 | - component: {fileID: 27628823} 132 | - component: {fileID: 27628822} 133 | m_Layer: 0 134 | m_Name: Directional Light 135 | m_TagString: Untagged 136 | m_Icon: {fileID: 0} 137 | m_NavMeshLayer: 0 138 | m_StaticEditorFlags: 0 139 | m_IsActive: 1 140 | --- !u!108 &27628822 141 | Light: 142 | m_ObjectHideFlags: 0 143 | m_CorrespondingSourceObject: {fileID: 0} 144 | m_PrefabInstance: {fileID: 0} 145 | m_PrefabAsset: {fileID: 0} 146 | m_GameObject: {fileID: 27628821} 147 | m_Enabled: 1 148 | serializedVersion: 9 149 | m_Type: 1 150 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 151 | m_Intensity: 1 152 | m_Range: 10 153 | m_SpotAngle: 30 154 | m_InnerSpotAngle: 21.80208 155 | m_CookieSize: 10 156 | m_Shadows: 157 | m_Type: 2 158 | m_Resolution: -1 159 | m_CustomResolution: -1 160 | m_Strength: 1 161 | m_Bias: 0.05 162 | m_NormalBias: 0.4 163 | m_NearPlane: 0.2 164 | m_CullingMatrixOverride: 165 | e00: 1 166 | e01: 0 167 | e02: 0 168 | e03: 0 169 | e10: 0 170 | e11: 1 171 | e12: 0 172 | e13: 0 173 | e20: 0 174 | e21: 0 175 | e22: 1 176 | e23: 0 177 | e30: 0 178 | e31: 0 179 | e32: 0 180 | e33: 1 181 | m_UseCullingMatrixOverride: 0 182 | m_Cookie: {fileID: 0} 183 | m_DrawHalo: 0 184 | m_Flare: {fileID: 0} 185 | m_RenderMode: 0 186 | m_CullingMask: 187 | serializedVersion: 2 188 | m_Bits: 4294967295 189 | m_RenderingLayerMask: 1 190 | m_Lightmapping: 4 191 | m_LightShadowCasterMode: 0 192 | m_AreaSize: {x: 1, y: 1} 193 | m_BounceIntensity: 1 194 | m_ColorTemperature: 6570 195 | m_UseColorTemperature: 0 196 | m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} 197 | m_UseBoundingSphereOverride: 0 198 | m_ShadowRadius: 0 199 | m_ShadowAngle: 0 200 | --- !u!4 &27628823 201 | Transform: 202 | m_ObjectHideFlags: 0 203 | m_CorrespondingSourceObject: {fileID: 0} 204 | m_PrefabInstance: {fileID: 0} 205 | m_PrefabAsset: {fileID: 0} 206 | m_GameObject: {fileID: 27628821} 207 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 208 | m_LocalPosition: {x: 0, y: 3, z: 0} 209 | m_LocalScale: {x: 1, y: 1, z: 1} 210 | m_Children: [] 211 | m_Father: {fileID: 0} 212 | m_RootOrder: 1 213 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 214 | --- !u!1 &906448867 215 | GameObject: 216 | m_ObjectHideFlags: 0 217 | m_CorrespondingSourceObject: {fileID: 0} 218 | m_PrefabInstance: {fileID: 0} 219 | m_PrefabAsset: {fileID: 0} 220 | serializedVersion: 6 221 | m_Component: 222 | - component: {fileID: 906448869} 223 | - component: {fileID: 906448868} 224 | m_Layer: 0 225 | m_Name: Script 226 | m_TagString: Untagged 227 | m_Icon: {fileID: 0} 228 | m_NavMeshLayer: 0 229 | m_StaticEditorFlags: 0 230 | m_IsActive: 1 231 | --- !u!114 &906448868 232 | MonoBehaviour: 233 | m_ObjectHideFlags: 0 234 | m_CorrespondingSourceObject: {fileID: 0} 235 | m_PrefabInstance: {fileID: 0} 236 | m_PrefabAsset: {fileID: 0} 237 | m_GameObject: {fileID: 906448867} 238 | m_Enabled: 1 239 | m_EditorHideFlags: 0 240 | m_Script: {fileID: 11500000, guid: 8ad77555c266648e6aef58629aa942d8, type: 3} 241 | m_Name: 242 | m_EditorClassIdentifier: 243 | shader: {fileID: 7200000, guid: bdd9d3e4333a142efa3e27d91a96f56a, type: 3} 244 | --- !u!4 &906448869 245 | Transform: 246 | m_ObjectHideFlags: 0 247 | m_CorrespondingSourceObject: {fileID: 0} 248 | m_PrefabInstance: {fileID: 0} 249 | m_PrefabAsset: {fileID: 0} 250 | m_GameObject: {fileID: 906448867} 251 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 252 | m_LocalPosition: {x: 960, y: 540, z: 0} 253 | m_LocalScale: {x: 1, y: 1, z: 1} 254 | m_Children: [] 255 | m_Father: {fileID: 0} 256 | m_RootOrder: 2 257 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 258 | --- !u!1 &1046176345 259 | GameObject: 260 | m_ObjectHideFlags: 0 261 | m_CorrespondingSourceObject: {fileID: 0} 262 | m_PrefabInstance: {fileID: 0} 263 | m_PrefabAsset: {fileID: 0} 264 | serializedVersion: 6 265 | m_Component: 266 | - component: {fileID: 1046176348} 267 | - component: {fileID: 1046176347} 268 | - component: {fileID: 1046176346} 269 | m_Layer: 0 270 | m_Name: Main Camera 271 | m_TagString: MainCamera 272 | m_Icon: {fileID: 0} 273 | m_NavMeshLayer: 0 274 | m_StaticEditorFlags: 0 275 | m_IsActive: 1 276 | --- !u!81 &1046176346 277 | AudioListener: 278 | m_ObjectHideFlags: 0 279 | m_CorrespondingSourceObject: {fileID: 0} 280 | m_PrefabInstance: {fileID: 0} 281 | m_PrefabAsset: {fileID: 0} 282 | m_GameObject: {fileID: 1046176345} 283 | m_Enabled: 1 284 | --- !u!20 &1046176347 285 | Camera: 286 | m_ObjectHideFlags: 0 287 | m_CorrespondingSourceObject: {fileID: 0} 288 | m_PrefabInstance: {fileID: 0} 289 | m_PrefabAsset: {fileID: 0} 290 | m_GameObject: {fileID: 1046176345} 291 | m_Enabled: 1 292 | serializedVersion: 2 293 | m_ClearFlags: 1 294 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 295 | m_projectionMatrixMode: 1 296 | m_GateFitMode: 2 297 | m_FOVAxisMode: 0 298 | m_SensorSize: {x: 36, y: 24} 299 | m_LensShift: {x: 0, y: 0} 300 | m_FocalLength: 50 301 | m_NormalizedViewPortRect: 302 | serializedVersion: 2 303 | x: 0 304 | y: 0 305 | width: 1 306 | height: 1 307 | near clip plane: 0.3 308 | far clip plane: 1000 309 | field of view: 60 310 | orthographic: 0 311 | orthographic size: 5 312 | m_Depth: -1 313 | m_CullingMask: 314 | serializedVersion: 2 315 | m_Bits: 4294967295 316 | m_RenderingPath: -1 317 | m_TargetTexture: {fileID: 0} 318 | m_TargetDisplay: 0 319 | m_TargetEye: 3 320 | m_HDR: 1 321 | m_AllowMSAA: 1 322 | m_AllowDynamicResolution: 0 323 | m_ForceIntoRT: 0 324 | m_OcclusionCulling: 1 325 | m_StereoConvergence: 10 326 | m_StereoSeparation: 0.022 327 | --- !u!4 &1046176348 328 | Transform: 329 | m_ObjectHideFlags: 0 330 | m_CorrespondingSourceObject: {fileID: 0} 331 | m_PrefabInstance: {fileID: 0} 332 | m_PrefabAsset: {fileID: 0} 333 | m_GameObject: {fileID: 1046176345} 334 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 335 | m_LocalPosition: {x: 0, y: 1, z: -10} 336 | m_LocalScale: {x: 1, y: 1, z: 1} 337 | m_Children: [] 338 | m_Father: {fileID: 0} 339 | m_RootOrder: 0 340 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 341 | -------------------------------------------------------------------------------- /Assets/Study/Sample03-Texture.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a04d676c089844051a3d01b8d804c35a 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Study/Sample03.compute: -------------------------------------------------------------------------------- 1 | #pragma kernel CSMain 2 | 3 | RWTexture2D tex; 4 | RWStructuredBuffer buffer; 5 | 6 | [numthreads(8,8,1)] 7 | void CSMain (uint3 id : SV_DispatchThreadID) 8 | { 9 | float w, h; 10 | tex.GetDimensions(w, h); 11 | 12 | float2 uv = float2(id.x/w, id.y/h); 13 | tex[id.xy] = float4(uv, 0.0, 1.0); 14 | } 15 | -------------------------------------------------------------------------------- /Assets/Study/Sample03.compute.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bdd9d3e4333a142efa3e27d91a96f56a 3 | ComputeShaderImporter: 4 | externalObjects: {} 5 | currentAPIMask: 65536 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Study/Sample03.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | namespace Study 6 | { 7 | public class Sample03 : MonoBehaviour 8 | { 9 | public ComputeShader shader; 10 | 11 | RenderTexture tex; 12 | 13 | void Start() 14 | { 15 | tex = new RenderTexture(64, 64, 0); 16 | tex.enableRandomWrite = true; 17 | tex.Create(); 18 | 19 | shader.SetTexture(0, "tex", tex); 20 | shader.Dispatch(0, tex.width / 8, tex.height / 8, 1); 21 | 22 | } 23 | 24 | void OnGUI() 25 | { 26 | int w = Screen.width / 2; 27 | int h = Screen.height / 2; 28 | int s = 512; 29 | 30 | GUI.DrawTexture(new Rect(w - s / 2, h - s / 2, s, s), tex); 31 | } 32 | 33 | void OnDestroy() 34 | { 35 | tex.Release(); 36 | } 37 | } 38 | } -------------------------------------------------------------------------------- /Assets/Study/Sample03.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8ad77555c266648e6aef58629aa942d8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Study/Sample04-TextureCopy.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 11 47 | m_GIWorkflowMode: 1 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 1 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 1 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 512 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 256 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 1 83 | m_PVRDenoiserTypeDirect: 1 84 | m_PVRDenoiserTypeIndirect: 1 85 | m_PVRDenoiserTypeAO: 1 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 1 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ShowResolutionOverlay: 1 98 | m_ExportTrainingData: 0 99 | m_LightingDataAsset: {fileID: 0} 100 | m_UseShadowmask: 1 101 | --- !u!196 &4 102 | NavMeshSettings: 103 | serializedVersion: 2 104 | m_ObjectHideFlags: 0 105 | m_BuildSettings: 106 | serializedVersion: 2 107 | agentTypeID: 0 108 | agentRadius: 0.5 109 | agentHeight: 2 110 | agentSlope: 45 111 | agentClimb: 0.4 112 | ledgeDropHeight: 0 113 | maxJumpAcrossDistance: 0 114 | minRegionArea: 2 115 | manualCellSize: 0 116 | cellSize: 0.16666667 117 | manualTileSize: 0 118 | tileSize: 256 119 | accuratePlacement: 0 120 | debug: 121 | m_Flags: 0 122 | m_NavMeshData: {fileID: 0} 123 | --- !u!1 &872117823 124 | GameObject: 125 | m_ObjectHideFlags: 0 126 | m_CorrespondingSourceObject: {fileID: 0} 127 | m_PrefabInstance: {fileID: 0} 128 | m_PrefabAsset: {fileID: 0} 129 | serializedVersion: 6 130 | m_Component: 131 | - component: {fileID: 872117825} 132 | - component: {fileID: 872117824} 133 | m_Layer: 0 134 | m_Name: Directional Light 135 | m_TagString: Untagged 136 | m_Icon: {fileID: 0} 137 | m_NavMeshLayer: 0 138 | m_StaticEditorFlags: 0 139 | m_IsActive: 1 140 | --- !u!108 &872117824 141 | Light: 142 | m_ObjectHideFlags: 0 143 | m_CorrespondingSourceObject: {fileID: 0} 144 | m_PrefabInstance: {fileID: 0} 145 | m_PrefabAsset: {fileID: 0} 146 | m_GameObject: {fileID: 872117823} 147 | m_Enabled: 1 148 | serializedVersion: 9 149 | m_Type: 1 150 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 151 | m_Intensity: 1 152 | m_Range: 10 153 | m_SpotAngle: 30 154 | m_InnerSpotAngle: 21.80208 155 | m_CookieSize: 10 156 | m_Shadows: 157 | m_Type: 2 158 | m_Resolution: -1 159 | m_CustomResolution: -1 160 | m_Strength: 1 161 | m_Bias: 0.05 162 | m_NormalBias: 0.4 163 | m_NearPlane: 0.2 164 | m_CullingMatrixOverride: 165 | e00: 1 166 | e01: 0 167 | e02: 0 168 | e03: 0 169 | e10: 0 170 | e11: 1 171 | e12: 0 172 | e13: 0 173 | e20: 0 174 | e21: 0 175 | e22: 1 176 | e23: 0 177 | e30: 0 178 | e31: 0 179 | e32: 0 180 | e33: 1 181 | m_UseCullingMatrixOverride: 0 182 | m_Cookie: {fileID: 0} 183 | m_DrawHalo: 0 184 | m_Flare: {fileID: 0} 185 | m_RenderMode: 0 186 | m_CullingMask: 187 | serializedVersion: 2 188 | m_Bits: 4294967295 189 | m_RenderingLayerMask: 1 190 | m_Lightmapping: 4 191 | m_LightShadowCasterMode: 0 192 | m_AreaSize: {x: 1, y: 1} 193 | m_BounceIntensity: 1 194 | m_ColorTemperature: 6570 195 | m_UseColorTemperature: 0 196 | m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} 197 | m_UseBoundingSphereOverride: 0 198 | m_ShadowRadius: 0 199 | m_ShadowAngle: 0 200 | --- !u!4 &872117825 201 | Transform: 202 | m_ObjectHideFlags: 0 203 | m_CorrespondingSourceObject: {fileID: 0} 204 | m_PrefabInstance: {fileID: 0} 205 | m_PrefabAsset: {fileID: 0} 206 | m_GameObject: {fileID: 872117823} 207 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 208 | m_LocalPosition: {x: 0, y: 3, z: 0} 209 | m_LocalScale: {x: 1, y: 1, z: 1} 210 | m_Children: [] 211 | m_Father: {fileID: 0} 212 | m_RootOrder: 1 213 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 214 | --- !u!1 &917272840 215 | GameObject: 216 | m_ObjectHideFlags: 0 217 | m_CorrespondingSourceObject: {fileID: 0} 218 | m_PrefabInstance: {fileID: 0} 219 | m_PrefabAsset: {fileID: 0} 220 | serializedVersion: 6 221 | m_Component: 222 | - component: {fileID: 917272843} 223 | - component: {fileID: 917272842} 224 | - component: {fileID: 917272841} 225 | m_Layer: 0 226 | m_Name: Main Camera 227 | m_TagString: MainCamera 228 | m_Icon: {fileID: 0} 229 | m_NavMeshLayer: 0 230 | m_StaticEditorFlags: 0 231 | m_IsActive: 1 232 | --- !u!81 &917272841 233 | AudioListener: 234 | m_ObjectHideFlags: 0 235 | m_CorrespondingSourceObject: {fileID: 0} 236 | m_PrefabInstance: {fileID: 0} 237 | m_PrefabAsset: {fileID: 0} 238 | m_GameObject: {fileID: 917272840} 239 | m_Enabled: 1 240 | --- !u!20 &917272842 241 | Camera: 242 | m_ObjectHideFlags: 0 243 | m_CorrespondingSourceObject: {fileID: 0} 244 | m_PrefabInstance: {fileID: 0} 245 | m_PrefabAsset: {fileID: 0} 246 | m_GameObject: {fileID: 917272840} 247 | m_Enabled: 1 248 | serializedVersion: 2 249 | m_ClearFlags: 1 250 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 251 | m_projectionMatrixMode: 1 252 | m_GateFitMode: 2 253 | m_FOVAxisMode: 0 254 | m_SensorSize: {x: 36, y: 24} 255 | m_LensShift: {x: 0, y: 0} 256 | m_FocalLength: 50 257 | m_NormalizedViewPortRect: 258 | serializedVersion: 2 259 | x: 0 260 | y: 0 261 | width: 1 262 | height: 1 263 | near clip plane: 0.3 264 | far clip plane: 1000 265 | field of view: 60 266 | orthographic: 0 267 | orthographic size: 5 268 | m_Depth: -1 269 | m_CullingMask: 270 | serializedVersion: 2 271 | m_Bits: 4294967295 272 | m_RenderingPath: -1 273 | m_TargetTexture: {fileID: 0} 274 | m_TargetDisplay: 0 275 | m_TargetEye: 3 276 | m_HDR: 1 277 | m_AllowMSAA: 1 278 | m_AllowDynamicResolution: 0 279 | m_ForceIntoRT: 0 280 | m_OcclusionCulling: 1 281 | m_StereoConvergence: 10 282 | m_StereoSeparation: 0.022 283 | --- !u!4 &917272843 284 | Transform: 285 | m_ObjectHideFlags: 0 286 | m_CorrespondingSourceObject: {fileID: 0} 287 | m_PrefabInstance: {fileID: 0} 288 | m_PrefabAsset: {fileID: 0} 289 | m_GameObject: {fileID: 917272840} 290 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 291 | m_LocalPosition: {x: 0, y: 1, z: -10} 292 | m_LocalScale: {x: 1, y: 1, z: 1} 293 | m_Children: [] 294 | m_Father: {fileID: 0} 295 | m_RootOrder: 0 296 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 297 | --- !u!1 &1849932507 298 | GameObject: 299 | m_ObjectHideFlags: 0 300 | m_CorrespondingSourceObject: {fileID: 0} 301 | m_PrefabInstance: {fileID: 0} 302 | m_PrefabAsset: {fileID: 0} 303 | serializedVersion: 6 304 | m_Component: 305 | - component: {fileID: 1849932509} 306 | - component: {fileID: 1849932508} 307 | m_Layer: 0 308 | m_Name: Script 309 | m_TagString: Untagged 310 | m_Icon: {fileID: 0} 311 | m_NavMeshLayer: 0 312 | m_StaticEditorFlags: 0 313 | m_IsActive: 1 314 | --- !u!114 &1849932508 315 | MonoBehaviour: 316 | m_ObjectHideFlags: 0 317 | m_CorrespondingSourceObject: {fileID: 0} 318 | m_PrefabInstance: {fileID: 0} 319 | m_PrefabAsset: {fileID: 0} 320 | m_GameObject: {fileID: 1849932507} 321 | m_Enabled: 1 322 | m_EditorHideFlags: 0 323 | m_Script: {fileID: 11500000, guid: 892e247a4f21c4d7d817b1a9aaf62c25, type: 3} 324 | m_Name: 325 | m_EditorClassIdentifier: 326 | shader: {fileID: 7200000, guid: bdd9d3e4333a142efa3e27d91a96f56a, type: 3} 327 | shaderCopy: {fileID: 7200000, guid: 484b365e5df404d0fbd2194c84e9fea3, type: 3} 328 | --- !u!4 &1849932509 329 | Transform: 330 | m_ObjectHideFlags: 0 331 | m_CorrespondingSourceObject: {fileID: 0} 332 | m_PrefabInstance: {fileID: 0} 333 | m_PrefabAsset: {fileID: 0} 334 | m_GameObject: {fileID: 1849932507} 335 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 336 | m_LocalPosition: {x: 960, y: 540, z: 0} 337 | m_LocalScale: {x: 1, y: 1, z: 1} 338 | m_Children: [] 339 | m_Father: {fileID: 0} 340 | m_RootOrder: 2 341 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 342 | -------------------------------------------------------------------------------- /Assets/Study/Sample04-TextureCopy.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1a3864127652244b59c2f0993871909c 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Study/Sample04.compute: -------------------------------------------------------------------------------- 1 | #pragma kernel CSMain 2 | 3 | RWTexture2D texCopy; 4 | Texture2D tex; 5 | 6 | SamplerState _LinearClamp; 7 | SamplerState _LinearRepeat; 8 | SamplerState _PointClamp; 9 | SamplerState _PointRepeat; 10 | 11 | [numthreads(8,8,1)] 12 | void CSMain (uint2 id : SV_DispatchThreadID) 13 | { 14 | // float4 t = tex.mips[0][id]; // same 15 | // float4 t = tex[id]; 16 | 17 | float w, h; 18 | texCopy.GetDimensions(w, h); 19 | float2 uv = float2(id.x/w, id.y/h); 20 | 21 | float4 t = tex.SampleLevel(_LinearClamp, uv, 0); 22 | texCopy[id] = t; 23 | } -------------------------------------------------------------------------------- /Assets/Study/Sample04.compute.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 484b365e5df404d0fbd2194c84e9fea3 3 | ComputeShaderImporter: 4 | externalObjects: {} 5 | currentAPIMask: 65536 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Study/Sample04.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | namespace Study 6 | { 7 | /// 8 | /// https://qiita.com/scnsh/items/20eafafe22204901a3f3#_reference-2c97dc15df14ce96ebb4 9 | /// 10 | public class Sample04 : MonoBehaviour 11 | { 12 | public ComputeShader shader; 13 | public ComputeShader shaderCopy; 14 | 15 | RenderTexture tex; 16 | RenderTexture texCopy; 17 | 18 | void Start() 19 | { 20 | tex = new RenderTexture(64, 64, 0); 21 | tex.enableRandomWrite = true; 22 | tex.Create(); 23 | 24 | texCopy = new RenderTexture(64, 64, 0); 25 | texCopy.enableRandomWrite = true; 26 | texCopy.Create(); 27 | 28 | shader.SetTexture(0, "tex", tex); 29 | shader.Dispatch(0, tex.width / 8, tex.height / 8, 1); 30 | 31 | shaderCopy.SetTexture(0, "tex", tex); 32 | shaderCopy.SetTexture(0, "texCopy", texCopy); 33 | shaderCopy.Dispatch(0, texCopy.width / 8, texCopy.height / 8, 1); 34 | } 35 | 36 | void OnGUI() 37 | { 38 | int w = Screen.width / 2; 39 | int h = Screen.height / 2; 40 | int s = 512; 41 | 42 | GUI.DrawTexture(new Rect(w - s / 2, h - s / 2, s, s), texCopy); 43 | } 44 | 45 | void OnDestroy() 46 | { 47 | tex.Release(); 48 | texCopy.Release(); 49 | } 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /Assets/Study/Sample04.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 892e247a4f21c4d7d817b1a9aaf62c25 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Study/Sample05-Recursive.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 11 47 | m_GIWorkflowMode: 1 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 1 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 1 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 512 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 256 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 1 83 | m_PVRDenoiserTypeDirect: 1 84 | m_PVRDenoiserTypeIndirect: 1 85 | m_PVRDenoiserTypeAO: 1 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 1 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ShowResolutionOverlay: 1 98 | m_ExportTrainingData: 0 99 | m_LightingDataAsset: {fileID: 0} 100 | m_UseShadowmask: 1 101 | --- !u!196 &4 102 | NavMeshSettings: 103 | serializedVersion: 2 104 | m_ObjectHideFlags: 0 105 | m_BuildSettings: 106 | serializedVersion: 2 107 | agentTypeID: 0 108 | agentRadius: 0.5 109 | agentHeight: 2 110 | agentSlope: 45 111 | agentClimb: 0.4 112 | ledgeDropHeight: 0 113 | maxJumpAcrossDistance: 0 114 | minRegionArea: 2 115 | manualCellSize: 0 116 | cellSize: 0.16666667 117 | manualTileSize: 0 118 | tileSize: 256 119 | accuratePlacement: 0 120 | debug: 121 | m_Flags: 0 122 | m_NavMeshData: {fileID: 0} 123 | --- !u!1 &1171965213 124 | GameObject: 125 | m_ObjectHideFlags: 0 126 | m_CorrespondingSourceObject: {fileID: 0} 127 | m_PrefabInstance: {fileID: 0} 128 | m_PrefabAsset: {fileID: 0} 129 | serializedVersion: 6 130 | m_Component: 131 | - component: {fileID: 1171965215} 132 | - component: {fileID: 1171965214} 133 | m_Layer: 0 134 | m_Name: Directional Light 135 | m_TagString: Untagged 136 | m_Icon: {fileID: 0} 137 | m_NavMeshLayer: 0 138 | m_StaticEditorFlags: 0 139 | m_IsActive: 1 140 | --- !u!108 &1171965214 141 | Light: 142 | m_ObjectHideFlags: 0 143 | m_CorrespondingSourceObject: {fileID: 0} 144 | m_PrefabInstance: {fileID: 0} 145 | m_PrefabAsset: {fileID: 0} 146 | m_GameObject: {fileID: 1171965213} 147 | m_Enabled: 1 148 | serializedVersion: 9 149 | m_Type: 1 150 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 151 | m_Intensity: 1 152 | m_Range: 10 153 | m_SpotAngle: 30 154 | m_InnerSpotAngle: 21.80208 155 | m_CookieSize: 10 156 | m_Shadows: 157 | m_Type: 2 158 | m_Resolution: -1 159 | m_CustomResolution: -1 160 | m_Strength: 1 161 | m_Bias: 0.05 162 | m_NormalBias: 0.4 163 | m_NearPlane: 0.2 164 | m_CullingMatrixOverride: 165 | e00: 1 166 | e01: 0 167 | e02: 0 168 | e03: 0 169 | e10: 0 170 | e11: 1 171 | e12: 0 172 | e13: 0 173 | e20: 0 174 | e21: 0 175 | e22: 1 176 | e23: 0 177 | e30: 0 178 | e31: 0 179 | e32: 0 180 | e33: 1 181 | m_UseCullingMatrixOverride: 0 182 | m_Cookie: {fileID: 0} 183 | m_DrawHalo: 0 184 | m_Flare: {fileID: 0} 185 | m_RenderMode: 0 186 | m_CullingMask: 187 | serializedVersion: 2 188 | m_Bits: 4294967295 189 | m_RenderingLayerMask: 1 190 | m_Lightmapping: 4 191 | m_LightShadowCasterMode: 0 192 | m_AreaSize: {x: 1, y: 1} 193 | m_BounceIntensity: 1 194 | m_ColorTemperature: 6570 195 | m_UseColorTemperature: 0 196 | m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} 197 | m_UseBoundingSphereOverride: 0 198 | m_ShadowRadius: 0 199 | m_ShadowAngle: 0 200 | --- !u!4 &1171965215 201 | Transform: 202 | m_ObjectHideFlags: 0 203 | m_CorrespondingSourceObject: {fileID: 0} 204 | m_PrefabInstance: {fileID: 0} 205 | m_PrefabAsset: {fileID: 0} 206 | m_GameObject: {fileID: 1171965213} 207 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 208 | m_LocalPosition: {x: 0, y: 3, z: 0} 209 | m_LocalScale: {x: 1, y: 1, z: 1} 210 | m_Children: [] 211 | m_Father: {fileID: 0} 212 | m_RootOrder: 1 213 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 214 | --- !u!1 &1307690008 215 | GameObject: 216 | m_ObjectHideFlags: 0 217 | m_CorrespondingSourceObject: {fileID: 0} 218 | m_PrefabInstance: {fileID: 0} 219 | m_PrefabAsset: {fileID: 0} 220 | serializedVersion: 6 221 | m_Component: 222 | - component: {fileID: 1307690011} 223 | - component: {fileID: 1307690010} 224 | - component: {fileID: 1307690009} 225 | m_Layer: 0 226 | m_Name: Main Camera 227 | m_TagString: MainCamera 228 | m_Icon: {fileID: 0} 229 | m_NavMeshLayer: 0 230 | m_StaticEditorFlags: 0 231 | m_IsActive: 1 232 | --- !u!81 &1307690009 233 | AudioListener: 234 | m_ObjectHideFlags: 0 235 | m_CorrespondingSourceObject: {fileID: 0} 236 | m_PrefabInstance: {fileID: 0} 237 | m_PrefabAsset: {fileID: 0} 238 | m_GameObject: {fileID: 1307690008} 239 | m_Enabled: 1 240 | --- !u!20 &1307690010 241 | Camera: 242 | m_ObjectHideFlags: 0 243 | m_CorrespondingSourceObject: {fileID: 0} 244 | m_PrefabInstance: {fileID: 0} 245 | m_PrefabAsset: {fileID: 0} 246 | m_GameObject: {fileID: 1307690008} 247 | m_Enabled: 1 248 | serializedVersion: 2 249 | m_ClearFlags: 1 250 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 251 | m_projectionMatrixMode: 1 252 | m_GateFitMode: 2 253 | m_FOVAxisMode: 0 254 | m_SensorSize: {x: 36, y: 24} 255 | m_LensShift: {x: 0, y: 0} 256 | m_FocalLength: 50 257 | m_NormalizedViewPortRect: 258 | serializedVersion: 2 259 | x: 0 260 | y: 0 261 | width: 1 262 | height: 1 263 | near clip plane: 0.3 264 | far clip plane: 1000 265 | field of view: 60 266 | orthographic: 0 267 | orthographic size: 5 268 | m_Depth: -1 269 | m_CullingMask: 270 | serializedVersion: 2 271 | m_Bits: 4294967295 272 | m_RenderingPath: -1 273 | m_TargetTexture: {fileID: 0} 274 | m_TargetDisplay: 0 275 | m_TargetEye: 3 276 | m_HDR: 1 277 | m_AllowMSAA: 1 278 | m_AllowDynamicResolution: 0 279 | m_ForceIntoRT: 0 280 | m_OcclusionCulling: 1 281 | m_StereoConvergence: 10 282 | m_StereoSeparation: 0.022 283 | --- !u!4 &1307690011 284 | Transform: 285 | m_ObjectHideFlags: 0 286 | m_CorrespondingSourceObject: {fileID: 0} 287 | m_PrefabInstance: {fileID: 0} 288 | m_PrefabAsset: {fileID: 0} 289 | m_GameObject: {fileID: 1307690008} 290 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 291 | m_LocalPosition: {x: 0, y: 1, z: -10} 292 | m_LocalScale: {x: 1, y: 1, z: 1} 293 | m_Children: [] 294 | m_Father: {fileID: 0} 295 | m_RootOrder: 0 296 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 297 | --- !u!1 &1787192367 298 | GameObject: 299 | m_ObjectHideFlags: 0 300 | m_CorrespondingSourceObject: {fileID: 0} 301 | m_PrefabInstance: {fileID: 0} 302 | m_PrefabAsset: {fileID: 0} 303 | serializedVersion: 6 304 | m_Component: 305 | - component: {fileID: 1787192369} 306 | - component: {fileID: 1787192368} 307 | m_Layer: 0 308 | m_Name: Script 309 | m_TagString: Untagged 310 | m_Icon: {fileID: 0} 311 | m_NavMeshLayer: 0 312 | m_StaticEditorFlags: 0 313 | m_IsActive: 1 314 | --- !u!114 &1787192368 315 | MonoBehaviour: 316 | m_ObjectHideFlags: 0 317 | m_CorrespondingSourceObject: {fileID: 0} 318 | m_PrefabInstance: {fileID: 0} 319 | m_PrefabAsset: {fileID: 0} 320 | m_GameObject: {fileID: 1787192367} 321 | m_Enabled: 1 322 | m_EditorHideFlags: 0 323 | m_Script: {fileID: 11500000, guid: 424061d021bc44b748ad11e91dcae24a, type: 3} 324 | m_Name: 325 | m_EditorClassIdentifier: 326 | compute: {fileID: 7200000, guid: 6f8d6efde37294bc3b4a202f5a4df92f, type: 3} 327 | --- !u!4 &1787192369 328 | Transform: 329 | m_ObjectHideFlags: 0 330 | m_CorrespondingSourceObject: {fileID: 0} 331 | m_PrefabInstance: {fileID: 0} 332 | m_PrefabAsset: {fileID: 0} 333 | m_GameObject: {fileID: 1787192367} 334 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 335 | m_LocalPosition: {x: 960, y: 540, z: 0} 336 | m_LocalScale: {x: 1, y: 1, z: 1} 337 | m_Children: [] 338 | m_Father: {fileID: 0} 339 | m_RootOrder: 2 340 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 341 | -------------------------------------------------------------------------------- /Assets/Study/Sample05-Recursive.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 12406e1d55f2944079c2698259c9877b 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Study/Sample05.compute: -------------------------------------------------------------------------------- 1 | #pragma kernel CSMain 2 | 3 | RWStructuredBuffer buffer; 4 | 5 | 6 | void recursive(int id) 7 | { 8 | int depth = 0; 9 | while(depth < 2) 10 | { 11 | // buffer[id] = buffer[id] + buffer[id]; 12 | buffer[id]++; 13 | depth++; 14 | } 15 | } 16 | 17 | 18 | [numthreads(4,4,1)] 19 | void CSMain (uint3 tid : SV_DispatchThreadID) 20 | { 21 | int id = tid.x + tid.y * 8; 22 | buffer[id] = id; 23 | recursive(id); 24 | } -------------------------------------------------------------------------------- /Assets/Study/Sample05.compute.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6f8d6efde37294bc3b4a202f5a4df92f 3 | ComputeShaderImporter: 4 | externalObjects: {} 5 | currentAPIMask: 65536 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Study/Sample05.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEngine.Rendering; 5 | 6 | namespace Study 7 | { 8 | 9 | public class Sample05 : MonoBehaviour 10 | { 11 | [SerializeField] ComputeShader compute = null; 12 | // CommandBuffer commandBuffer = null; 13 | 14 | void Start() 15 | { 16 | // commandBuffer = new CommandBuffer(); 17 | 18 | ComputeBuffer buffer = new ComputeBuffer(4 * 4 * 2 * 2, sizeof(int)); 19 | int kernel = compute.FindKernel("CSMain"); 20 | 21 | compute.SetBuffer(kernel, "buffer", buffer); 22 | compute.Dispatch(kernel, 2, 2, 1); 23 | 24 | int[] data = new int[4 * 4 * 2 * 2]; 25 | 26 | buffer.GetData(data); 27 | 28 | for (int i = 0; i < 8; i++) 29 | { 30 | string line = ""; 31 | for (int j = 0; j < 8; j++) 32 | { 33 | line += " " + data[j + i * 8]; 34 | } 35 | Debug.Log(line); 36 | } 37 | buffer.Release(); 38 | } 39 | 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /Assets/Study/Sample05.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 424061d021bc44b748ad11e91dcae24a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Study/Sample06-ReadTexture.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 11 47 | m_GIWorkflowMode: 1 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 1 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 1 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 512 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 256 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 1 83 | m_PVRDenoiserTypeDirect: 1 84 | m_PVRDenoiserTypeIndirect: 1 85 | m_PVRDenoiserTypeAO: 1 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 1 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ShowResolutionOverlay: 1 98 | m_ExportTrainingData: 0 99 | m_LightingDataAsset: {fileID: 0} 100 | m_UseShadowmask: 1 101 | --- !u!196 &4 102 | NavMeshSettings: 103 | serializedVersion: 2 104 | m_ObjectHideFlags: 0 105 | m_BuildSettings: 106 | serializedVersion: 2 107 | agentTypeID: 0 108 | agentRadius: 0.5 109 | agentHeight: 2 110 | agentSlope: 45 111 | agentClimb: 0.4 112 | ledgeDropHeight: 0 113 | maxJumpAcrossDistance: 0 114 | minRegionArea: 2 115 | manualCellSize: 0 116 | cellSize: 0.16666667 117 | manualTileSize: 0 118 | tileSize: 256 119 | accuratePlacement: 0 120 | debug: 121 | m_Flags: 0 122 | m_NavMeshData: {fileID: 0} 123 | --- !u!1 &1217837426 124 | GameObject: 125 | m_ObjectHideFlags: 0 126 | m_CorrespondingSourceObject: {fileID: 0} 127 | m_PrefabInstance: {fileID: 0} 128 | m_PrefabAsset: {fileID: 0} 129 | serializedVersion: 6 130 | m_Component: 131 | - component: {fileID: 1217837429} 132 | - component: {fileID: 1217837428} 133 | - component: {fileID: 1217837427} 134 | m_Layer: 0 135 | m_Name: Main Camera 136 | m_TagString: MainCamera 137 | m_Icon: {fileID: 0} 138 | m_NavMeshLayer: 0 139 | m_StaticEditorFlags: 0 140 | m_IsActive: 1 141 | --- !u!81 &1217837427 142 | AudioListener: 143 | m_ObjectHideFlags: 0 144 | m_CorrespondingSourceObject: {fileID: 0} 145 | m_PrefabInstance: {fileID: 0} 146 | m_PrefabAsset: {fileID: 0} 147 | m_GameObject: {fileID: 1217837426} 148 | m_Enabled: 1 149 | --- !u!20 &1217837428 150 | Camera: 151 | m_ObjectHideFlags: 0 152 | m_CorrespondingSourceObject: {fileID: 0} 153 | m_PrefabInstance: {fileID: 0} 154 | m_PrefabAsset: {fileID: 0} 155 | m_GameObject: {fileID: 1217837426} 156 | m_Enabled: 1 157 | serializedVersion: 2 158 | m_ClearFlags: 2 159 | m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} 160 | m_projectionMatrixMode: 1 161 | m_GateFitMode: 2 162 | m_FOVAxisMode: 0 163 | m_SensorSize: {x: 36, y: 24} 164 | m_LensShift: {x: 0, y: 0} 165 | m_FocalLength: 50 166 | m_NormalizedViewPortRect: 167 | serializedVersion: 2 168 | x: 0 169 | y: 0 170 | width: 1 171 | height: 1 172 | near clip plane: 0.3 173 | far clip plane: 1000 174 | field of view: 60 175 | orthographic: 0 176 | orthographic size: 5 177 | m_Depth: -1 178 | m_CullingMask: 179 | serializedVersion: 2 180 | m_Bits: 4294967295 181 | m_RenderingPath: -1 182 | m_TargetTexture: {fileID: 0} 183 | m_TargetDisplay: 0 184 | m_TargetEye: 3 185 | m_HDR: 1 186 | m_AllowMSAA: 1 187 | m_AllowDynamicResolution: 0 188 | m_ForceIntoRT: 0 189 | m_OcclusionCulling: 1 190 | m_StereoConvergence: 10 191 | m_StereoSeparation: 0.022 192 | --- !u!4 &1217837429 193 | Transform: 194 | m_ObjectHideFlags: 0 195 | m_CorrespondingSourceObject: {fileID: 0} 196 | m_PrefabInstance: {fileID: 0} 197 | m_PrefabAsset: {fileID: 0} 198 | m_GameObject: {fileID: 1217837426} 199 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 200 | m_LocalPosition: {x: 0, y: 1, z: -10} 201 | m_LocalScale: {x: 1, y: 1, z: 1} 202 | m_Children: [] 203 | m_Father: {fileID: 0} 204 | m_RootOrder: 0 205 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 206 | --- !u!1 &1461104679 207 | GameObject: 208 | m_ObjectHideFlags: 0 209 | m_CorrespondingSourceObject: {fileID: 0} 210 | m_PrefabInstance: {fileID: 0} 211 | m_PrefabAsset: {fileID: 0} 212 | serializedVersion: 6 213 | m_Component: 214 | - component: {fileID: 1461104681} 215 | - component: {fileID: 1461104680} 216 | m_Layer: 0 217 | m_Name: Script 218 | m_TagString: Untagged 219 | m_Icon: {fileID: 0} 220 | m_NavMeshLayer: 0 221 | m_StaticEditorFlags: 0 222 | m_IsActive: 1 223 | --- !u!114 &1461104680 224 | MonoBehaviour: 225 | m_ObjectHideFlags: 0 226 | m_CorrespondingSourceObject: {fileID: 0} 227 | m_PrefabInstance: {fileID: 0} 228 | m_PrefabAsset: {fileID: 0} 229 | m_GameObject: {fileID: 1461104679} 230 | m_Enabled: 1 231 | m_EditorHideFlags: 0 232 | m_Script: {fileID: 11500000, guid: 6db8ab5c037124d97bcd813ff1952eb9, type: 3} 233 | m_Name: 234 | m_EditorClassIdentifier: 235 | source: {fileID: 2800000, guid: ac29fea86b3d2c84999064dc85b5a5b7, type: 3} 236 | compute: {fileID: 7200000, guid: 04b6f2e54a2c04c79bf2b7f0105f599c, type: 3} 237 | --- !u!4 &1461104681 238 | Transform: 239 | m_ObjectHideFlags: 0 240 | m_CorrespondingSourceObject: {fileID: 0} 241 | m_PrefabInstance: {fileID: 0} 242 | m_PrefabAsset: {fileID: 0} 243 | m_GameObject: {fileID: 1461104679} 244 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 245 | m_LocalPosition: {x: 960, y: 540, z: 0} 246 | m_LocalScale: {x: 1, y: 1, z: 1} 247 | m_Children: [] 248 | m_Father: {fileID: 0} 249 | m_RootOrder: 1 250 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 251 | -------------------------------------------------------------------------------- /Assets/Study/Sample06-ReadTexture.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b98ff86ec7fbd4f838e9a53b236e4788 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Study/Sample06.compute: -------------------------------------------------------------------------------- 1 | // Each #kernel tells which function to compile; you can have many kernels 2 | #pragma kernel CSMain 3 | 4 | Texture2D Source; 5 | RWTexture2D Result; 6 | 7 | [numthreads(16,16,1)] 8 | void CSMain (uint3 id : SV_DispatchThreadID) 9 | { 10 | // float w, h; 11 | // Result.GetDimensions(w, h); 12 | // Result[id.xy] = float4(id.x/w, id.y/h, 0.0, 1.0); 13 | 14 | Result[id.xy] = Source[id.xy]; 15 | } 16 | -------------------------------------------------------------------------------- /Assets/Study/Sample06.compute.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 04b6f2e54a2c04c79bf2b7f0105f599c 3 | ComputeShaderImporter: 4 | externalObjects: {} 5 | currentAPIMask: 65536 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Study/Sample06.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using Unity.Mathematics; 5 | using PoissonBlending; 6 | 7 | namespace Study 8 | { 9 | public class Sample06 : MonoBehaviour 10 | { 11 | [SerializeField] Texture2D source = null; 12 | [SerializeField] ComputeShader compute = null; 13 | 14 | RenderTexture tex; 15 | 16 | void Start() 17 | { 18 | tex = new RenderTexture(source.width, source.height, 0); 19 | tex.enableRandomWrite = true; 20 | tex.Create(); 21 | 22 | int kernel = compute.FindKernel("CSMain"); 23 | 24 | uint3 groups = compute.GetThreadGroupSize(kernel); 25 | Debug.Assert(source.width % groups.x == 0); 26 | Debug.Assert(source.height % groups.y == 0); 27 | 28 | compute.SetTexture(kernel, "Source", source, 0); 29 | compute.SetTexture(kernel, "Result", tex); 30 | 31 | compute.Dispatch(kernel, tex.width / (int)groups.x, tex.height / (int)groups.y, 1); 32 | } 33 | 34 | void OnDestroy() 35 | { 36 | tex.Release(); 37 | } 38 | 39 | void OnGUI() 40 | { 41 | int w = Screen.width / 2; 42 | int h = Screen.height / 2; 43 | int s = 512; 44 | 45 | GUI.DrawTexture(new Rect(w - s / 2, h - s / 2, s, s), tex); 46 | } 47 | 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /Assets/Study/Sample06.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6db8ab5c037124d97bcd813ff1952eb9 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.burst": "1.0.4", 4 | "com.unity.jobs": "0.0.7-preview.13", 5 | "com.unity.mathematics": "1.0.1", 6 | "com.unity.package-manager-ui": "2.1.2", 7 | "com.unity.textmeshpro": "2.0.1", 8 | "com.unity.timeline": "1.0.0", 9 | "com.unity.modules.ai": "1.0.0", 10 | "com.unity.modules.animation": "1.0.0", 11 | "com.unity.modules.assetbundle": "1.0.0", 12 | "com.unity.modules.audio": "1.0.0", 13 | "com.unity.modules.cloth": "1.0.0", 14 | "com.unity.modules.director": "1.0.0", 15 | "com.unity.modules.imageconversion": "1.0.0", 16 | "com.unity.modules.imgui": "1.0.0", 17 | "com.unity.modules.jsonserialize": "1.0.0", 18 | "com.unity.modules.particlesystem": "1.0.0", 19 | "com.unity.modules.physics": "1.0.0", 20 | "com.unity.modules.physics2d": "1.0.0", 21 | "com.unity.modules.screencapture": "1.0.0", 22 | "com.unity.modules.terrain": "1.0.0", 23 | "com.unity.modules.terrainphysics": "1.0.0", 24 | "com.unity.modules.tilemap": "1.0.0", 25 | "com.unity.modules.ui": "1.0.0", 26 | "com.unity.modules.uielements": "1.0.0", 27 | "com.unity.modules.umbra": "1.0.0", 28 | "com.unity.modules.unityanalytics": "1.0.0", 29 | "com.unity.modules.unitywebrequest": "1.0.0", 30 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 31 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 32 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 33 | "com.unity.modules.unitywebrequestwww": "1.0.0", 34 | "com.unity.modules.vehicles": "1.0.0", 35 | "com.unity.modules.video": "1.0.0", 36 | "com.unity.modules.vr": "1.0.0", 37 | "com.unity.modules.wind": "1.0.0", 38 | "com.unity.modules.xr": "1.0.0" 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /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: 1024 20 | -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 11 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_DefaultSolverIterations: 6 13 | m_DefaultSolverVelocityIterations: 1 14 | m_QueriesHitBackfaces: 0 15 | m_QueriesHitTriggers: 1 16 | m_EnableAdaptiveForce: 0 17 | m_ClothInterCollisionDistance: 0 18 | m_ClothInterCollisionStiffness: 0 19 | m_ContactsGeneration: 1 20 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 21 | m_AutoSimulation: 1 22 | m_AutoSyncTransforms: 0 23 | m_ReuseCollisionCallbacks: 1 24 | m_ClothInterCollisionSettingsToggle: 0 25 | m_ContactPairsMode: 0 26 | m_BroadphaseType: 0 27 | m_WorldBounds: 28 | m_Center: {x: 0, y: 0, z: 0} 29 | m_Extent: {x: 250, y: 250, z: 250} 30 | m_WorldSubdivisions: 8 31 | m_FrictionType: 0 32 | m_EnableEnhancedDeterminism: 0 33 | m_EnableUnifiedHeightmaps: 1 34 | m_DefaultMaxAngluarSpeed: 7 35 | -------------------------------------------------------------------------------- /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 | m_configObjects: {} 9 | -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 7 7 | m_ExternalVersionControlSupport: Hidden Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 2 10 | m_DefaultBehaviorMode: 0 11 | m_PrefabRegularEnvironment: {fileID: 0} 12 | m_PrefabUIEnvironment: {fileID: 0} 13 | m_SpritePackerMode: 0 14 | m_SpritePackerPaddingPower: 1 15 | m_EtcTextureCompressorBehavior: 1 16 | m_EtcTextureFastCompressor: 1 17 | m_EtcTextureNormalCompressor: 2 18 | m_EtcTextureBestCompressor: 4 19 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp 20 | m_ProjectGenerationRootNamespace: 21 | m_CollabEditorSettings: 22 | inProgressEnabled: 1 23 | m_EnableTextureStreamingInEditMode: 1 24 | m_EnableTextureStreamingInPlayMode: 1 25 | m_AsyncShaderCompilation: 1 26 | -------------------------------------------------------------------------------- /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: 12 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_AlwaysIncludedShaders: 32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 38 | m_PreloadedShaders: [] 39 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 40 | type: 0} 41 | m_CustomRenderPipeline: {fileID: 0} 42 | m_TransparencySortMode: 0 43 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 44 | m_DefaultRenderingPath: 1 45 | m_DefaultMobileRenderingPath: 1 46 | m_TierSettings: [] 47 | m_LightmapStripping: 0 48 | m_FogStripping: 0 49 | m_InstancingStripping: 0 50 | m_LightmapKeepPlain: 1 51 | m_LightmapKeepDirCombined: 1 52 | m_LightmapKeepDynamicPlain: 1 53 | m_LightmapKeepDynamicDirCombined: 1 54 | m_LightmapKeepShadowMask: 1 55 | m_LightmapKeepSubtractive: 1 56 | m_FogKeepLinear: 1 57 | m_FogKeepExp: 1 58 | m_FogKeepExp2: 1 59 | m_AlbedoSwatchInfos: [] 60 | m_LightsUseLinearIntensity: 0 61 | m_LightsUseColorTemperature: 0 62 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshProjectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | m_LastAgentTypeID: -887442657 73 | m_Settings: 74 | - serializedVersion: 2 75 | agentTypeID: 0 76 | agentRadius: 0.5 77 | agentHeight: 2 78 | agentSlope: 45 79 | agentClimb: 0.75 80 | ledgeDropHeight: 0 81 | maxJumpAcrossDistance: 0 82 | minRegionArea: 2 83 | manualCellSize: 0 84 | cellSize: 0.16666667 85 | manualTileSize: 0 86 | tileSize: 256 87 | accuratePlacement: 0 88 | debug: 89 | m_Flags: 0 90 | m_SettingNames: 91 | - Humanoid 92 | -------------------------------------------------------------------------------- /ProjectSettings/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: 4 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_AutoSimulation: 1 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 | -------------------------------------------------------------------------------- /ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1386491679 &1 4 | PresetManager: 5 | m_ObjectHideFlags: 0 6 | m_DefaultList: [] 7 | -------------------------------------------------------------------------------- /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: 17 7 | productGUID: a7fb62be8636aee48b51563d43d97fcd 8 | AndroidProfiler: 0 9 | AndroidFilterTouchesWhenObscured: 0 10 | AndroidEnableSustainedPerformanceMode: 0 11 | defaultScreenOrientation: 4 12 | targetDevice: 2 13 | useOnDemandResources: 0 14 | accelerometerFrequency: 60 15 | companyName: DefaultCompany 16 | productName: unity-poisson-blending 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: 1 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: 1024 46 | defaultScreenHeight: 768 47 | defaultScreenWidthWeb: 960 48 | defaultScreenHeightWeb: 600 49 | m_StereoRenderingPath: 0 50 | m_ActiveColorSpace: 0 51 | m_MTRendering: 1 52 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 53 | iosShowActivityIndicatorOnLoading: -1 54 | androidShowActivityIndicatorOnLoading: -1 55 | iosAppInBackgroundBehavior: 0 56 | displayResolutionDialog: 0 57 | iosAllowHTTPDownload: 1 58 | allowedAutorotateToPortrait: 1 59 | allowedAutorotateToPortraitUpsideDown: 1 60 | allowedAutorotateToLandscapeRight: 1 61 | allowedAutorotateToLandscapeLeft: 1 62 | useOSAutorotation: 1 63 | use32BitDisplayBuffer: 1 64 | preserveFramebufferAlpha: 0 65 | disableDepthAndStencilBuffers: 0 66 | androidStartInFullscreen: 1 67 | androidRenderOutsideSafeArea: 1 68 | androidUseSwappy: 0 69 | androidBlitType: 0 70 | defaultIsNativeResolution: 1 71 | macRetinaSupport: 1 72 | runInBackground: 1 73 | captureSingleScreen: 0 74 | muteOtherAudioSources: 0 75 | Prepare IOS For Recording: 0 76 | Force IOS Speakers When Recording: 0 77 | deferSystemGesturesMode: 0 78 | hideHomeButton: 0 79 | submitAnalytics: 1 80 | usePlayerLog: 1 81 | bakeCollisionMeshes: 0 82 | forceSingleInstance: 0 83 | resizableWindow: 0 84 | useMacAppStoreValidation: 0 85 | macAppStoreCategory: public.app-category.games 86 | gpuSkinning: 1 87 | graphicsJobs: 0 88 | xboxPIXTextureCapture: 0 89 | xboxEnableAvatar: 0 90 | xboxEnableKinect: 0 91 | xboxEnableKinectAutoTracking: 0 92 | xboxEnableFitness: 0 93 | visibleInBackground: 1 94 | allowFullscreenSwitch: 1 95 | graphicsJobMode: 0 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 | xboxOnePresentImmediateThreshold: 0 109 | switchQueueCommandMemory: 0 110 | switchQueueControlMemory: 16384 111 | switchQueueComputeMemory: 262144 112 | switchNVNShaderPoolsGranularity: 33554432 113 | switchNVNDefaultPoolsGranularity: 16777216 114 | switchNVNOtherPoolsGranularity: 16777216 115 | vulkanEnableSetSRGBWrite: 0 116 | m_SupportedAspectRatios: 117 | 4:3: 1 118 | 5:4: 1 119 | 16:10: 1 120 | 16:9: 1 121 | Others: 1 122 | bundleVersion: 0.1 123 | preloadedAssets: [] 124 | metroInputSource: 0 125 | wsaTransparentSwapchain: 0 126 | m_HolographicPauseOnTrackingLoss: 1 127 | xboxOneDisableKinectGpuReservation: 1 128 | xboxOneEnable7thCore: 1 129 | vrSettings: 130 | cardboard: 131 | depthFormat: 0 132 | enableTransitionView: 0 133 | daydream: 134 | depthFormat: 0 135 | useSustainedPerformanceMode: 0 136 | enableVideoLayer: 0 137 | useProtectedVideoMemory: 0 138 | minimumSupportedHeadTracking: 0 139 | maximumSupportedHeadTracking: 1 140 | hololens: 141 | depthFormat: 1 142 | depthBufferSharingEnabled: 1 143 | lumin: 144 | depthFormat: 0 145 | frameTiming: 2 146 | enableGLCache: 0 147 | glCacheMaxBlobSize: 524288 148 | glCacheMaxFileSize: 8388608 149 | oculus: 150 | sharedDepthBuffer: 1 151 | dashSupport: 1 152 | lowOverheadMode: 0 153 | enable360StereoCapture: 0 154 | isWsaHolographicRemotingEnabled: 0 155 | protectGraphicsMemory: 0 156 | enableFrameTimingStats: 0 157 | useHDRDisplay: 0 158 | m_ColorGamuts: 00000000 159 | targetPixelDensity: 30 160 | resolutionScalingMode: 0 161 | androidSupportedAspectRatio: 1 162 | androidMaxAspectRatio: 2.1 163 | applicationIdentifier: {} 164 | buildNumber: {} 165 | AndroidBundleVersionCode: 1 166 | AndroidMinSdkVersion: 16 167 | AndroidTargetSdkVersion: 0 168 | AndroidPreferredInstallLocation: 1 169 | aotOptions: 170 | stripEngineCode: 1 171 | iPhoneStrippingLevel: 0 172 | iPhoneScriptCallOptimization: 0 173 | ForceInternetPermission: 0 174 | ForceSDCardPermission: 0 175 | CreateWallpaper: 0 176 | APKExpansionFiles: 0 177 | keepLoadedShadersAlive: 0 178 | StripUnusedMeshComponents: 1 179 | VertexChannelCompressionMask: 4054 180 | iPhoneSdkVersion: 988 181 | iOSTargetOSVersionString: 9.0 182 | tvOSSdkVersion: 0 183 | tvOSRequireExtendedGameController: 0 184 | tvOSTargetOSVersionString: 9.0 185 | uIPrerenderedIcon: 0 186 | uIRequiresPersistentWiFi: 0 187 | uIRequiresFullScreen: 1 188 | uIStatusBarHidden: 1 189 | uIExitOnSuspend: 0 190 | uIStatusBarStyle: 0 191 | iPhoneSplashScreen: {fileID: 0} 192 | iPhoneHighResSplashScreen: {fileID: 0} 193 | iPhoneTallHighResSplashScreen: {fileID: 0} 194 | iPhone47inSplashScreen: {fileID: 0} 195 | iPhone55inPortraitSplashScreen: {fileID: 0} 196 | iPhone55inLandscapeSplashScreen: {fileID: 0} 197 | iPhone58inPortraitSplashScreen: {fileID: 0} 198 | iPhone58inLandscapeSplashScreen: {fileID: 0} 199 | iPadPortraitSplashScreen: {fileID: 0} 200 | iPadHighResPortraitSplashScreen: {fileID: 0} 201 | iPadLandscapeSplashScreen: {fileID: 0} 202 | iPadHighResLandscapeSplashScreen: {fileID: 0} 203 | iPhone65inPortraitSplashScreen: {fileID: 0} 204 | iPhone65inLandscapeSplashScreen: {fileID: 0} 205 | iPhone61inPortraitSplashScreen: {fileID: 0} 206 | iPhone61inLandscapeSplashScreen: {fileID: 0} 207 | appleTVSplashScreen: {fileID: 0} 208 | appleTVSplashScreen2x: {fileID: 0} 209 | tvOSSmallIconLayers: [] 210 | tvOSSmallIconLayers2x: [] 211 | tvOSLargeIconLayers: [] 212 | tvOSLargeIconLayers2x: [] 213 | tvOSTopShelfImageLayers: [] 214 | tvOSTopShelfImageLayers2x: [] 215 | tvOSTopShelfImageWideLayers: [] 216 | tvOSTopShelfImageWideLayers2x: [] 217 | iOSLaunchScreenType: 0 218 | iOSLaunchScreenPortrait: {fileID: 0} 219 | iOSLaunchScreenLandscape: {fileID: 0} 220 | iOSLaunchScreenBackgroundColor: 221 | serializedVersion: 2 222 | rgba: 0 223 | iOSLaunchScreenFillPct: 100 224 | iOSLaunchScreenSize: 100 225 | iOSLaunchScreenCustomXibPath: 226 | iOSLaunchScreeniPadType: 0 227 | iOSLaunchScreeniPadImage: {fileID: 0} 228 | iOSLaunchScreeniPadBackgroundColor: 229 | serializedVersion: 2 230 | rgba: 0 231 | iOSLaunchScreeniPadFillPct: 100 232 | iOSLaunchScreeniPadSize: 100 233 | iOSLaunchScreeniPadCustomXibPath: 234 | iOSUseLaunchScreenStoryboard: 0 235 | iOSLaunchScreenCustomStoryboardPath: 236 | iOSDeviceRequirements: [] 237 | iOSURLSchemes: [] 238 | iOSBackgroundModes: 0 239 | iOSMetalForceHardShadows: 0 240 | metalEditorSupport: 1 241 | metalAPIValidation: 1 242 | iOSRenderExtraFrameOnPause: 0 243 | appleDeveloperTeamID: 244 | iOSManualSigningProvisioningProfileID: 245 | tvOSManualSigningProvisioningProfileID: 246 | iOSManualSigningProvisioningProfileType: 0 247 | tvOSManualSigningProvisioningProfileType: 0 248 | appleEnableAutomaticSigning: 0 249 | iOSRequireARKit: 0 250 | iOSAutomaticallyDetectAndAddCapabilities: 1 251 | appleEnableProMotion: 0 252 | clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea 253 | templatePackageId: com.unity.template.3d@3.1.0 254 | templateDefaultScene: Assets/Scenes/SampleScene.unity 255 | AndroidTargetArchitectures: 1 256 | AndroidSplashScreenScale: 0 257 | androidSplashScreen: {fileID: 0} 258 | AndroidKeystoreName: '{inproject}: ' 259 | AndroidKeyaliasName: 260 | AndroidBuildApkPerCpuArchitecture: 0 261 | AndroidTVCompatibility: 0 262 | AndroidIsGame: 1 263 | AndroidEnableTango: 0 264 | androidEnableBanner: 1 265 | androidUseLowAccuracyLocation: 0 266 | androidUseCustomKeystore: 0 267 | m_AndroidBanners: 268 | - width: 320 269 | height: 180 270 | banner: {fileID: 0} 271 | androidGamepadSupportLevel: 0 272 | AndroidValidateAppBundleSize: 1 273 | AndroidAppBundleSizeToValidate: 100 274 | resolutionDialogBanner: {fileID: 0} 275 | m_BuildTargetIcons: [] 276 | m_BuildTargetPlatformIcons: [] 277 | m_BuildTargetBatching: 278 | - m_BuildTarget: Standalone 279 | m_StaticBatching: 1 280 | m_DynamicBatching: 0 281 | - m_BuildTarget: tvOS 282 | m_StaticBatching: 1 283 | m_DynamicBatching: 0 284 | - m_BuildTarget: Android 285 | m_StaticBatching: 1 286 | m_DynamicBatching: 0 287 | - m_BuildTarget: iPhone 288 | m_StaticBatching: 1 289 | m_DynamicBatching: 0 290 | - m_BuildTarget: WebGL 291 | m_StaticBatching: 0 292 | m_DynamicBatching: 0 293 | m_BuildTargetGraphicsAPIs: 294 | - m_BuildTarget: AndroidPlayer 295 | m_APIs: 150000000b000000 296 | m_Automatic: 0 297 | - m_BuildTarget: iOSSupport 298 | m_APIs: 10000000 299 | m_Automatic: 1 300 | - m_BuildTarget: AppleTVSupport 301 | m_APIs: 10000000 302 | m_Automatic: 0 303 | - m_BuildTarget: WebGLSupport 304 | m_APIs: 0b000000 305 | m_Automatic: 1 306 | m_BuildTargetVRSettings: 307 | - m_BuildTarget: Standalone 308 | m_Enabled: 0 309 | m_Devices: 310 | - Oculus 311 | - OpenVR 312 | m_BuildTargetEnableVuforiaSettings: [] 313 | openGLRequireES31: 0 314 | openGLRequireES31AEP: 0 315 | openGLRequireES32: 0 316 | m_TemplateCustomTags: {} 317 | mobileMTRendering: 318 | Android: 1 319 | iPhone: 1 320 | tvOS: 1 321 | m_BuildTargetGroupLightmapEncodingQuality: [] 322 | m_BuildTargetGroupLightmapSettings: [] 323 | playModeTestRunnerEnabled: 0 324 | runPlayModeTestAsEditModeTest: 0 325 | actionOnDotNetUnhandledException: 1 326 | enableInternalProfiler: 0 327 | logObjCUncaughtExceptions: 1 328 | enableCrashReportAPI: 0 329 | cameraUsageDescription: 330 | locationUsageDescription: 331 | microphoneUsageDescription: 332 | switchNetLibKey: 333 | switchSocketMemoryPoolSize: 6144 334 | switchSocketAllocatorPoolSize: 128 335 | switchSocketConcurrencyLimit: 14 336 | switchScreenResolutionBehavior: 2 337 | switchUseCPUProfiler: 0 338 | switchApplicationID: 0x01004b9000490000 339 | switchNSODependencies: 340 | switchTitleNames_0: 341 | switchTitleNames_1: 342 | switchTitleNames_2: 343 | switchTitleNames_3: 344 | switchTitleNames_4: 345 | switchTitleNames_5: 346 | switchTitleNames_6: 347 | switchTitleNames_7: 348 | switchTitleNames_8: 349 | switchTitleNames_9: 350 | switchTitleNames_10: 351 | switchTitleNames_11: 352 | switchTitleNames_12: 353 | switchTitleNames_13: 354 | switchTitleNames_14: 355 | switchPublisherNames_0: 356 | switchPublisherNames_1: 357 | switchPublisherNames_2: 358 | switchPublisherNames_3: 359 | switchPublisherNames_4: 360 | switchPublisherNames_5: 361 | switchPublisherNames_6: 362 | switchPublisherNames_7: 363 | switchPublisherNames_8: 364 | switchPublisherNames_9: 365 | switchPublisherNames_10: 366 | switchPublisherNames_11: 367 | switchPublisherNames_12: 368 | switchPublisherNames_13: 369 | switchPublisherNames_14: 370 | switchIcons_0: {fileID: 0} 371 | switchIcons_1: {fileID: 0} 372 | switchIcons_2: {fileID: 0} 373 | switchIcons_3: {fileID: 0} 374 | switchIcons_4: {fileID: 0} 375 | switchIcons_5: {fileID: 0} 376 | switchIcons_6: {fileID: 0} 377 | switchIcons_7: {fileID: 0} 378 | switchIcons_8: {fileID: 0} 379 | switchIcons_9: {fileID: 0} 380 | switchIcons_10: {fileID: 0} 381 | switchIcons_11: {fileID: 0} 382 | switchIcons_12: {fileID: 0} 383 | switchIcons_13: {fileID: 0} 384 | switchIcons_14: {fileID: 0} 385 | switchSmallIcons_0: {fileID: 0} 386 | switchSmallIcons_1: {fileID: 0} 387 | switchSmallIcons_2: {fileID: 0} 388 | switchSmallIcons_3: {fileID: 0} 389 | switchSmallIcons_4: {fileID: 0} 390 | switchSmallIcons_5: {fileID: 0} 391 | switchSmallIcons_6: {fileID: 0} 392 | switchSmallIcons_7: {fileID: 0} 393 | switchSmallIcons_8: {fileID: 0} 394 | switchSmallIcons_9: {fileID: 0} 395 | switchSmallIcons_10: {fileID: 0} 396 | switchSmallIcons_11: {fileID: 0} 397 | switchSmallIcons_12: {fileID: 0} 398 | switchSmallIcons_13: {fileID: 0} 399 | switchSmallIcons_14: {fileID: 0} 400 | switchManualHTML: 401 | switchAccessibleURLs: 402 | switchLegalInformation: 403 | switchMainThreadStackSize: 1048576 404 | switchPresenceGroupId: 405 | switchLogoHandling: 0 406 | switchReleaseVersion: 0 407 | switchDisplayVersion: 1.0.0 408 | switchStartupUserAccount: 0 409 | switchTouchScreenUsage: 0 410 | switchSupportedLanguagesMask: 0 411 | switchLogoType: 0 412 | switchApplicationErrorCodeCategory: 413 | switchUserAccountSaveDataSize: 0 414 | switchUserAccountSaveDataJournalSize: 0 415 | switchApplicationAttribute: 0 416 | switchCardSpecSize: -1 417 | switchCardSpecClock: -1 418 | switchRatingsMask: 0 419 | switchRatingsInt_0: 0 420 | switchRatingsInt_1: 0 421 | switchRatingsInt_2: 0 422 | switchRatingsInt_3: 0 423 | switchRatingsInt_4: 0 424 | switchRatingsInt_5: 0 425 | switchRatingsInt_6: 0 426 | switchRatingsInt_7: 0 427 | switchRatingsInt_8: 0 428 | switchRatingsInt_9: 0 429 | switchRatingsInt_10: 0 430 | switchRatingsInt_11: 0 431 | switchLocalCommunicationIds_0: 432 | switchLocalCommunicationIds_1: 433 | switchLocalCommunicationIds_2: 434 | switchLocalCommunicationIds_3: 435 | switchLocalCommunicationIds_4: 436 | switchLocalCommunicationIds_5: 437 | switchLocalCommunicationIds_6: 438 | switchLocalCommunicationIds_7: 439 | switchParentalControl: 0 440 | switchAllowsScreenshot: 1 441 | switchAllowsVideoCapturing: 1 442 | switchAllowsRuntimeAddOnContentInstall: 0 443 | switchDataLossConfirmation: 0 444 | switchUserAccountLockEnabled: 0 445 | switchSystemResourceMemory: 16777216 446 | switchSupportedNpadStyles: 3 447 | switchNativeFsCacheSize: 32 448 | switchIsHoldTypeHorizontal: 0 449 | switchSupportedNpadCount: 8 450 | switchSocketConfigEnabled: 0 451 | switchTcpInitialSendBufferSize: 32 452 | switchTcpInitialReceiveBufferSize: 64 453 | switchTcpAutoSendBufferSizeMax: 256 454 | switchTcpAutoReceiveBufferSizeMax: 256 455 | switchUdpSendBufferSize: 9 456 | switchUdpReceiveBufferSize: 42 457 | switchSocketBufferEfficiency: 4 458 | switchSocketInitializeEnabled: 1 459 | switchNetworkInterfaceManagerInitializeEnabled: 1 460 | switchPlayerConnectionEnabled: 1 461 | ps4NPAgeRating: 12 462 | ps4NPTitleSecret: 463 | ps4NPTrophyPackPath: 464 | ps4ParentalLevel: 11 465 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 466 | ps4Category: 0 467 | ps4MasterVersion: 01.00 468 | ps4AppVersion: 01.00 469 | ps4AppType: 0 470 | ps4ParamSfxPath: 471 | ps4VideoOutPixelFormat: 0 472 | ps4VideoOutInitialWidth: 1920 473 | ps4VideoOutBaseModeInitialWidth: 1920 474 | ps4VideoOutReprojectionRate: 60 475 | ps4PronunciationXMLPath: 476 | ps4PronunciationSIGPath: 477 | ps4BackgroundImagePath: 478 | ps4StartupImagePath: 479 | ps4StartupImagesFolder: 480 | ps4IconImagesFolder: 481 | ps4SaveDataImagePath: 482 | ps4SdkOverride: 483 | ps4BGMPath: 484 | ps4ShareFilePath: 485 | ps4ShareOverlayImagePath: 486 | ps4PrivacyGuardImagePath: 487 | ps4NPtitleDatPath: 488 | ps4RemotePlayKeyAssignment: -1 489 | ps4RemotePlayKeyMappingDir: 490 | ps4PlayTogetherPlayerCount: 0 491 | ps4EnterButtonAssignment: 1 492 | ps4ApplicationParam1: 0 493 | ps4ApplicationParam2: 0 494 | ps4ApplicationParam3: 0 495 | ps4ApplicationParam4: 0 496 | ps4DownloadDataSize: 0 497 | ps4GarlicHeapSize: 2048 498 | ps4ProGarlicHeapSize: 2560 499 | playerPrefsMaxSize: 32768 500 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 501 | ps4pnSessions: 1 502 | ps4pnPresence: 1 503 | ps4pnFriends: 1 504 | ps4pnGameCustomData: 1 505 | playerPrefsSupport: 0 506 | enableApplicationExit: 0 507 | resetTempFolder: 1 508 | restrictedAudioUsageRights: 0 509 | ps4UseResolutionFallback: 0 510 | ps4ReprojectionSupport: 0 511 | ps4UseAudio3dBackend: 0 512 | ps4SocialScreenEnabled: 0 513 | ps4ScriptOptimizationLevel: 0 514 | ps4Audio3dVirtualSpeakerCount: 14 515 | ps4attribCpuUsage: 0 516 | ps4PatchPkgPath: 517 | ps4PatchLatestPkgPath: 518 | ps4PatchChangeinfoPath: 519 | ps4PatchDayOne: 0 520 | ps4attribUserManagement: 0 521 | ps4attribMoveSupport: 0 522 | ps4attrib3DSupport: 0 523 | ps4attribShareSupport: 0 524 | ps4attribExclusiveVR: 0 525 | ps4disableAutoHideSplash: 0 526 | ps4videoRecordingFeaturesUsed: 0 527 | ps4contentSearchFeaturesUsed: 0 528 | ps4attribEyeToEyeDistanceSettingVR: 0 529 | ps4IncludedModules: [] 530 | monoEnv: 531 | splashScreenBackgroundSourceLandscape: {fileID: 0} 532 | splashScreenBackgroundSourcePortrait: {fileID: 0} 533 | blurSplashScreenBackground: 1 534 | spritePackerPolicy: 535 | webGLMemorySize: 16 536 | webGLExceptionSupport: 1 537 | webGLNameFilesAsHashes: 0 538 | webGLDataCaching: 1 539 | webGLDebugSymbols: 0 540 | webGLEmscriptenArgs: 541 | webGLModulesDirectory: 542 | webGLTemplate: APPLICATION:Default 543 | webGLAnalyzeBuildSize: 0 544 | webGLUseEmbeddedResources: 0 545 | webGLCompressionFormat: 1 546 | webGLLinkerTarget: 1 547 | webGLThreadsSupport: 0 548 | webGLWasmStreaming: 0 549 | scriptingDefineSymbols: {} 550 | platformArchitecture: {} 551 | scriptingBackend: 552 | Standalone: 1 553 | il2cppCompilerConfiguration: {} 554 | managedStrippingLevel: {} 555 | incrementalIl2cppBuild: {} 556 | allowUnsafeCode: 0 557 | additionalIl2CppArgs: 558 | scriptingRuntimeVersion: 1 559 | gcIncremental: 0 560 | gcWBarrierValidation: 0 561 | apiCompatibilityLevelPerPlatform: 562 | Standalone: 3 563 | m_RenderingPath: 1 564 | m_MobileRenderingPath: 1 565 | metroPackageName: Template_3D 566 | metroPackageVersion: 567 | metroCertificatePath: 568 | metroCertificatePassword: 569 | metroCertificateSubject: 570 | metroCertificateIssuer: 571 | metroCertificateNotAfter: 0000000000000000 572 | metroApplicationDescription: Template_3D 573 | wsaImages: {} 574 | metroTileShortName: 575 | metroTileShowName: 0 576 | metroMediumTileShowName: 0 577 | metroLargeTileShowName: 0 578 | metroWideTileShowName: 0 579 | metroSupportStreamingInstall: 0 580 | metroLastRequiredScene: 0 581 | metroDefaultTileSize: 1 582 | metroTileForegroundText: 2 583 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 584 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, 585 | a: 1} 586 | metroSplashScreenUseBackgroundColor: 0 587 | platformCapabilities: {} 588 | metroTargetDeviceFamilies: {} 589 | metroFTAName: 590 | metroFTAFileTypes: [] 591 | metroProtocolName: 592 | XboxOneProductId: 593 | XboxOneUpdateKey: 594 | XboxOneSandboxId: 595 | XboxOneContentId: 596 | XboxOneTitleId: 597 | XboxOneSCId: 598 | XboxOneGameOsOverridePath: 599 | XboxOnePackagingOverridePath: 600 | XboxOneAppManifestOverridePath: 601 | XboxOneVersion: 1.0.0.0 602 | XboxOnePackageEncryption: 0 603 | XboxOnePackageUpdateGranularity: 2 604 | XboxOneDescription: 605 | XboxOneLanguage: 606 | - enus 607 | XboxOneCapability: [] 608 | XboxOneGameRating: {} 609 | XboxOneIsContentPackage: 0 610 | XboxOneEnableGPUVariability: 1 611 | XboxOneSockets: {} 612 | XboxOneSplashScreen: {fileID: 0} 613 | XboxOneAllowedProductIds: [] 614 | XboxOnePersistentLocalStorageSize: 0 615 | XboxOneXTitleMemory: 8 616 | xboxOneScriptCompiler: 1 617 | XboxOneOverrideIdentityName: 618 | vrEditorSettings: 619 | daydream: 620 | daydreamIconForeground: {fileID: 0} 621 | daydreamIconBackground: {fileID: 0} 622 | cloudServicesEnabled: 623 | UNet: 1 624 | luminIcon: 625 | m_Name: 626 | m_ModelFolderPath: 627 | m_PortalFolderPath: 628 | luminCert: 629 | m_CertPath: 630 | m_SignPackage: 1 631 | luminIsChannelApp: 0 632 | luminVersion: 633 | m_VersionCode: 1 634 | m_VersionName: 635 | facebookSdkVersion: 7.9.4 636 | facebookAppId: 637 | facebookCookies: 1 638 | facebookLogging: 1 639 | facebookStatus: 1 640 | facebookXfbml: 0 641 | facebookFrictionlessRequests: 1 642 | apiCompatibilityLevel: 6 643 | cloudProjectId: 644 | framebufferDepthMemorylessMode: 0 645 | projectName: 646 | organizationId: 647 | cloudEnabled: 0 648 | enableNativePlatformBackendsForNewInputSystem: 0 649 | disableOldInputManagerSupport: 0 650 | legacyClampBlendShapeWeights: 1 651 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2019.1.4f1 2 | m_EditorVersionWithRevision: 2019.1.4f1 (ffa3a7a2dd7d) 3 | -------------------------------------------------------------------------------- /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: 5 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Very Low 11 | pixelLightCount: 0 12 | shadows: 0 13 | shadowResolution: 0 14 | shadowProjection: 1 15 | shadowCascades: 1 16 | shadowDistance: 15 17 | shadowNearPlaneOffset: 3 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | shadowmaskMode: 0 21 | blendWeights: 1 22 | textureQuality: 1 23 | anisotropicTextures: 0 24 | antiAliasing: 0 25 | softParticles: 0 26 | softVegetation: 0 27 | realtimeReflectionProbes: 0 28 | billboardsFaceCameraPosition: 0 29 | vSyncCount: 0 30 | lodBias: 0.3 31 | maximumLODLevel: 0 32 | streamingMipmapsActive: 0 33 | streamingMipmapsAddAllCameras: 1 34 | streamingMipmapsMemoryBudget: 512 35 | streamingMipmapsRenderersPerFrame: 512 36 | streamingMipmapsMaxLevelReduction: 2 37 | streamingMipmapsMaxFileIORequests: 1024 38 | particleRaycastBudget: 4 39 | asyncUploadTimeSlice: 2 40 | asyncUploadBufferSize: 16 41 | asyncUploadPersistentBuffer: 1 42 | resolutionScalingFixedDPIFactor: 1 43 | excludedTargetPlatforms: [] 44 | - serializedVersion: 2 45 | name: Low 46 | pixelLightCount: 0 47 | shadows: 0 48 | shadowResolution: 0 49 | shadowProjection: 1 50 | shadowCascades: 1 51 | shadowDistance: 20 52 | shadowNearPlaneOffset: 3 53 | shadowCascade2Split: 0.33333334 54 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 55 | shadowmaskMode: 0 56 | blendWeights: 2 57 | textureQuality: 0 58 | anisotropicTextures: 0 59 | antiAliasing: 0 60 | softParticles: 0 61 | softVegetation: 0 62 | realtimeReflectionProbes: 0 63 | billboardsFaceCameraPosition: 0 64 | vSyncCount: 0 65 | lodBias: 0.4 66 | maximumLODLevel: 0 67 | streamingMipmapsActive: 0 68 | streamingMipmapsAddAllCameras: 1 69 | streamingMipmapsMemoryBudget: 512 70 | streamingMipmapsRenderersPerFrame: 512 71 | streamingMipmapsMaxLevelReduction: 2 72 | streamingMipmapsMaxFileIORequests: 1024 73 | particleRaycastBudget: 16 74 | asyncUploadTimeSlice: 2 75 | asyncUploadBufferSize: 16 76 | asyncUploadPersistentBuffer: 1 77 | resolutionScalingFixedDPIFactor: 1 78 | excludedTargetPlatforms: [] 79 | - serializedVersion: 2 80 | name: Medium 81 | pixelLightCount: 1 82 | shadows: 1 83 | shadowResolution: 0 84 | shadowProjection: 1 85 | shadowCascades: 1 86 | shadowDistance: 20 87 | shadowNearPlaneOffset: 3 88 | shadowCascade2Split: 0.33333334 89 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 90 | shadowmaskMode: 0 91 | blendWeights: 2 92 | textureQuality: 0 93 | anisotropicTextures: 1 94 | antiAliasing: 0 95 | softParticles: 0 96 | softVegetation: 0 97 | realtimeReflectionProbes: 0 98 | billboardsFaceCameraPosition: 0 99 | vSyncCount: 1 100 | lodBias: 0.7 101 | maximumLODLevel: 0 102 | streamingMipmapsActive: 0 103 | streamingMipmapsAddAllCameras: 1 104 | streamingMipmapsMemoryBudget: 512 105 | streamingMipmapsRenderersPerFrame: 512 106 | streamingMipmapsMaxLevelReduction: 2 107 | streamingMipmapsMaxFileIORequests: 1024 108 | particleRaycastBudget: 64 109 | asyncUploadTimeSlice: 2 110 | asyncUploadBufferSize: 16 111 | asyncUploadPersistentBuffer: 1 112 | resolutionScalingFixedDPIFactor: 1 113 | excludedTargetPlatforms: [] 114 | - serializedVersion: 2 115 | name: High 116 | pixelLightCount: 2 117 | shadows: 2 118 | shadowResolution: 1 119 | shadowProjection: 1 120 | shadowCascades: 2 121 | shadowDistance: 40 122 | shadowNearPlaneOffset: 3 123 | shadowCascade2Split: 0.33333334 124 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 125 | shadowmaskMode: 1 126 | blendWeights: 2 127 | textureQuality: 0 128 | anisotropicTextures: 1 129 | antiAliasing: 0 130 | softParticles: 0 131 | softVegetation: 1 132 | realtimeReflectionProbes: 1 133 | billboardsFaceCameraPosition: 1 134 | vSyncCount: 1 135 | lodBias: 1 136 | maximumLODLevel: 0 137 | streamingMipmapsActive: 0 138 | streamingMipmapsAddAllCameras: 1 139 | streamingMipmapsMemoryBudget: 512 140 | streamingMipmapsRenderersPerFrame: 512 141 | streamingMipmapsMaxLevelReduction: 2 142 | streamingMipmapsMaxFileIORequests: 1024 143 | particleRaycastBudget: 256 144 | asyncUploadTimeSlice: 2 145 | asyncUploadBufferSize: 16 146 | asyncUploadPersistentBuffer: 1 147 | resolutionScalingFixedDPIFactor: 1 148 | excludedTargetPlatforms: [] 149 | - serializedVersion: 2 150 | name: Very High 151 | pixelLightCount: 3 152 | shadows: 2 153 | shadowResolution: 2 154 | shadowProjection: 1 155 | shadowCascades: 2 156 | shadowDistance: 70 157 | shadowNearPlaneOffset: 3 158 | shadowCascade2Split: 0.33333334 159 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 160 | shadowmaskMode: 1 161 | blendWeights: 4 162 | textureQuality: 0 163 | anisotropicTextures: 2 164 | antiAliasing: 2 165 | softParticles: 1 166 | softVegetation: 1 167 | realtimeReflectionProbes: 1 168 | billboardsFaceCameraPosition: 1 169 | vSyncCount: 1 170 | lodBias: 1.5 171 | maximumLODLevel: 0 172 | streamingMipmapsActive: 0 173 | streamingMipmapsAddAllCameras: 1 174 | streamingMipmapsMemoryBudget: 512 175 | streamingMipmapsRenderersPerFrame: 512 176 | streamingMipmapsMaxLevelReduction: 2 177 | streamingMipmapsMaxFileIORequests: 1024 178 | particleRaycastBudget: 1024 179 | asyncUploadTimeSlice: 2 180 | asyncUploadBufferSize: 16 181 | asyncUploadPersistentBuffer: 1 182 | resolutionScalingFixedDPIFactor: 1 183 | excludedTargetPlatforms: [] 184 | - serializedVersion: 2 185 | name: Ultra 186 | pixelLightCount: 4 187 | shadows: 2 188 | shadowResolution: 2 189 | shadowProjection: 1 190 | shadowCascades: 4 191 | shadowDistance: 150 192 | shadowNearPlaneOffset: 3 193 | shadowCascade2Split: 0.33333334 194 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 195 | shadowmaskMode: 1 196 | blendWeights: 4 197 | textureQuality: 0 198 | anisotropicTextures: 2 199 | antiAliasing: 2 200 | softParticles: 1 201 | softVegetation: 1 202 | realtimeReflectionProbes: 1 203 | billboardsFaceCameraPosition: 1 204 | vSyncCount: 1 205 | lodBias: 2 206 | maximumLODLevel: 0 207 | streamingMipmapsActive: 0 208 | streamingMipmapsAddAllCameras: 1 209 | streamingMipmapsMemoryBudget: 512 210 | streamingMipmapsRenderersPerFrame: 512 211 | streamingMipmapsMaxLevelReduction: 2 212 | streamingMipmapsMaxFileIORequests: 1024 213 | particleRaycastBudget: 4096 214 | asyncUploadTimeSlice: 2 215 | asyncUploadBufferSize: 16 216 | asyncUploadPersistentBuffer: 1 217 | resolutionScalingFixedDPIFactor: 1 218 | excludedTargetPlatforms: [] 219 | m_PerPlatformDefaultQuality: 220 | Android: 2 221 | Lumin: 5 222 | Nintendo 3DS: 5 223 | Nintendo Switch: 5 224 | PS4: 5 225 | PSP2: 2 226 | Standalone: 5 227 | WebGL: 3 228 | Windows Store Apps: 5 229 | XboxOne: 5 230 | iPhone: 2 231 | tvOS: 2 232 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ProjectSettings/VFXManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!937362698 &1 4 | VFXManager: 5 | m_ObjectHideFlags: 0 6 | m_IndirectShader: {fileID: 0} 7 | m_CopyBufferShader: {fileID: 0} 8 | m_SortShader: {fileID: 0} 9 | m_RenderPipeSettingsPath: 10 | m_FixedTimeStep: 0.016666668 11 | m_MaxDeltaTime: 0.05 12 | -------------------------------------------------------------------------------- /ProjectSettings/XRSettings.asset: -------------------------------------------------------------------------------- 1 | { 2 | "m_SettingKeys": [ 3 | "VR Device Disabled", 4 | "VR Device User Alert" 5 | ], 6 | "m_SettingValues": [ 7 | "False", 8 | "False" 9 | ] 10 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Unity Poisson Blending 2 | 3 | A test of poison blending algorithm (a.k.a Seamless Clone in OpenCV). It can process 800 iterations in 0.35ms on GTX1070 using Compute Shader. 4 | 5 | ![sample image](https://i.imgur.com/GHQQwwr.jpg) 6 | 7 | ## References 8 | - [CS 195-G: Image Blending by Evan Wallace](http://cs.brown.edu/courses/csci1950-g/results/proj2/edwallac/) 9 | --------------------------------------------------------------------------------