├── .gitignore ├── Assets ├── GrassMat.mat ├── GrassMat.mat.meta ├── GrassMeshGen.cs ├── GrassMeshGen.cs.meta ├── GrassUnlitShader.shader ├── GrassUnlitShader.shader.meta ├── Main.unity ├── Main.unity.meta ├── WindCompute.compute └── WindCompute.compute.meta ├── Packages ├── manifest.json └── packages-lock.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 └── img └── grassSwing.gif /.gitignore: -------------------------------------------------------------------------------- 1 | [Ll]ibrary/ 2 | [Tt]emp/ 3 | [Oo]bj/ 4 | [Bb]uild/ 5 | [Bb]uilds/ 6 | [Ll]ogs/ 7 | 8 | # Never ignore Asset meta data 9 | ![Aa]ssets/**/*.meta 10 | 11 | # Uncomment this line if you wish to ignore the asset store tools plugin 12 | # [Aa]ssets/AssetStoreTools* 13 | 14 | # Visual Studio cache directory 15 | .vs/ 16 | 17 | # Gradle cache directory 18 | .gradle/ 19 | 20 | # Autogenerated VS/MD/Consulo solution and project files 21 | ExportedObj/ 22 | .consulo/ 23 | *.csproj 24 | *.unityproj 25 | *.sln 26 | *.suo 27 | *.tmp 28 | *.user 29 | *.userprefs 30 | *.pidb 31 | *.booproj 32 | *.svd 33 | *.pdb 34 | *.mdb 35 | *.opendb 36 | *.VC.db 37 | 38 | # Unity3D generated meta files 39 | *.pidb.meta 40 | *.pdb.meta 41 | *.mdb.meta 42 | 43 | # Unity3D generated file on crash reports 44 | sysinfo.txt 45 | 46 | # Builds 47 | *.apk 48 | *.unitypackage 49 | 50 | # Crashlytics generated file 51 | crashlytics-build.properties 52 | 53 | .DS_Store 54 | -------------------------------------------------------------------------------- /Assets/GrassMat.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: GrassMat 11 | m_Shader: {fileID: 4800000, guid: 80b24c61e39e44e03bb8a75a4f73d30a, type: 3} 12 | m_ShaderKeywords: 13 | m_LightmapFlags: 4 14 | m_EnableInstancingVariants: 0 15 | m_DoubleSidedGI: 0 16 | m_CustomRenderQueue: -1 17 | stringTagMap: {} 18 | disabledShaderPasses: [] 19 | m_SavedProperties: 20 | serializedVersion: 3 21 | m_TexEnvs: 22 | - _BumpMap: 23 | m_Texture: {fileID: 0} 24 | m_Scale: {x: 1, y: 1} 25 | m_Offset: {x: 0, y: 0} 26 | - _DetailAlbedoMap: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - _DetailMask: 31 | m_Texture: {fileID: 0} 32 | m_Scale: {x: 1, y: 1} 33 | m_Offset: {x: 0, y: 0} 34 | - _DetailNormalMap: 35 | m_Texture: {fileID: 0} 36 | m_Scale: {x: 1, y: 1} 37 | m_Offset: {x: 0, y: 0} 38 | - _EmissionMap: 39 | m_Texture: {fileID: 0} 40 | m_Scale: {x: 1, y: 1} 41 | m_Offset: {x: 0, y: 0} 42 | - _MainTex: 43 | m_Texture: {fileID: 0} 44 | m_Scale: {x: 1, y: 1} 45 | m_Offset: {x: 0, y: 0} 46 | - _MetallicGlossMap: 47 | m_Texture: {fileID: 0} 48 | m_Scale: {x: 1, y: 1} 49 | m_Offset: {x: 0, y: 0} 50 | - _OcclusionMap: 51 | m_Texture: {fileID: 0} 52 | m_Scale: {x: 1, y: 1} 53 | m_Offset: {x: 0, y: 0} 54 | - _ParallaxMap: 55 | m_Texture: {fileID: 0} 56 | m_Scale: {x: 1, y: 1} 57 | m_Offset: {x: 0, y: 0} 58 | m_Floats: 59 | - _BumpScale: 1 60 | - _Cutoff: 0.5 61 | - _DetailNormalMapScale: 1 62 | - _DstBlend: 0 63 | - _GlossMapScale: 1 64 | - _Glossiness: 0.5 65 | - _GlossyReflections: 1 66 | - _Metallic: 0 67 | - _Mode: 0 68 | - _OcclusionStrength: 1 69 | - _Parallax: 0.02 70 | - _SmoothnessTextureChannel: 0 71 | - _SpecularHighlights: 1 72 | - _SrcBlend: 1 73 | - _UVSec: 0 74 | - _ZWrite: 1 75 | m_Colors: 76 | - _BottomColor: {r: 0.735849, g: 0.71948665, b: 0.26032394, a: 0} 77 | - _Color: {r: 0.35565197, g: 0.6320754, b: 0.33094516, a: 1} 78 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 79 | - _TopColor: {r: 0.5693544, g: 0.7075472, b: 0.1768868, a: 1} 80 | -------------------------------------------------------------------------------- /Assets/GrassMat.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8108affb83c3b431999128567438e663 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/GrassMeshGen.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | [RequireComponent(typeof(MeshFilter))] 4 | public class GrassMeshGen : MonoBehaviour 5 | { 6 | [Range(0.1f, 1.0f)] 7 | public float width = 0.1f; 8 | [Range(2, 4)] 9 | public int nVertical = 2; 10 | [Range(0.5f, 2f)] 11 | public float maxHeight = 1f; 12 | public float grassRadius = 2f; 13 | [Range(0f, 500f)] 14 | public float grassDensity = 0.1f; 15 | 16 | private Mesh mesh; 17 | private int[] triangles; 18 | // original vertices 19 | private Vector3[] fixedVertices; 20 | // runtime vertices 21 | private Vector3[] vertices; 22 | private Vector2[] uvs; 23 | 24 | 25 | #region Compute Shader 26 | struct VertexData 27 | { 28 | public Vector3 pos; 29 | public float time; 30 | public float vertexLenInv; 31 | }; 32 | 33 | public ComputeShader shader; 34 | private ComputeBuffer buffer; 35 | private VertexData[] output; 36 | private VertexData[] data; 37 | #endregion 38 | 39 | 40 | #region MonoBehaviours 41 | void Start() 42 | { 43 | mesh = new Mesh(); 44 | GetComponent().mesh = mesh; 45 | 46 | CreateMesh(); 47 | UpdateMesh(); 48 | 49 | buffer = new ComputeBuffer(vertices.Length, sizeof(float) * 5); 50 | data = new VertexData[vertices.Length]; 51 | output = new VertexData[vertices.Length]; 52 | 53 | for (int i = 0; i < data.Length; ++i) 54 | { 55 | data[i].pos = vertices[i]; 56 | data[i].time = 0f; 57 | data[i].vertexLenInv = 1.0f / nVertical; 58 | } 59 | } 60 | 61 | // vertex movement with compute shader 62 | void Update() 63 | { 64 | float now = Time.time; 65 | for (int i = 0; i < data.Length; ++i) 66 | { 67 | data[i].time = now; 68 | } 69 | 70 | buffer.SetData(data); 71 | int kernel = shader.FindKernel("Swing"); 72 | shader.SetBuffer(kernel, "dataBuffer", buffer); 73 | shader.Dispatch(kernel, data.Length, 1, 1); 74 | 75 | buffer.GetData(output); 76 | for (int i = 0; i < output.Length; ++i) 77 | { 78 | vertices[i] = output[i].pos; 79 | } 80 | UpdateMesh(); 81 | } 82 | 83 | void OnDisable() 84 | { 85 | if (buffer != null) 86 | buffer.Dispose(); 87 | } 88 | 89 | void UpdateMesh() 90 | { 91 | mesh.Clear(); 92 | mesh.vertices = vertices; 93 | mesh.triangles = triangles; 94 | mesh.uv = uvs; 95 | mesh.RecalculateNormals(); 96 | } 97 | #endregion 98 | 99 | // Generate grass mesh 100 | void CreateMesh() 101 | { 102 | int nGrass = (int)Mathf.Floor(2 * Mathf.PI * grassRadius * grassRadius * grassDensity); 103 | int nVertex = 2 * nVertical + 1; 104 | int nTris = 2 * nVertical - 1; 105 | 106 | float nInverse = 1.0f / nVertical; 107 | Debug.Log("Generate grass: " + nGrass); 108 | 109 | vertices = new Vector3[nVertex * nGrass]; 110 | triangles = new int[nTris * 3 * nGrass]; 111 | uvs = new Vector2[vertices.Length]; 112 | 113 | for (int n = 0; n < nGrass; ++n) 114 | { 115 | float height = Random.Range(maxHeight * .5f, maxHeight); 116 | // vertex 117 | int grassIdx = nVertex * n; 118 | for (int i = 0; i <= nVertical; ++i) 119 | { 120 | // grass width 121 | float w = Mathf.Lerp(width, 0, i * nInverse); 122 | vertices[grassIdx + i * 2] = new Vector3(width - w, height * i, 0); 123 | // only one vertex at top 124 | if (i != nVertical) 125 | vertices[grassIdx + i * 2 + 1] = new Vector3(width, height * i, 0); 126 | } 127 | // triangle 128 | int trisIdx = nTris * 3 * n; 129 | for (int i = 0; i < nTris; i++) 130 | { 131 | triangles[trisIdx + i * 3] = grassIdx + i; 132 | triangles[trisIdx + i * 3 + 1] = grassIdx + i + 1; 133 | triangles[trisIdx + i * 3 + 2] = grassIdx + i + 2; 134 | } 135 | // uv 136 | for (int i = 0; i < uvs.Length; ++i) 137 | { 138 | Vector3 vert = vertices[i]; 139 | uvs[i] = new Vector2(vert.x, vert.y); 140 | } 141 | VertexRotateMove(); 142 | } 143 | Recenter(); 144 | 145 | SetFixedVertices(); 146 | } 147 | 148 | void VertexRotateMove() 149 | { 150 | // uniformly sample in a circle is a math problem! 151 | // https://stackoverflow.com/questions/5837572/generate-a-random-point-within-a-circle-uniformly 152 | 153 | float t = 2 * Mathf.PI * grassRadius; 154 | float u = Random.value + Random.value; 155 | float r = u > 1 ? 2 - u : u; 156 | Vector3 offset = new Vector3(r * Mathf.Cos(t), 0, r * Mathf.Sin(t)); 157 | 158 | // rotate and move vertices 159 | Quaternion rotation = Quaternion.Euler(0, 30, 0); 160 | Matrix4x4 m = Matrix4x4.Rotate(rotation); 161 | 162 | for (int i = 0; i < vertices.Length; ++i) 163 | { 164 | vertices[i] = m.MultiplyPoint3x4(vertices[i]) + offset; 165 | } 166 | } 167 | 168 | void Recenter() 169 | { 170 | Vector3 center = Vector3.zero; 171 | foreach (Vector3 vertex in vertices) 172 | { 173 | center += vertex; 174 | } 175 | center /= vertices.Length; 176 | center.y = 0; 177 | 178 | for (int i = 0; i < vertices.Length; i++) 179 | { 180 | vertices[i] -= center; 181 | } 182 | } 183 | 184 | void SetFixedVertices() 185 | { 186 | fixedVertices = new Vector3[vertices.Length]; 187 | 188 | for (int i = 0; i < vertices.Length; ++i) 189 | fixedVertices[i] = vertices[i]; 190 | } 191 | 192 | //private void OnDrawGizmos() 193 | //{ 194 | // if (vertices == null) return; 195 | // for (int i = 0; i < vertices.Length; ++i) 196 | // { 197 | // Gizmos.DrawSphere(vertices[i], 0.01f); 198 | // } 199 | //} 200 | } 201 | -------------------------------------------------------------------------------- /Assets/GrassMeshGen.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 21a6a89063e714b5ebb0e51e65a21b36 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/GrassUnlitShader.shader: -------------------------------------------------------------------------------- 1 | Shader "Unlit/GrassUnlitShader" 2 | { 3 | Properties 4 | { 5 | _TopColor("Color", Color) = (1,1,1,1) 6 | _BottomColor("Color", Color) = (0,0,0,0) 7 | } 8 | SubShader 9 | { 10 | LOD 100 11 | Cull Off 12 | 13 | Pass 14 | { 15 | Tags 16 | { 17 | "RenderType" = "Opaque" 18 | "LightMode" = "ForwardBase" 19 | } 20 | 21 | CGPROGRAM 22 | #pragma vertex vert 23 | #pragma fragment frag 24 | #pragma multi_compile_fog 25 | 26 | #include "UnityCG.cginc" 27 | #include "Lighting.cginc" 28 | 29 | #pragma multi_compile_fwdbase nolightmap nodirlightmap nodynlightmap novertexlight 30 | #include "AutoLight.cginc" 31 | 32 | struct appdata 33 | { 34 | float4 vertex : POSITION; 35 | float2 uv : TEXCOORD0; 36 | }; 37 | 38 | struct v2f 39 | { 40 | float2 uv : TEXCOORD0; 41 | UNITY_FOG_COORDS(1) 42 | SHADOW_COORDS(1) 43 | float4 pos : SV_POSITION; 44 | }; 45 | 46 | fixed4 _TopColor; 47 | fixed4 _BottomColor; 48 | 49 | v2f vert (appdata v) 50 | { 51 | v2f o; 52 | o.pos = UnityObjectToClipPos(v.vertex); 53 | o.uv = v.uv; 54 | 55 | UNITY_TRANSFER_FOG(o,o.pos); 56 | TRANSFER_SHADOW(o); 57 | 58 | return o; 59 | } 60 | 61 | fixed4 frag (v2f i) : SV_Target 62 | { 63 | fixed shadow = SHADOW_ATTENUATION(i); 64 | fixed4 col = lerp(_BottomColor, _TopColor, i.uv.y) * .7 + shadow * .3; 65 | 66 | UNITY_APPLY_FOG(i.fogCoord, col); 67 | 68 | return col; 69 | } 70 | ENDCG 71 | } 72 | 73 | Pass 74 | { 75 | Tags {"LightMode" = "ShadowCaster"} 76 | 77 | CGPROGRAM 78 | #pragma vertex vert 79 | #pragma fragment frag 80 | #pragma multi_compile_shadowcaster 81 | #include "UnityCG.cginc" 82 | 83 | struct v2f { 84 | V2F_SHADOW_CASTER; 85 | }; 86 | 87 | v2f vert(appdata_base v) 88 | { 89 | v2f o; 90 | TRANSFER_SHADOW_CASTER_NORMALOFFSET(o) 91 | return o; 92 | } 93 | 94 | float4 frag(v2f i) : SV_Target 95 | { 96 | SHADOW_CASTER_FRAGMENT(i) 97 | } 98 | ENDCG 99 | } 100 | } 101 | } 102 | -------------------------------------------------------------------------------- /Assets/GrassUnlitShader.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 80b24c61e39e44e03bb8a75a4f73d30a 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Main.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: 705507994} 41 | m_IndirectSpecularColor: {r: 0.44657838, g: 0.49641234, b: 0.57481676, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 11 47 | m_GIWorkflowMode: 0 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: 500 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 500 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 2 83 | m_PVRDenoiserTypeDirect: 0 84 | m_PVRDenoiserTypeIndirect: 0 85 | m_PVRDenoiserTypeAO: 0 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 0 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_ExportTrainingData: 0 98 | m_TrainingDataDestination: TrainingData 99 | m_LightProbeSampleCountMultiplier: 4 100 | m_LightingDataAsset: {fileID: 0} 101 | m_UseShadowmask: 1 102 | --- !u!196 &4 103 | NavMeshSettings: 104 | serializedVersion: 2 105 | m_ObjectHideFlags: 0 106 | m_BuildSettings: 107 | serializedVersion: 2 108 | agentTypeID: 0 109 | agentRadius: 0.5 110 | agentHeight: 2 111 | agentSlope: 45 112 | agentClimb: 0.4 113 | ledgeDropHeight: 0 114 | maxJumpAcrossDistance: 0 115 | minRegionArea: 2 116 | manualCellSize: 0 117 | cellSize: 0.16666667 118 | manualTileSize: 0 119 | tileSize: 256 120 | accuratePlacement: 0 121 | debug: 122 | m_Flags: 0 123 | m_NavMeshData: {fileID: 0} 124 | --- !u!1 &705507993 125 | GameObject: 126 | m_ObjectHideFlags: 0 127 | m_CorrespondingSourceObject: {fileID: 0} 128 | m_PrefabInstance: {fileID: 0} 129 | m_PrefabAsset: {fileID: 0} 130 | serializedVersion: 6 131 | m_Component: 132 | - component: {fileID: 705507995} 133 | - component: {fileID: 705507994} 134 | m_Layer: 0 135 | m_Name: Directional Light 136 | m_TagString: Untagged 137 | m_Icon: {fileID: 0} 138 | m_NavMeshLayer: 0 139 | m_StaticEditorFlags: 0 140 | m_IsActive: 1 141 | --- !u!108 &705507994 142 | Light: 143 | m_ObjectHideFlags: 0 144 | m_CorrespondingSourceObject: {fileID: 0} 145 | m_PrefabInstance: {fileID: 0} 146 | m_PrefabAsset: {fileID: 0} 147 | m_GameObject: {fileID: 705507993} 148 | m_Enabled: 1 149 | serializedVersion: 10 150 | m_Type: 1 151 | m_Shape: 0 152 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 153 | m_Intensity: 0.5 154 | m_Range: 10 155 | m_SpotAngle: 30 156 | m_InnerSpotAngle: 21.802082 157 | m_CookieSize: 10 158 | m_Shadows: 159 | m_Type: 2 160 | m_Resolution: -1 161 | m_CustomResolution: -1 162 | m_Strength: 1 163 | m_Bias: 0.05 164 | m_NormalBias: 0.4 165 | m_NearPlane: 0.2 166 | m_CullingMatrixOverride: 167 | e00: 1 168 | e01: 0 169 | e02: 0 170 | e03: 0 171 | e10: 0 172 | e11: 1 173 | e12: 0 174 | e13: 0 175 | e20: 0 176 | e21: 0 177 | e22: 1 178 | e23: 0 179 | e30: 0 180 | e31: 0 181 | e32: 0 182 | e33: 1 183 | m_UseCullingMatrixOverride: 0 184 | m_Cookie: {fileID: 0} 185 | m_DrawHalo: 0 186 | m_Flare: {fileID: 0} 187 | m_RenderMode: 0 188 | m_CullingMask: 189 | serializedVersion: 2 190 | m_Bits: 4294967295 191 | m_RenderingLayerMask: 1 192 | m_Lightmapping: 1 193 | m_LightShadowCasterMode: 0 194 | m_AreaSize: {x: 1, y: 1} 195 | m_BounceIntensity: 1 196 | m_ColorTemperature: 6570 197 | m_UseColorTemperature: 0 198 | m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} 199 | m_UseBoundingSphereOverride: 0 200 | m_ShadowRadius: 0 201 | m_ShadowAngle: 0 202 | --- !u!4 &705507995 203 | Transform: 204 | m_ObjectHideFlags: 0 205 | m_CorrespondingSourceObject: {fileID: 0} 206 | m_PrefabInstance: {fileID: 0} 207 | m_PrefabAsset: {fileID: 0} 208 | m_GameObject: {fileID: 705507993} 209 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 210 | m_LocalPosition: {x: 0, y: 3, z: 0} 211 | m_LocalScale: {x: 1, y: 1, z: 1} 212 | m_Children: [] 213 | m_Father: {fileID: 0} 214 | m_RootOrder: 1 215 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 216 | --- !u!1 &830934772 217 | GameObject: 218 | m_ObjectHideFlags: 0 219 | m_CorrespondingSourceObject: {fileID: 0} 220 | m_PrefabInstance: {fileID: 0} 221 | m_PrefabAsset: {fileID: 0} 222 | serializedVersion: 6 223 | m_Component: 224 | - component: {fileID: 830934773} 225 | - component: {fileID: 830934775} 226 | - component: {fileID: 830934774} 227 | - component: {fileID: 830934776} 228 | m_Layer: 0 229 | m_Name: GrassMesh 230 | m_TagString: Untagged 231 | m_Icon: {fileID: 0} 232 | m_NavMeshLayer: 0 233 | m_StaticEditorFlags: 0 234 | m_IsActive: 1 235 | --- !u!4 &830934773 236 | Transform: 237 | m_ObjectHideFlags: 0 238 | m_CorrespondingSourceObject: {fileID: 0} 239 | m_PrefabInstance: {fileID: 0} 240 | m_PrefabAsset: {fileID: 0} 241 | m_GameObject: {fileID: 830934772} 242 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 243 | m_LocalPosition: {x: 0, y: 0, z: 0} 244 | m_LocalScale: {x: 1, y: 1, z: 1} 245 | m_Children: [] 246 | m_Father: {fileID: 1964593946} 247 | m_RootOrder: 0 248 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 249 | --- !u!33 &830934774 250 | MeshFilter: 251 | m_ObjectHideFlags: 0 252 | m_CorrespondingSourceObject: {fileID: 0} 253 | m_PrefabInstance: {fileID: 0} 254 | m_PrefabAsset: {fileID: 0} 255 | m_GameObject: {fileID: 830934772} 256 | m_Mesh: {fileID: 0} 257 | --- !u!23 &830934775 258 | MeshRenderer: 259 | m_ObjectHideFlags: 0 260 | m_CorrespondingSourceObject: {fileID: 0} 261 | m_PrefabInstance: {fileID: 0} 262 | m_PrefabAsset: {fileID: 0} 263 | m_GameObject: {fileID: 830934772} 264 | m_Enabled: 1 265 | m_CastShadows: 1 266 | m_ReceiveShadows: 1 267 | m_DynamicOccludee: 1 268 | m_MotionVectors: 1 269 | m_LightProbeUsage: 1 270 | m_ReflectionProbeUsage: 1 271 | m_RayTracingMode: 2 272 | m_RenderingLayerMask: 1 273 | m_RendererPriority: 0 274 | m_Materials: 275 | - {fileID: 2100000, guid: 8108affb83c3b431999128567438e663, type: 2} 276 | m_StaticBatchInfo: 277 | firstSubMesh: 0 278 | subMeshCount: 0 279 | m_StaticBatchRoot: {fileID: 0} 280 | m_ProbeAnchor: {fileID: 0} 281 | m_LightProbeVolumeOverride: {fileID: 0} 282 | m_ScaleInLightmap: 1 283 | m_ReceiveGI: 1 284 | m_PreserveUVs: 0 285 | m_IgnoreNormalsForChartDetection: 0 286 | m_ImportantGI: 0 287 | m_StitchLightmapSeams: 1 288 | m_SelectedEditorRenderState: 3 289 | m_MinimumChartSize: 4 290 | m_AutoUVMaxDistance: 0.5 291 | m_AutoUVMaxAngle: 89 292 | m_LightmapParameters: {fileID: 0} 293 | m_SortingLayerID: 0 294 | m_SortingLayer: 0 295 | m_SortingOrder: 0 296 | --- !u!114 &830934776 297 | MonoBehaviour: 298 | m_ObjectHideFlags: 0 299 | m_CorrespondingSourceObject: {fileID: 0} 300 | m_PrefabInstance: {fileID: 0} 301 | m_PrefabAsset: {fileID: 0} 302 | m_GameObject: {fileID: 830934772} 303 | m_Enabled: 1 304 | m_EditorHideFlags: 0 305 | m_Script: {fileID: 11500000, guid: 21a6a89063e714b5ebb0e51e65a21b36, type: 3} 306 | m_Name: 307 | m_EditorClassIdentifier: 308 | width: 0.2 309 | nVertical: 4 310 | maxHeight: 1.25 311 | grassRadius: 1 312 | grassDensity: 12 313 | shader: {fileID: 7200000, guid: 83073b03681d848b8a3592390de95ccd, type: 3} 314 | --- !u!1 &963194225 315 | GameObject: 316 | m_ObjectHideFlags: 0 317 | m_CorrespondingSourceObject: {fileID: 0} 318 | m_PrefabInstance: {fileID: 0} 319 | m_PrefabAsset: {fileID: 0} 320 | serializedVersion: 6 321 | m_Component: 322 | - component: {fileID: 963194228} 323 | - component: {fileID: 963194227} 324 | m_Layer: 0 325 | m_Name: Main Camera 326 | m_TagString: MainCamera 327 | m_Icon: {fileID: 0} 328 | m_NavMeshLayer: 0 329 | m_StaticEditorFlags: 0 330 | m_IsActive: 1 331 | --- !u!20 &963194227 332 | Camera: 333 | m_ObjectHideFlags: 0 334 | m_CorrespondingSourceObject: {fileID: 0} 335 | m_PrefabInstance: {fileID: 0} 336 | m_PrefabAsset: {fileID: 0} 337 | m_GameObject: {fileID: 963194225} 338 | m_Enabled: 1 339 | serializedVersion: 2 340 | m_ClearFlags: 2 341 | m_BackGroundColor: {r: 0.61449087, g: 0.5741812, b: 0.6509434, a: 0} 342 | m_projectionMatrixMode: 1 343 | m_GateFitMode: 2 344 | m_FOVAxisMode: 0 345 | m_SensorSize: {x: 36, y: 24} 346 | m_LensShift: {x: 0, y: 0} 347 | m_FocalLength: 50 348 | m_NormalizedViewPortRect: 349 | serializedVersion: 2 350 | x: 0 351 | y: 0 352 | width: 1 353 | height: 1 354 | near clip plane: 0.3 355 | far clip plane: 1000 356 | field of view: 60 357 | orthographic: 0 358 | orthographic size: 5 359 | m_Depth: -1 360 | m_CullingMask: 361 | serializedVersion: 2 362 | m_Bits: 4294967295 363 | m_RenderingPath: -1 364 | m_TargetTexture: {fileID: 0} 365 | m_TargetDisplay: 0 366 | m_TargetEye: 3 367 | m_HDR: 1 368 | m_AllowMSAA: 1 369 | m_AllowDynamicResolution: 0 370 | m_ForceIntoRT: 0 371 | m_OcclusionCulling: 1 372 | m_StereoConvergence: 10 373 | m_StereoSeparation: 0.022 374 | --- !u!4 &963194228 375 | Transform: 376 | m_ObjectHideFlags: 0 377 | m_CorrespondingSourceObject: {fileID: 0} 378 | m_PrefabInstance: {fileID: 0} 379 | m_PrefabAsset: {fileID: 0} 380 | m_GameObject: {fileID: 963194225} 381 | m_LocalRotation: {x: 0, y: 0.9659258, z: -0.2588191, w: 0} 382 | m_LocalPosition: {x: 0, y: 6.67, z: 9.58} 383 | m_LocalScale: {x: 1, y: 1, z: 1} 384 | m_Children: [] 385 | m_Father: {fileID: 0} 386 | m_RootOrder: 0 387 | m_LocalEulerAnglesHint: {x: 30, y: 180, z: 0} 388 | --- !u!1 &1183998549 389 | GameObject: 390 | m_ObjectHideFlags: 0 391 | m_CorrespondingSourceObject: {fileID: 0} 392 | m_PrefabInstance: {fileID: 0} 393 | m_PrefabAsset: {fileID: 0} 394 | serializedVersion: 6 395 | m_Component: 396 | - component: {fileID: 1183998550} 397 | - component: {fileID: 1183998553} 398 | - component: {fileID: 1183998552} 399 | - component: {fileID: 1183998551} 400 | m_Layer: 0 401 | m_Name: Plane 402 | m_TagString: Untagged 403 | m_Icon: {fileID: 0} 404 | m_NavMeshLayer: 0 405 | m_StaticEditorFlags: 0 406 | m_IsActive: 1 407 | --- !u!4 &1183998550 408 | Transform: 409 | m_ObjectHideFlags: 0 410 | m_CorrespondingSourceObject: {fileID: 0} 411 | m_PrefabInstance: {fileID: 0} 412 | m_PrefabAsset: {fileID: 0} 413 | m_GameObject: {fileID: 1183998549} 414 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 415 | m_LocalPosition: {x: 0, y: 0, z: 0} 416 | m_LocalScale: {x: 1, y: 1, z: 1} 417 | m_Children: [] 418 | m_Father: {fileID: 1964593946} 419 | m_RootOrder: 1 420 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 421 | --- !u!64 &1183998551 422 | MeshCollider: 423 | m_ObjectHideFlags: 0 424 | m_CorrespondingSourceObject: {fileID: 0} 425 | m_PrefabInstance: {fileID: 0} 426 | m_PrefabAsset: {fileID: 0} 427 | m_GameObject: {fileID: 1183998549} 428 | m_Material: {fileID: 0} 429 | m_IsTrigger: 0 430 | m_Enabled: 1 431 | serializedVersion: 4 432 | m_Convex: 0 433 | m_CookingOptions: 30 434 | m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} 435 | --- !u!23 &1183998552 436 | MeshRenderer: 437 | m_ObjectHideFlags: 0 438 | m_CorrespondingSourceObject: {fileID: 0} 439 | m_PrefabInstance: {fileID: 0} 440 | m_PrefabAsset: {fileID: 0} 441 | m_GameObject: {fileID: 1183998549} 442 | m_Enabled: 1 443 | m_CastShadows: 1 444 | m_ReceiveShadows: 1 445 | m_DynamicOccludee: 1 446 | m_MotionVectors: 1 447 | m_LightProbeUsage: 1 448 | m_ReflectionProbeUsage: 1 449 | m_RayTracingMode: 2 450 | m_RenderingLayerMask: 1 451 | m_RendererPriority: 0 452 | m_Materials: 453 | - {fileID: 2100000, guid: 8108affb83c3b431999128567438e663, type: 2} 454 | m_StaticBatchInfo: 455 | firstSubMesh: 0 456 | subMeshCount: 0 457 | m_StaticBatchRoot: {fileID: 0} 458 | m_ProbeAnchor: {fileID: 0} 459 | m_LightProbeVolumeOverride: {fileID: 0} 460 | m_ScaleInLightmap: 1 461 | m_ReceiveGI: 1 462 | m_PreserveUVs: 0 463 | m_IgnoreNormalsForChartDetection: 0 464 | m_ImportantGI: 0 465 | m_StitchLightmapSeams: 1 466 | m_SelectedEditorRenderState: 3 467 | m_MinimumChartSize: 4 468 | m_AutoUVMaxDistance: 0.5 469 | m_AutoUVMaxAngle: 89 470 | m_LightmapParameters: {fileID: 0} 471 | m_SortingLayerID: 0 472 | m_SortingLayer: 0 473 | m_SortingOrder: 0 474 | --- !u!33 &1183998553 475 | MeshFilter: 476 | m_ObjectHideFlags: 0 477 | m_CorrespondingSourceObject: {fileID: 0} 478 | m_PrefabInstance: {fileID: 0} 479 | m_PrefabAsset: {fileID: 0} 480 | m_GameObject: {fileID: 1183998549} 481 | m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} 482 | --- !u!1 &1964593945 483 | GameObject: 484 | m_ObjectHideFlags: 0 485 | m_CorrespondingSourceObject: {fileID: 0} 486 | m_PrefabInstance: {fileID: 0} 487 | m_PrefabAsset: {fileID: 0} 488 | serializedVersion: 6 489 | m_Component: 490 | - component: {fileID: 1964593946} 491 | m_Layer: 0 492 | m_Name: Grass 493 | m_TagString: Untagged 494 | m_Icon: {fileID: 0} 495 | m_NavMeshLayer: 0 496 | m_StaticEditorFlags: 0 497 | m_IsActive: 1 498 | --- !u!4 &1964593946 499 | Transform: 500 | m_ObjectHideFlags: 0 501 | m_CorrespondingSourceObject: {fileID: 0} 502 | m_PrefabInstance: {fileID: 0} 503 | m_PrefabAsset: {fileID: 0} 504 | m_GameObject: {fileID: 1964593945} 505 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 506 | m_LocalPosition: {x: 0, y: 0, z: 0} 507 | m_LocalScale: {x: 1, y: 1, z: 1} 508 | m_Children: 509 | - {fileID: 830934773} 510 | - {fileID: 1183998550} 511 | m_Father: {fileID: 0} 512 | m_RootOrder: 2 513 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 514 | -------------------------------------------------------------------------------- /Assets/Main.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9fc0d4010bbf28b4594072e72b8655ab 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/WindCompute.compute: -------------------------------------------------------------------------------- 1 | #pragma kernel Swing 2 | 3 | // 4 | // Noise Shader Library for Unity - https://github.com/keijiro/NoiseShader 5 | // 6 | float3 mod289(float3 x) 7 | { 8 | return x - floor(x / 289.0) * 289.0; 9 | } 10 | 11 | float4 mod289(float4 x) 12 | { 13 | return x - floor(x / 289.0) * 289.0; 14 | } 15 | 16 | float4 permute(float4 x) 17 | { 18 | return mod289((x * 34.0 + 1.0) * x); 19 | } 20 | 21 | float4 taylorInvSqrt(float4 r) 22 | { 23 | return 1.79284291400159 - r * 0.85373472095314; 24 | } 25 | 26 | float snoise(float3 v) 27 | { 28 | const float2 C = float2(1.0 / 6.0, 1.0 / 3.0); 29 | 30 | float3 i = floor(v + dot(v, C.yyy)); 31 | float3 x0 = v - i + dot(i, C.xxx); 32 | 33 | float3 g = step(x0.yzx, x0.xyz); 34 | float3 l = 1.0 - g; 35 | float3 i1 = min(g.xyz, l.zxy); 36 | float3 i2 = max(g.xyz, l.zxy); 37 | 38 | float3 x1 = x0 - i1 + C.xxx; 39 | float3 x2 = x0 - i2 + C.yyy; 40 | float3 x3 = x0 - 0.5; 41 | 42 | i = mod289(i); 43 | float4 p = 44 | permute(permute(permute(i.z + float4(0.0, i1.z, i2.z, 1.0)) 45 | + i.y + float4(0.0, i1.y, i2.y, 1.0)) 46 | + i.x + float4(0.0, i1.x, i2.x, 1.0)); 47 | 48 | float4 j = p - 49.0 * floor(p / 49.0); 49 | 50 | float4 x_ = floor(j / 7.0); 51 | float4 y_ = floor(j - 7.0 * x_); 52 | 53 | float4 x = (x_ * 2.0 + 0.5) / 7.0 - 1.0; 54 | float4 y = (y_ * 2.0 + 0.5) / 7.0 - 1.0; 55 | 56 | float4 h = 1.0 - abs(x) - abs(y); 57 | 58 | float4 b0 = float4(x.xy, y.xy); 59 | float4 b1 = float4(x.zw, y.zw); 60 | 61 | float4 s0 = floor(b0) * 2.0 + 1.0; 62 | float4 s1 = floor(b1) * 2.0 + 1.0; 63 | float4 sh = -step(h, 0.0); 64 | 65 | float4 a0 = b0.xzyw + s0.xzyw * sh.xxyy; 66 | float4 a1 = b1.xzyw + s1.xzyw * sh.zzww; 67 | 68 | float3 g0 = float3(a0.xy, h.x); 69 | float3 g1 = float3(a0.zw, h.y); 70 | float3 g2 = float3(a1.xy, h.z); 71 | float3 g3 = float3(a1.zw, h.w); 72 | 73 | float4 norm = taylorInvSqrt(float4(dot(g0, g0), dot(g1, g1), dot(g2, g2), dot(g3, g3))); 74 | g0 *= norm.x; 75 | g1 *= norm.y; 76 | g2 *= norm.z; 77 | g3 *= norm.w; 78 | 79 | float4 m = max(0.6 - float4(dot(x0, x0), dot(x1, x1), dot(x2, x2), dot(x3, x3)), 0.0); 80 | m = m * m; 81 | m = m * m; 82 | 83 | float4 px = float4(dot(x0, g0), dot(x1, g1), dot(x2, g2), dot(x3, g3)); 84 | return 42.0 * dot(m, px); 85 | } 86 | 87 | float4 snoise_grad(float3 v) 88 | { 89 | const float2 C = float2(1.0 / 6.0, 1.0 / 3.0); 90 | 91 | float3 i = floor(v + dot(v, C.yyy)); 92 | float3 x0 = v - i + dot(i, C.xxx); 93 | 94 | float3 g = step(x0.yzx, x0.xyz); 95 | float3 l = 1.0 - g; 96 | float3 i1 = min(g.xyz, l.zxy); 97 | float3 i2 = max(g.xyz, l.zxy); 98 | 99 | float3 x1 = x0 - i1 + C.xxx; 100 | float3 x2 = x0 - i2 + C.yyy; 101 | float3 x3 = x0 - 0.5; 102 | 103 | i = mod289(i); 104 | float4 p = 105 | permute(permute(permute(i.z + float4(0.0, i1.z, i2.z, 1.0)) 106 | + i.y + float4(0.0, i1.y, i2.y, 1.0)) 107 | + i.x + float4(0.0, i1.x, i2.x, 1.0)); 108 | 109 | float4 j = p - 49.0 * floor(p / 49.0); 110 | 111 | float4 x_ = floor(j / 7.0); 112 | float4 y_ = floor(j - 7.0 * x_); 113 | 114 | float4 x = (x_ * 2.0 + 0.5) / 7.0 - 1.0; 115 | float4 y = (y_ * 2.0 + 0.5) / 7.0 - 1.0; 116 | 117 | float4 h = 1.0 - abs(x) - abs(y); 118 | 119 | float4 b0 = float4(x.xy, y.xy); 120 | float4 b1 = float4(x.zw, y.zw); 121 | 122 | float4 s0 = floor(b0) * 2.0 + 1.0; 123 | float4 s1 = floor(b1) * 2.0 + 1.0; 124 | float4 sh = -step(h, 0.0); 125 | 126 | float4 a0 = b0.xzyw + s0.xzyw * sh.xxyy; 127 | float4 a1 = b1.xzyw + s1.xzyw * sh.zzww; 128 | 129 | float3 g0 = float3(a0.xy, h.x); 130 | float3 g1 = float3(a0.zw, h.y); 131 | float3 g2 = float3(a1.xy, h.z); 132 | float3 g3 = float3(a1.zw, h.w); 133 | 134 | float4 norm = taylorInvSqrt(float4(dot(g0, g0), dot(g1, g1), dot(g2, g2), dot(g3, g3))); 135 | g0 *= norm.x; 136 | g1 *= norm.y; 137 | g2 *= norm.z; 138 | g3 *= norm.w; 139 | 140 | float4 m = max(0.6 - float4(dot(x0, x0), dot(x1, x1), dot(x2, x2), dot(x3, x3)), 0.0); 141 | float4 m2 = m * m; 142 | float4 m3 = m2 * m; 143 | float4 m4 = m2 * m2; 144 | float3 grad = 145 | -6.0 * m3.x * x0 * dot(x0, g0) + m4.x * g0 + 146 | -6.0 * m3.y * x1 * dot(x1, g1) + m4.y * g1 + 147 | -6.0 * m3.z * x2 * dot(x2, g2) + m4.z * g2 + 148 | -6.0 * m3.w * x3 * dot(x3, g3) + m4.w * g3; 149 | float4 px = float4(dot(x0, g0), dot(x1, g1), dot(x2, g2), dot(x3, g3)); 150 | return 42.0 * float4(grad, dot(m4, px)); 151 | } 152 | 153 | // 154 | // Wind Swing 155 | // 156 | struct VertexData 157 | { 158 | float3 pos; 159 | float time; 160 | float vertexLenInv; 161 | }; 162 | 163 | RWStructuredBuffer dataBuffer; 164 | 165 | [numthreads(8,1,1)] 166 | void Swing (uint3 id : SV_DispatchThreadID) 167 | { 168 | VertexData data = dataBuffer[id.x]; 169 | float _y = data.pos.y * data.vertexLenInv; 170 | //float posX = sin(data.time) * _y * _y; 171 | float posX = snoise(data.pos.xzz + data.time * .2) * _y * _y; 172 | dataBuffer[id.x].pos = float3(posX + data.pos.x, data.pos.y, data.pos.z); 173 | } 174 | -------------------------------------------------------------------------------- /Assets/WindCompute.compute.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 83073b03681d848b8a3592390de95ccd 3 | ComputeShaderImporter: 4 | externalObjects: {} 5 | currentAPIMask: 65536 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.collab-proxy": "1.2.16", 4 | "com.unity.ext.nunit": "1.0.0", 5 | "com.unity.ide.rider": "1.1.4", 6 | "com.unity.ide.vscode": "1.2.1", 7 | "com.unity.test-framework": "1.1.16", 8 | "com.unity.textmeshpro": "2.0.1", 9 | "com.unity.timeline": "1.2.6", 10 | "com.unity.ugui": "1.0.0", 11 | "com.unity.modules.ai": "1.0.0", 12 | "com.unity.modules.androidjni": "1.0.0", 13 | "com.unity.modules.animation": "1.0.0", 14 | "com.unity.modules.assetbundle": "1.0.0", 15 | "com.unity.modules.audio": "1.0.0", 16 | "com.unity.modules.cloth": "1.0.0", 17 | "com.unity.modules.director": "1.0.0", 18 | "com.unity.modules.imageconversion": "1.0.0", 19 | "com.unity.modules.imgui": "1.0.0", 20 | "com.unity.modules.jsonserialize": "1.0.0", 21 | "com.unity.modules.particlesystem": "1.0.0", 22 | "com.unity.modules.physics": "1.0.0", 23 | "com.unity.modules.physics2d": "1.0.0", 24 | "com.unity.modules.screencapture": "1.0.0", 25 | "com.unity.modules.terrain": "1.0.0", 26 | "com.unity.modules.terrainphysics": "1.0.0", 27 | "com.unity.modules.tilemap": "1.0.0", 28 | "com.unity.modules.ui": "1.0.0", 29 | "com.unity.modules.uielements": "1.0.0", 30 | "com.unity.modules.umbra": "1.0.0", 31 | "com.unity.modules.unityanalytics": "1.0.0", 32 | "com.unity.modules.unitywebrequest": "1.0.0", 33 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 34 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 35 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 36 | "com.unity.modules.unitywebrequestwww": "1.0.0", 37 | "com.unity.modules.vehicles": "1.0.0", 38 | "com.unity.modules.video": "1.0.0", 39 | "com.unity.modules.vr": "1.0.0", 40 | "com.unity.modules.wind": "1.0.0", 41 | "com.unity.modules.xr": "1.0.0" 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /Packages/packages-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.collab-proxy": { 4 | "version": "1.2.16", 5 | "depth": 0, 6 | "source": "registry", 7 | "dependencies": {}, 8 | "url": "https://packages.unity.cn" 9 | }, 10 | "com.unity.ext.nunit": { 11 | "version": "1.0.0", 12 | "depth": 0, 13 | "source": "registry", 14 | "dependencies": {}, 15 | "url": "https://packages.unity.cn" 16 | }, 17 | "com.unity.ide.rider": { 18 | "version": "1.1.4", 19 | "depth": 0, 20 | "source": "registry", 21 | "dependencies": { 22 | "com.unity.test-framework": "1.1.1" 23 | }, 24 | "url": "https://packages.unity.cn" 25 | }, 26 | "com.unity.ide.vscode": { 27 | "version": "1.2.1", 28 | "depth": 0, 29 | "source": "registry", 30 | "dependencies": {}, 31 | "url": "https://packages.unity.cn" 32 | }, 33 | "com.unity.test-framework": { 34 | "version": "1.1.16", 35 | "depth": 0, 36 | "source": "registry", 37 | "dependencies": { 38 | "com.unity.ext.nunit": "1.0.0", 39 | "com.unity.modules.imgui": "1.0.0", 40 | "com.unity.modules.jsonserialize": "1.0.0" 41 | }, 42 | "url": "https://packages.unity.cn" 43 | }, 44 | "com.unity.textmeshpro": { 45 | "version": "2.0.1", 46 | "depth": 0, 47 | "source": "registry", 48 | "dependencies": { 49 | "com.unity.ugui": "1.0.0" 50 | }, 51 | "url": "https://packages.unity.cn" 52 | }, 53 | "com.unity.timeline": { 54 | "version": "1.2.6", 55 | "depth": 0, 56 | "source": "registry", 57 | "dependencies": {}, 58 | "url": "https://packages.unity.cn" 59 | }, 60 | "com.unity.ugui": { 61 | "version": "1.0.0", 62 | "depth": 0, 63 | "source": "builtin", 64 | "dependencies": { 65 | "com.unity.modules.ui": "1.0.0", 66 | "com.unity.modules.imgui": "1.0.0" 67 | } 68 | }, 69 | "com.unity.modules.ai": { 70 | "version": "1.0.0", 71 | "depth": 0, 72 | "source": "builtin", 73 | "dependencies": {} 74 | }, 75 | "com.unity.modules.androidjni": { 76 | "version": "1.0.0", 77 | "depth": 0, 78 | "source": "builtin", 79 | "dependencies": {} 80 | }, 81 | "com.unity.modules.animation": { 82 | "version": "1.0.0", 83 | "depth": 0, 84 | "source": "builtin", 85 | "dependencies": {} 86 | }, 87 | "com.unity.modules.assetbundle": { 88 | "version": "1.0.0", 89 | "depth": 0, 90 | "source": "builtin", 91 | "dependencies": {} 92 | }, 93 | "com.unity.modules.audio": { 94 | "version": "1.0.0", 95 | "depth": 0, 96 | "source": "builtin", 97 | "dependencies": {} 98 | }, 99 | "com.unity.modules.cloth": { 100 | "version": "1.0.0", 101 | "depth": 0, 102 | "source": "builtin", 103 | "dependencies": { 104 | "com.unity.modules.physics": "1.0.0" 105 | } 106 | }, 107 | "com.unity.modules.director": { 108 | "version": "1.0.0", 109 | "depth": 0, 110 | "source": "builtin", 111 | "dependencies": { 112 | "com.unity.modules.audio": "1.0.0", 113 | "com.unity.modules.animation": "1.0.0" 114 | } 115 | }, 116 | "com.unity.modules.imageconversion": { 117 | "version": "1.0.0", 118 | "depth": 0, 119 | "source": "builtin", 120 | "dependencies": {} 121 | }, 122 | "com.unity.modules.imgui": { 123 | "version": "1.0.0", 124 | "depth": 0, 125 | "source": "builtin", 126 | "dependencies": {} 127 | }, 128 | "com.unity.modules.jsonserialize": { 129 | "version": "1.0.0", 130 | "depth": 0, 131 | "source": "builtin", 132 | "dependencies": {} 133 | }, 134 | "com.unity.modules.particlesystem": { 135 | "version": "1.0.0", 136 | "depth": 0, 137 | "source": "builtin", 138 | "dependencies": {} 139 | }, 140 | "com.unity.modules.physics": { 141 | "version": "1.0.0", 142 | "depth": 0, 143 | "source": "builtin", 144 | "dependencies": {} 145 | }, 146 | "com.unity.modules.physics2d": { 147 | "version": "1.0.0", 148 | "depth": 0, 149 | "source": "builtin", 150 | "dependencies": {} 151 | }, 152 | "com.unity.modules.screencapture": { 153 | "version": "1.0.0", 154 | "depth": 0, 155 | "source": "builtin", 156 | "dependencies": { 157 | "com.unity.modules.imageconversion": "1.0.0" 158 | } 159 | }, 160 | "com.unity.modules.subsystems": { 161 | "version": "1.0.0", 162 | "depth": 1, 163 | "source": "builtin", 164 | "dependencies": { 165 | "com.unity.modules.jsonserialize": "1.0.0" 166 | } 167 | }, 168 | "com.unity.modules.terrain": { 169 | "version": "1.0.0", 170 | "depth": 0, 171 | "source": "builtin", 172 | "dependencies": {} 173 | }, 174 | "com.unity.modules.terrainphysics": { 175 | "version": "1.0.0", 176 | "depth": 0, 177 | "source": "builtin", 178 | "dependencies": { 179 | "com.unity.modules.physics": "1.0.0", 180 | "com.unity.modules.terrain": "1.0.0" 181 | } 182 | }, 183 | "com.unity.modules.tilemap": { 184 | "version": "1.0.0", 185 | "depth": 0, 186 | "source": "builtin", 187 | "dependencies": { 188 | "com.unity.modules.physics2d": "1.0.0" 189 | } 190 | }, 191 | "com.unity.modules.ui": { 192 | "version": "1.0.0", 193 | "depth": 0, 194 | "source": "builtin", 195 | "dependencies": {} 196 | }, 197 | "com.unity.modules.uielements": { 198 | "version": "1.0.0", 199 | "depth": 0, 200 | "source": "builtin", 201 | "dependencies": { 202 | "com.unity.modules.imgui": "1.0.0", 203 | "com.unity.modules.jsonserialize": "1.0.0" 204 | } 205 | }, 206 | "com.unity.modules.umbra": { 207 | "version": "1.0.0", 208 | "depth": 0, 209 | "source": "builtin", 210 | "dependencies": {} 211 | }, 212 | "com.unity.modules.unityanalytics": { 213 | "version": "1.0.0", 214 | "depth": 0, 215 | "source": "builtin", 216 | "dependencies": { 217 | "com.unity.modules.unitywebrequest": "1.0.0", 218 | "com.unity.modules.jsonserialize": "1.0.0" 219 | } 220 | }, 221 | "com.unity.modules.unitywebrequest": { 222 | "version": "1.0.0", 223 | "depth": 0, 224 | "source": "builtin", 225 | "dependencies": {} 226 | }, 227 | "com.unity.modules.unitywebrequestassetbundle": { 228 | "version": "1.0.0", 229 | "depth": 0, 230 | "source": "builtin", 231 | "dependencies": { 232 | "com.unity.modules.assetbundle": "1.0.0", 233 | "com.unity.modules.unitywebrequest": "1.0.0" 234 | } 235 | }, 236 | "com.unity.modules.unitywebrequestaudio": { 237 | "version": "1.0.0", 238 | "depth": 0, 239 | "source": "builtin", 240 | "dependencies": { 241 | "com.unity.modules.unitywebrequest": "1.0.0", 242 | "com.unity.modules.audio": "1.0.0" 243 | } 244 | }, 245 | "com.unity.modules.unitywebrequesttexture": { 246 | "version": "1.0.0", 247 | "depth": 0, 248 | "source": "builtin", 249 | "dependencies": { 250 | "com.unity.modules.unitywebrequest": "1.0.0", 251 | "com.unity.modules.imageconversion": "1.0.0" 252 | } 253 | }, 254 | "com.unity.modules.unitywebrequestwww": { 255 | "version": "1.0.0", 256 | "depth": 0, 257 | "source": "builtin", 258 | "dependencies": { 259 | "com.unity.modules.unitywebrequest": "1.0.0", 260 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 261 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 262 | "com.unity.modules.audio": "1.0.0", 263 | "com.unity.modules.assetbundle": "1.0.0", 264 | "com.unity.modules.imageconversion": "1.0.0" 265 | } 266 | }, 267 | "com.unity.modules.vehicles": { 268 | "version": "1.0.0", 269 | "depth": 0, 270 | "source": "builtin", 271 | "dependencies": { 272 | "com.unity.modules.physics": "1.0.0" 273 | } 274 | }, 275 | "com.unity.modules.video": { 276 | "version": "1.0.0", 277 | "depth": 0, 278 | "source": "builtin", 279 | "dependencies": { 280 | "com.unity.modules.audio": "1.0.0", 281 | "com.unity.modules.ui": "1.0.0", 282 | "com.unity.modules.unitywebrequest": "1.0.0" 283 | } 284 | }, 285 | "com.unity.modules.vr": { 286 | "version": "1.0.0", 287 | "depth": 0, 288 | "source": "builtin", 289 | "dependencies": { 290 | "com.unity.modules.jsonserialize": "1.0.0", 291 | "com.unity.modules.physics": "1.0.0", 292 | "com.unity.modules.xr": "1.0.0" 293 | } 294 | }, 295 | "com.unity.modules.wind": { 296 | "version": "1.0.0", 297 | "depth": 0, 298 | "source": "builtin", 299 | "dependencies": {} 300 | }, 301 | "com.unity.modules.xr": { 302 | "version": "1.0.0", 303 | "depth": 0, 304 | "source": "builtin", 305 | "dependencies": { 306 | "com.unity.modules.physics": "1.0.0", 307 | "com.unity.modules.jsonserialize": "1.0.0", 308 | "com.unity.modules.subsystems": "1.0.0" 309 | } 310 | } 311 | } 312 | } 313 | -------------------------------------------------------------------------------- /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: 9 7 | m_ExternalVersionControlSupport: Visible 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;asmref 20 | m_ProjectGenerationRootNamespace: 21 | m_CollabEditorSettings: 22 | inProgressEnabled: 1 23 | m_EnableTextureStreamingInEditMode: 1 24 | m_EnableTextureStreamingInPlayMode: 1 25 | m_AsyncShaderCompilation: 1 26 | m_EnterPlayModeOptionsEnabled: 0 27 | m_EnterPlayModeOptions: 3 28 | m_ShowLightmapResolutionOverlay: 1 29 | m_UseLegacyProbeSampleCount: 1 30 | m_AssetPipelineMode: 1 31 | m_CacheServerMode: 0 32 | m_CacheServerEndpoint: 33 | m_CacheServerNamespacePrefix: default 34 | m_CacheServerEnableDownload: 1 35 | m_CacheServerEnableUpload: 1 36 | -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 13 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_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 | m_LogWhenShaderIsCompiled: 0 63 | m_AllowEnlightenSupportForUpgradedProject: 1 64 | -------------------------------------------------------------------------------- /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 | serializedVersion: 2 7 | m_DefaultPresets: {} 8 | -------------------------------------------------------------------------------- /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: 20 7 | productGUID: 6613dcb3241c847d994b0314a2b7c908 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: UnityGrassShader 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_ShowUnitySplashAds: 0 45 | m_AdsAndroidGameId: 46 | m_AdsIosGameId: 47 | m_ShowSplashAdsSlogan: 0 48 | m_SloganImage: {fileID: 0} 49 | m_SloganHeight: 150 50 | m_HolographicTrackingLossScreen: {fileID: 0} 51 | defaultScreenWidth: 1024 52 | defaultScreenHeight: 768 53 | defaultScreenWidthWeb: 960 54 | defaultScreenHeightWeb: 600 55 | m_StereoRenderingPath: 0 56 | m_ActiveColorSpace: 0 57 | m_MTRendering: 1 58 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 59 | iosShowActivityIndicatorOnLoading: -1 60 | androidShowActivityIndicatorOnLoading: -1 61 | iosUseCustomAppBackgroundBehavior: 0 62 | iosAllowHTTPDownload: 1 63 | allowedAutorotateToPortrait: 1 64 | allowedAutorotateToPortraitUpsideDown: 1 65 | allowedAutorotateToLandscapeRight: 1 66 | allowedAutorotateToLandscapeLeft: 1 67 | useOSAutorotation: 1 68 | use32BitDisplayBuffer: 1 69 | preserveFramebufferAlpha: 0 70 | disableDepthAndStencilBuffers: 0 71 | androidStartInFullscreen: 1 72 | androidRenderOutsideSafeArea: 1 73 | androidUseSwappy: 0 74 | androidBlitType: 0 75 | defaultIsNativeResolution: 1 76 | macRetinaSupport: 1 77 | runInBackground: 1 78 | captureSingleScreen: 0 79 | muteOtherAudioSources: 0 80 | Prepare IOS For Recording: 0 81 | Force IOS Speakers When Recording: 0 82 | deferSystemGesturesMode: 0 83 | hideHomeButton: 0 84 | submitAnalytics: 1 85 | usePlayerLog: 1 86 | bakeCollisionMeshes: 0 87 | forceSingleInstance: 0 88 | useFlipModelSwapchain: 1 89 | resizableWindow: 0 90 | useMacAppStoreValidation: 0 91 | macAppStoreCategory: public.app-category.games 92 | gpuSkinning: 1 93 | xboxPIXTextureCapture: 0 94 | xboxEnableAvatar: 0 95 | xboxEnableKinect: 0 96 | xboxEnableKinectAutoTracking: 0 97 | xboxEnableFitness: 0 98 | visibleInBackground: 1 99 | allowFullscreenSwitch: 1 100 | fullscreenMode: 1 101 | xboxSpeechDB: 0 102 | xboxEnableHeadOrientation: 0 103 | xboxEnableGuest: 0 104 | xboxEnablePIXSampling: 0 105 | metalFramebufferOnly: 0 106 | xboxOneResolution: 0 107 | xboxOneSResolution: 0 108 | xboxOneXResolution: 3 109 | xboxOneMonoLoggingLevel: 0 110 | xboxOneLoggingLevel: 1 111 | xboxOneDisableEsram: 0 112 | xboxOneEnableTypeOptimization: 0 113 | xboxOnePresentImmediateThreshold: 0 114 | switchQueueCommandMemory: 0 115 | switchQueueControlMemory: 16384 116 | switchQueueComputeMemory: 262144 117 | switchNVNShaderPoolsGranularity: 33554432 118 | switchNVNDefaultPoolsGranularity: 16777216 119 | switchNVNOtherPoolsGranularity: 16777216 120 | switchNVNMaxPublicTextureIDCount: 0 121 | switchNVNMaxPublicSamplerIDCount: 0 122 | stadiaPresentMode: 0 123 | stadiaTargetFramerate: 0 124 | vulkanNumSwapchainBuffers: 3 125 | vulkanEnableSetSRGBWrite: 0 126 | vulkanEnableLateAcquireNextImage: 0 127 | useSecurityBuild: 0 128 | m_SupportedAspectRatios: 129 | 4:3: 1 130 | 5:4: 1 131 | 16:10: 1 132 | 16:9: 1 133 | Others: 1 134 | bundleVersion: 0.1 135 | preloadedAssets: [] 136 | metroInputSource: 0 137 | wsaTransparentSwapchain: 0 138 | m_HolographicPauseOnTrackingLoss: 1 139 | xboxOneDisableKinectGpuReservation: 1 140 | xboxOneEnable7thCore: 1 141 | vrSettings: 142 | cardboard: 143 | depthFormat: 0 144 | enableTransitionView: 0 145 | daydream: 146 | depthFormat: 0 147 | useSustainedPerformanceMode: 0 148 | enableVideoLayer: 0 149 | useProtectedVideoMemory: 0 150 | minimumSupportedHeadTracking: 0 151 | maximumSupportedHeadTracking: 1 152 | hololens: 153 | depthFormat: 1 154 | depthBufferSharingEnabled: 1 155 | lumin: 156 | depthFormat: 0 157 | frameTiming: 2 158 | enableGLCache: 0 159 | glCacheMaxBlobSize: 524288 160 | glCacheMaxFileSize: 8388608 161 | oculus: 162 | sharedDepthBuffer: 1 163 | dashSupport: 1 164 | lowOverheadMode: 0 165 | protectedContext: 0 166 | v2Signing: 1 167 | enable360StereoCapture: 0 168 | isWsaHolographicRemotingEnabled: 0 169 | enableFrameTimingStats: 0 170 | useHDRDisplay: 0 171 | D3DHDRBitDepth: 0 172 | m_ColorGamuts: 00000000 173 | targetPixelDensity: 30 174 | resolutionScalingMode: 0 175 | androidSupportedAspectRatio: 1 176 | androidMaxAspectRatio: 2.1 177 | applicationIdentifier: {} 178 | buildNumber: {} 179 | AndroidBundleVersionCode: 1 180 | AndroidMinSdkVersion: 19 181 | AndroidTargetSdkVersion: 0 182 | AndroidPreferredInstallLocation: 1 183 | aotOptions: 184 | stripEngineCode: 1 185 | iPhoneStrippingLevel: 0 186 | iPhoneScriptCallOptimization: 0 187 | ForceInternetPermission: 0 188 | ForceSDCardPermission: 0 189 | CreateWallpaper: 0 190 | APKExpansionFiles: 0 191 | keepLoadedShadersAlive: 0 192 | StripUnusedMeshComponents: 1 193 | VertexChannelCompressionMask: 4054 194 | iPhoneSdkVersion: 988 195 | iOSTargetOSVersionString: 10.0 196 | tvOSSdkVersion: 0 197 | tvOSRequireExtendedGameController: 0 198 | tvOSTargetOSVersionString: 10.0 199 | uIPrerenderedIcon: 0 200 | uIRequiresPersistentWiFi: 0 201 | uIRequiresFullScreen: 1 202 | uIStatusBarHidden: 1 203 | uIExitOnSuspend: 0 204 | uIStatusBarStyle: 0 205 | appleTVSplashScreen: {fileID: 0} 206 | appleTVSplashScreen2x: {fileID: 0} 207 | tvOSSmallIconLayers: [] 208 | tvOSSmallIconLayers2x: [] 209 | tvOSLargeIconLayers: [] 210 | tvOSLargeIconLayers2x: [] 211 | tvOSTopShelfImageLayers: [] 212 | tvOSTopShelfImageLayers2x: [] 213 | tvOSTopShelfImageWideLayers: [] 214 | tvOSTopShelfImageWideLayers2x: [] 215 | iOSLaunchScreenType: 0 216 | iOSLaunchScreenPortrait: {fileID: 0} 217 | iOSLaunchScreenLandscape: {fileID: 0} 218 | iOSLaunchScreenBackgroundColor: 219 | serializedVersion: 2 220 | rgba: 0 221 | iOSLaunchScreenFillPct: 100 222 | iOSLaunchScreenSize: 100 223 | iOSLaunchScreenCustomXibPath: 224 | iOSLaunchScreeniPadType: 0 225 | iOSLaunchScreeniPadImage: {fileID: 0} 226 | iOSLaunchScreeniPadBackgroundColor: 227 | serializedVersion: 2 228 | rgba: 0 229 | iOSLaunchScreeniPadFillPct: 100 230 | iOSLaunchScreeniPadSize: 100 231 | iOSLaunchScreeniPadCustomXibPath: 232 | iOSUseLaunchScreenStoryboard: 0 233 | iOSLaunchScreenCustomStoryboardPath: 234 | iOSDeviceRequirements: [] 235 | iOSURLSchemes: [] 236 | iOSBackgroundModes: 0 237 | iOSMetalForceHardShadows: 0 238 | metalEditorSupport: 1 239 | metalAPIValidation: 1 240 | iOSRenderExtraFrameOnPause: 0 241 | appleDeveloperTeamID: 242 | iOSManualSigningProvisioningProfileID: 243 | tvOSManualSigningProvisioningProfileID: 244 | iOSManualSigningProvisioningProfileType: 0 245 | tvOSManualSigningProvisioningProfileType: 0 246 | appleEnableAutomaticSigning: 0 247 | iOSRequireARKit: 0 248 | iOSAutomaticallyDetectAndAddCapabilities: 1 249 | appleEnableProMotion: 0 250 | clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea 251 | templatePackageId: com.unity.template.3d@4.2.0 252 | templateDefaultScene: Assets/Scenes/SampleScene.unity 253 | AndroidTargetArchitectures: 1 254 | AndroidSplashScreenScale: 0 255 | androidSplashScreen: {fileID: 0} 256 | AndroidKeystoreName: 257 | AndroidKeyaliasName: 258 | AndroidBuildApkPerCpuArchitecture: 0 259 | AndroidTVCompatibility: 0 260 | AndroidIsGame: 1 261 | AndroidEnableTango: 0 262 | androidEnableBanner: 1 263 | androidUseLowAccuracyLocation: 0 264 | androidUseCustomKeystore: 0 265 | m_AndroidBanners: 266 | - width: 320 267 | height: 180 268 | banner: {fileID: 0} 269 | androidGamepadSupportLevel: 0 270 | AndroidValidateAppBundleSize: 1 271 | AndroidAppBundleSizeToValidate: 150 272 | m_BuildTargetIcons: [] 273 | m_BuildTargetPlatformIcons: [] 274 | m_BuildTargetBatching: 275 | - m_BuildTarget: Standalone 276 | m_StaticBatching: 1 277 | m_DynamicBatching: 0 278 | - m_BuildTarget: tvOS 279 | m_StaticBatching: 1 280 | m_DynamicBatching: 0 281 | - m_BuildTarget: Android 282 | m_StaticBatching: 1 283 | m_DynamicBatching: 0 284 | - m_BuildTarget: iPhone 285 | m_StaticBatching: 1 286 | m_DynamicBatching: 0 287 | - m_BuildTarget: WebGL 288 | m_StaticBatching: 0 289 | m_DynamicBatching: 0 290 | m_BuildTargetEncrypting: [] 291 | m_BuildTargetGraphicsJobs: 292 | - m_BuildTarget: MacStandaloneSupport 293 | m_GraphicsJobs: 0 294 | - m_BuildTarget: Switch 295 | m_GraphicsJobs: 1 296 | - m_BuildTarget: MetroSupport 297 | m_GraphicsJobs: 1 298 | - m_BuildTarget: AppleTVSupport 299 | m_GraphicsJobs: 0 300 | - m_BuildTarget: BJMSupport 301 | m_GraphicsJobs: 1 302 | - m_BuildTarget: LinuxStandaloneSupport 303 | m_GraphicsJobs: 1 304 | - m_BuildTarget: PS4Player 305 | m_GraphicsJobs: 1 306 | - m_BuildTarget: iOSSupport 307 | m_GraphicsJobs: 0 308 | - m_BuildTarget: WindowsStandaloneSupport 309 | m_GraphicsJobs: 1 310 | - m_BuildTarget: XboxOnePlayer 311 | m_GraphicsJobs: 1 312 | - m_BuildTarget: LuminSupport 313 | m_GraphicsJobs: 0 314 | - m_BuildTarget: AndroidPlayer 315 | m_GraphicsJobs: 0 316 | - m_BuildTarget: WebGLSupport 317 | m_GraphicsJobs: 0 318 | m_BuildTargetGraphicsJobMode: 319 | - m_BuildTarget: PS4Player 320 | m_GraphicsJobMode: 0 321 | - m_BuildTarget: XboxOnePlayer 322 | m_GraphicsJobMode: 0 323 | m_BuildTargetGraphicsAPIs: 324 | - m_BuildTarget: AndroidPlayer 325 | m_APIs: 150000000b000000 326 | m_Automatic: 0 327 | - m_BuildTarget: iOSSupport 328 | m_APIs: 10000000 329 | m_Automatic: 1 330 | - m_BuildTarget: AppleTVSupport 331 | m_APIs: 10000000 332 | m_Automatic: 0 333 | - m_BuildTarget: WebGLSupport 334 | m_APIs: 0b000000 335 | m_Automatic: 1 336 | m_BuildTargetVRSettings: 337 | - m_BuildTarget: Standalone 338 | m_Enabled: 0 339 | m_Devices: 340 | - Oculus 341 | - OpenVR 342 | openGLRequireES31: 0 343 | openGLRequireES31AEP: 0 344 | openGLRequireES32: 0 345 | m_TemplateCustomTags: {} 346 | mobileMTRendering: 347 | Android: 1 348 | iPhone: 1 349 | tvOS: 1 350 | m_BuildTargetGroupLightmapEncodingQuality: [] 351 | m_BuildTargetGroupLightmapSettings: [] 352 | playModeTestRunnerEnabled: 0 353 | runPlayModeTestAsEditModeTest: 0 354 | actionOnDotNetUnhandledException: 1 355 | enableInternalProfiler: 0 356 | logObjCUncaughtExceptions: 1 357 | enableCrashReportAPI: 0 358 | cameraUsageDescription: 359 | locationUsageDescription: 360 | microphoneUsageDescription: 361 | switchNetLibKey: 362 | switchSocketMemoryPoolSize: 6144 363 | switchSocketAllocatorPoolSize: 128 364 | switchSocketConcurrencyLimit: 14 365 | switchScreenResolutionBehavior: 2 366 | switchUseCPUProfiler: 0 367 | switchApplicationID: 0x01004b9000490000 368 | switchNSODependencies: 369 | switchTitleNames_0: 370 | switchTitleNames_1: 371 | switchTitleNames_2: 372 | switchTitleNames_3: 373 | switchTitleNames_4: 374 | switchTitleNames_5: 375 | switchTitleNames_6: 376 | switchTitleNames_7: 377 | switchTitleNames_8: 378 | switchTitleNames_9: 379 | switchTitleNames_10: 380 | switchTitleNames_11: 381 | switchTitleNames_12: 382 | switchTitleNames_13: 383 | switchTitleNames_14: 384 | switchPublisherNames_0: 385 | switchPublisherNames_1: 386 | switchPublisherNames_2: 387 | switchPublisherNames_3: 388 | switchPublisherNames_4: 389 | switchPublisherNames_5: 390 | switchPublisherNames_6: 391 | switchPublisherNames_7: 392 | switchPublisherNames_8: 393 | switchPublisherNames_9: 394 | switchPublisherNames_10: 395 | switchPublisherNames_11: 396 | switchPublisherNames_12: 397 | switchPublisherNames_13: 398 | switchPublisherNames_14: 399 | switchIcons_0: {fileID: 0} 400 | switchIcons_1: {fileID: 0} 401 | switchIcons_2: {fileID: 0} 402 | switchIcons_3: {fileID: 0} 403 | switchIcons_4: {fileID: 0} 404 | switchIcons_5: {fileID: 0} 405 | switchIcons_6: {fileID: 0} 406 | switchIcons_7: {fileID: 0} 407 | switchIcons_8: {fileID: 0} 408 | switchIcons_9: {fileID: 0} 409 | switchIcons_10: {fileID: 0} 410 | switchIcons_11: {fileID: 0} 411 | switchIcons_12: {fileID: 0} 412 | switchIcons_13: {fileID: 0} 413 | switchIcons_14: {fileID: 0} 414 | switchSmallIcons_0: {fileID: 0} 415 | switchSmallIcons_1: {fileID: 0} 416 | switchSmallIcons_2: {fileID: 0} 417 | switchSmallIcons_3: {fileID: 0} 418 | switchSmallIcons_4: {fileID: 0} 419 | switchSmallIcons_5: {fileID: 0} 420 | switchSmallIcons_6: {fileID: 0} 421 | switchSmallIcons_7: {fileID: 0} 422 | switchSmallIcons_8: {fileID: 0} 423 | switchSmallIcons_9: {fileID: 0} 424 | switchSmallIcons_10: {fileID: 0} 425 | switchSmallIcons_11: {fileID: 0} 426 | switchSmallIcons_12: {fileID: 0} 427 | switchSmallIcons_13: {fileID: 0} 428 | switchSmallIcons_14: {fileID: 0} 429 | switchManualHTML: 430 | switchAccessibleURLs: 431 | switchLegalInformation: 432 | switchMainThreadStackSize: 1048576 433 | switchPresenceGroupId: 434 | switchLogoHandling: 0 435 | switchReleaseVersion: 0 436 | switchDisplayVersion: 1.0.0 437 | switchStartupUserAccount: 0 438 | switchTouchScreenUsage: 0 439 | switchSupportedLanguagesMask: 0 440 | switchLogoType: 0 441 | switchApplicationErrorCodeCategory: 442 | switchUserAccountSaveDataSize: 0 443 | switchUserAccountSaveDataJournalSize: 0 444 | switchApplicationAttribute: 0 445 | switchCardSpecSize: -1 446 | switchCardSpecClock: -1 447 | switchRatingsMask: 0 448 | switchRatingsInt_0: 0 449 | switchRatingsInt_1: 0 450 | switchRatingsInt_2: 0 451 | switchRatingsInt_3: 0 452 | switchRatingsInt_4: 0 453 | switchRatingsInt_5: 0 454 | switchRatingsInt_6: 0 455 | switchRatingsInt_7: 0 456 | switchRatingsInt_8: 0 457 | switchRatingsInt_9: 0 458 | switchRatingsInt_10: 0 459 | switchRatingsInt_11: 0 460 | switchRatingsInt_12: 0 461 | switchLocalCommunicationIds_0: 462 | switchLocalCommunicationIds_1: 463 | switchLocalCommunicationIds_2: 464 | switchLocalCommunicationIds_3: 465 | switchLocalCommunicationIds_4: 466 | switchLocalCommunicationIds_5: 467 | switchLocalCommunicationIds_6: 468 | switchLocalCommunicationIds_7: 469 | switchParentalControl: 0 470 | switchAllowsScreenshot: 1 471 | switchAllowsVideoCapturing: 1 472 | switchAllowsRuntimeAddOnContentInstall: 0 473 | switchDataLossConfirmation: 0 474 | switchUserAccountLockEnabled: 0 475 | switchSystemResourceMemory: 16777216 476 | switchSupportedNpadStyles: 22 477 | switchNativeFsCacheSize: 32 478 | switchIsHoldTypeHorizontal: 0 479 | switchSupportedNpadCount: 8 480 | switchSocketConfigEnabled: 0 481 | switchTcpInitialSendBufferSize: 32 482 | switchTcpInitialReceiveBufferSize: 64 483 | switchTcpAutoSendBufferSizeMax: 256 484 | switchTcpAutoReceiveBufferSizeMax: 256 485 | switchUdpSendBufferSize: 9 486 | switchUdpReceiveBufferSize: 42 487 | switchSocketBufferEfficiency: 4 488 | switchSocketInitializeEnabled: 1 489 | switchNetworkInterfaceManagerInitializeEnabled: 1 490 | switchPlayerConnectionEnabled: 1 491 | ps4NPAgeRating: 12 492 | ps4NPTitleSecret: 493 | ps4NPTrophyPackPath: 494 | ps4ParentalLevel: 11 495 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 496 | ps4Category: 0 497 | ps4MasterVersion: 01.00 498 | ps4AppVersion: 01.00 499 | ps4AppType: 0 500 | ps4ParamSfxPath: 501 | ps4VideoOutPixelFormat: 0 502 | ps4VideoOutInitialWidth: 1920 503 | ps4VideoOutBaseModeInitialWidth: 1920 504 | ps4VideoOutReprojectionRate: 60 505 | ps4PronunciationXMLPath: 506 | ps4PronunciationSIGPath: 507 | ps4BackgroundImagePath: 508 | ps4StartupImagePath: 509 | ps4StartupImagesFolder: 510 | ps4IconImagesFolder: 511 | ps4SaveDataImagePath: 512 | ps4SdkOverride: 513 | ps4BGMPath: 514 | ps4ShareFilePath: 515 | ps4ShareOverlayImagePath: 516 | ps4PrivacyGuardImagePath: 517 | ps4ExtraSceSysFile: 518 | ps4NPtitleDatPath: 519 | ps4RemotePlayKeyAssignment: -1 520 | ps4RemotePlayKeyMappingDir: 521 | ps4PlayTogetherPlayerCount: 0 522 | ps4EnterButtonAssignment: 1 523 | ps4ApplicationParam1: 0 524 | ps4ApplicationParam2: 0 525 | ps4ApplicationParam3: 0 526 | ps4ApplicationParam4: 0 527 | ps4DownloadDataSize: 0 528 | ps4GarlicHeapSize: 2048 529 | ps4ProGarlicHeapSize: 2560 530 | playerPrefsMaxSize: 32768 531 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 532 | ps4pnSessions: 1 533 | ps4pnPresence: 1 534 | ps4pnFriends: 1 535 | ps4pnGameCustomData: 1 536 | playerPrefsSupport: 0 537 | enableApplicationExit: 0 538 | resetTempFolder: 1 539 | restrictedAudioUsageRights: 0 540 | ps4UseResolutionFallback: 0 541 | ps4ReprojectionSupport: 0 542 | ps4UseAudio3dBackend: 0 543 | ps4UseLowGarlicFragmentationMode: 1 544 | ps4SocialScreenEnabled: 0 545 | ps4ScriptOptimizationLevel: 0 546 | ps4Audio3dVirtualSpeakerCount: 14 547 | ps4attribCpuUsage: 0 548 | ps4PatchPkgPath: 549 | ps4PatchLatestPkgPath: 550 | ps4PatchChangeinfoPath: 551 | ps4PatchDayOne: 0 552 | ps4attribUserManagement: 0 553 | ps4attribMoveSupport: 0 554 | ps4attrib3DSupport: 0 555 | ps4attribShareSupport: 0 556 | ps4attribExclusiveVR: 0 557 | ps4disableAutoHideSplash: 0 558 | ps4videoRecordingFeaturesUsed: 0 559 | ps4contentSearchFeaturesUsed: 0 560 | ps4CompatibilityPS5: 0 561 | ps4GPU800MHz: 1 562 | ps4attribEyeToEyeDistanceSettingVR: 0 563 | ps4IncludedModules: [] 564 | ps4attribVROutputEnabled: 0 565 | monoEnv: 566 | splashScreenBackgroundSourceLandscape: {fileID: 0} 567 | splashScreenBackgroundSourcePortrait: {fileID: 0} 568 | blurSplashScreenBackground: 1 569 | spritePackerPolicy: 570 | webGLMemorySize: 16 571 | webGLExceptionSupport: 1 572 | webGLNameFilesAsHashes: 0 573 | webGLDataCaching: 1 574 | webGLDebugSymbols: 0 575 | webGLEmscriptenArgs: 576 | webGLModulesDirectory: 577 | webGLTemplate: APPLICATION:Default 578 | webGLAnalyzeBuildSize: 0 579 | webGLUseEmbeddedResources: 0 580 | webGLCompressionFormat: 1 581 | webGLLinkerTarget: 1 582 | webGLThreadsSupport: 0 583 | webGLWasmStreaming: 0 584 | scriptingDefineSymbols: {} 585 | platformArchitecture: {} 586 | scriptingBackend: {} 587 | il2cppCompilerConfiguration: {} 588 | managedStrippingLevel: {} 589 | incrementalIl2cppBuild: {} 590 | allowUnsafeCode: 0 591 | additionalIl2CppArgs: 592 | scriptingRuntimeVersion: 1 593 | gcIncremental: 0 594 | gcWBarrierValidation: 0 595 | apiCompatibilityLevelPerPlatform: {} 596 | m_RenderingPath: 1 597 | m_MobileRenderingPath: 1 598 | metroPackageName: Template_3D 599 | metroPackageVersion: 600 | metroCertificatePath: 601 | metroCertificatePassword: 602 | metroCertificateSubject: 603 | metroCertificateIssuer: 604 | metroCertificateNotAfter: 0000000000000000 605 | metroApplicationDescription: Template_3D 606 | wsaImages: {} 607 | metroTileShortName: 608 | metroTileShowName: 0 609 | metroMediumTileShowName: 0 610 | metroLargeTileShowName: 0 611 | metroWideTileShowName: 0 612 | metroSupportStreamingInstall: 0 613 | metroLastRequiredScene: 0 614 | metroDefaultTileSize: 1 615 | metroTileForegroundText: 2 616 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 617 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, 618 | a: 1} 619 | metroSplashScreenUseBackgroundColor: 0 620 | platformCapabilities: {} 621 | metroTargetDeviceFamilies: {} 622 | metroFTAName: 623 | metroFTAFileTypes: [] 624 | metroProtocolName: 625 | XboxOneProductId: 626 | XboxOneUpdateKey: 627 | XboxOneSandboxId: 628 | XboxOneContentId: 629 | XboxOneTitleId: 630 | XboxOneSCId: 631 | XboxOneGameOsOverridePath: 632 | XboxOnePackagingOverridePath: 633 | XboxOneAppManifestOverridePath: 634 | XboxOneVersion: 1.0.0.0 635 | XboxOnePackageEncryption: 0 636 | XboxOnePackageUpdateGranularity: 2 637 | XboxOneDescription: 638 | XboxOneLanguage: 639 | - enus 640 | XboxOneCapability: [] 641 | XboxOneGameRating: {} 642 | XboxOneIsContentPackage: 0 643 | XboxOneEnableGPUVariability: 1 644 | XboxOneSockets: {} 645 | XboxOneSplashScreen: {fileID: 0} 646 | XboxOneAllowedProductIds: [] 647 | XboxOnePersistentLocalStorageSize: 0 648 | XboxOneXTitleMemory: 8 649 | XboxOneOverrideIdentityName: 650 | XboxOneOverrideIdentityPublisher: 651 | vrEditorSettings: 652 | daydream: 653 | daydreamIconForeground: {fileID: 0} 654 | daydreamIconBackground: {fileID: 0} 655 | cloudServicesEnabled: 656 | UNet: 1 657 | luminIcon: 658 | m_Name: 659 | m_ModelFolderPath: 660 | m_PortalFolderPath: 661 | luminCert: 662 | m_CertPath: 663 | m_SignPackage: 1 664 | luminIsChannelApp: 0 665 | luminVersion: 666 | m_VersionCode: 1 667 | m_VersionName: 668 | apiCompatibilityLevel: 6 669 | cloudProjectId: 670 | framebufferDepthMemorylessMode: 0 671 | projectName: 672 | organizationId: 673 | cloudEnabled: 0 674 | enableNativePlatformBackendsForNewInputSystem: 0 675 | disableOldInputManagerSupport: 0 676 | legacyClampBlendShapeWeights: 0 677 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2019.4.11f1 2 | m_EditorVersionWithRevision: 2019.4.11f1 (f4a12d3fea92) 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_StripUpdateShader: {fileID: 0} 10 | m_RenderPipeSettingsPath: 11 | m_FixedTimeStep: 0.016666668 12 | m_MaxDeltaTime: 0.05 13 | -------------------------------------------------------------------------------- /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 | # Grass Compute Shader for Unity 2 | 3 | Grass shader using mesh generation and compute shader for wind swing. 4 | 5 | Reference project: 6 | * [Unity Grass Shader](http://roystan.net/articles/grass-shader.html). 7 | * [Unity Grass using Shader Graph](http://youtube.com/watch?v=L_Bzcw9tqTc). 8 | 9 | Different approach used because Geometry Shader and Shader Graph are not working correctly on MacOS. 10 | 11 | 12 | 13 | ### Related 14 | 15 | * [HexMap](https://github.com/KHN190/miniHexMap) editor used the same grass generation. 16 | -------------------------------------------------------------------------------- /img/grassSwing.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KHN190/UnityGrassShader/f4e7e73155cab885b95873de73f782662a878b2b/img/grassSwing.gif --------------------------------------------------------------------------------