├── .gitignore ├── Assets ├── Grass.mat ├── Grass.mat.meta ├── Grass.shader ├── Grass.shader.meta ├── Main.unity ├── Main.unity.meta ├── Materials.meta ├── Materials │ ├── Fence.mat │ ├── Fence.mat.meta │ ├── Ground.mat │ ├── Ground.mat.meta │ ├── TessellationExample.mat │ └── TessellationExample.mat.meta ├── Mesh.meta ├── Mesh │ ├── Fence.FBX │ ├── Fence.FBX.meta │ ├── GrassPlane10x10.FBX │ └── GrassPlane10x10.FBX.meta ├── Shaders.meta ├── Shaders │ ├── CustomTessellation.cginc │ ├── CustomTessellation.cginc.meta │ ├── TessellationExample.shader │ └── TessellationExample.shader.meta ├── Textures.meta ├── Textures │ ├── Wood17_col.jpg │ ├── Wood17_col.jpg.meta │ ├── Wood17_disp.jpg │ ├── Wood17_disp.jpg.meta │ ├── Wood17_nrm.jpg │ ├── Wood17_nrm.jpg.meta │ ├── Wood17_rgh.jpg │ └── Wood17_rgh.jpg.meta ├── Wind.png └── Wind.png.meta ├── LICENSE ├── Packages └── manifest.json ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset ├── UnityConnectSettings.asset └── VFXManager.asset └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | [Ll]ibrary/ 2 | [Tt]emp/ 3 | [Oo]bj/ 4 | [Bb]uild/ 5 | [Bb]uilds/ 6 | [Ll]ogs/ 7 | Assets/AssetStoreTools* 8 | 9 | # Visual Studio 2015 cache directory 10 | /.vs/ 11 | 12 | # Autogenerated VS/MD/Consulo solution and project files 13 | ExportedObj/ 14 | .consulo/ 15 | *.csproj 16 | *.unityproj 17 | *.sln 18 | *.suo 19 | *.tmp 20 | *.user 21 | *.userprefs 22 | *.pidb 23 | *.booproj 24 | *.svd 25 | *.pdb 26 | 27 | # Unity3D generated meta files 28 | *.pidb.meta 29 | *.pdb.meta 30 | 31 | # Unity3D Generated File On Crash Reports 32 | sysinfo.txt 33 | 34 | # Builds 35 | *.apk 36 | *.unitypackage -------------------------------------------------------------------------------- /Assets/Grass.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: Grass 11 | m_Shader: {fileID: 4800000, guid: 01eab4087a959ef4cbc34b8a3fba1e1f, 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 | - _WindDistortionMap: 59 | m_Texture: {fileID: 2800000, guid: f28bba76fb944bc48be841e3ab6c411f, type: 3} 60 | m_Scale: {x: 0.01, y: 0.01} 61 | m_Offset: {x: 0, y: 0} 62 | m_Floats: 63 | - _BendRotationRandom: 0.2 64 | - _BladeCurve: 2 65 | - _BladeForward: 0.38 66 | - _BladeHeight: 0.5 67 | - _BladeHeightRandom: 0.3 68 | - _BladeRandomAmount: 0.5 69 | - _BladeSegments: 3 70 | - _BladeWidth: 0.05 71 | - _BladeWidthRandom: 0.02 72 | - _BumpScale: 1 73 | - _Cutoff: 0.5 74 | - _DetailNormalMapScale: 1 75 | - _DstBlend: 0 76 | - _GlossMapScale: 1 77 | - _Glossiness: 0.5 78 | - _GlossyReflections: 1 79 | - _Metallic: 0 80 | - _Mode: 0 81 | - _OcclusionStrength: 1 82 | - _Parallax: 0.02 83 | - _Rotation: 0 84 | - _RotationRandom: 0.174 85 | - _SmoothnessTextureChannel: 0 86 | - _SpecularHighlights: 1 87 | - _SrcBlend: 1 88 | - _TessellationUniform: 5 89 | - _TranslucentGain: 0.5 90 | - _UVSec: 0 91 | - _WindScale: 1 92 | - _WindStrength: 1 93 | - _ZWrite: 1 94 | m_Colors: 95 | - _BottomColor: {r: 0.061297283, g: 0.378, b: 0.07151349, a: 1} 96 | - _Color: {r: 0, g: 0.5754717, b: 0.06694827, a: 1} 97 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 98 | - _TopColor: {r: 0.5792569, g: 0.84599996, b: 0.3297231, a: 1} 99 | - _WindFrequency: {r: 0.05, g: 0.05, b: 0, a: 0} 100 | -------------------------------------------------------------------------------- /Assets/Grass.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dc23b46c0890b774bb9bbeb2aa16645d 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 0 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Grass.shader: -------------------------------------------------------------------------------- 1 | Shader "Roystan/Grass" 2 | { 3 | Properties 4 | { 5 | [Header(Shading)] 6 | _TopColor("Top Color", Color) = (1,1,1,1) 7 | _BottomColor("Bottom Color", Color) = (1,1,1,1) 8 | _TranslucentGain("Translucent Gain", Range(0,1)) = 0.5 9 | [Space] 10 | _TessellationUniform ("Tessellation Uniform", Range(1, 64)) = 1 11 | [Header(Blades)] 12 | _BladeWidth("Blade Width", Float) = 0.05 13 | _BladeWidthRandom("Blade Width Random", Float) = 0.02 14 | _BladeHeight("Blade Height", Float) = 0.5 15 | _BladeHeightRandom("Blade Height Random", Float) = 0.3 16 | _BladeForward("Blade Forward Amount", Float) = 0.38 17 | _BladeCurve("Blade Curvature Amount", Range(1, 4)) = 2 18 | _BendRotationRandom("Bend Rotation Random", Range(0, 1)) = 0.2 19 | [Header(Wind)] 20 | _WindDistortionMap("Wind Distortion Map", 2D) = "white" {} 21 | _WindStrength("Wind Strength", Float) = 1 22 | _WindFrequency("Wind Frequency", Vector) = (0.05, 0.05, 0, 0) 23 | } 24 | 25 | CGINCLUDE 26 | #include "UnityCG.cginc" 27 | #include "Autolight.cginc" 28 | #include "Shaders/CustomTessellation.cginc" 29 | 30 | struct geometryOutput 31 | { 32 | float4 pos : SV_POSITION; 33 | #if UNITY_PASS_FORWARDBASE 34 | float3 normal : NORMAL; 35 | float2 uv : TEXCOORD0; 36 | // unityShadowCoord4 is defined as a float4 in UnityShadowLibrary.cginc. 37 | unityShadowCoord4 _ShadowCoord : TEXCOORD1; 38 | #endif 39 | }; 40 | 41 | // Simple noise function, sourced from http://answers.unity.com/answers/624136/view.html 42 | // Extended discussion on this function can be found at the following link: 43 | // https://forum.unity.com/threads/am-i-over-complicating-this-random-function.454887/#post-2949326 44 | // Returns a number in the 0...1 range. 45 | float rand(float3 co) 46 | { 47 | return frac(sin(dot(co.xyz, float3(12.9898, 78.233, 53.539))) * 43758.5453); 48 | } 49 | 50 | // Construct a rotation matrix that rotates around the provided axis, sourced from: 51 | // https://gist.github.com/keijiro/ee439d5e7388f3aafc5296005c8c3f33 52 | float3x3 AngleAxis3x3(float angle, float3 axis) 53 | { 54 | float c, s; 55 | sincos(angle, s, c); 56 | 57 | float t = 1 - c; 58 | float x = axis.x; 59 | float y = axis.y; 60 | float z = axis.z; 61 | 62 | return float3x3( 63 | t * x * x + c, t * x * y - s * z, t * x * z + s * y, 64 | t * x * y + s * z, t * y * y + c, t * y * z - s * x, 65 | t * x * z - s * y, t * y * z + s * x, t * z * z + c 66 | ); 67 | } 68 | 69 | geometryOutput VertexOutput(float3 pos, float3 normal, float2 uv) 70 | { 71 | geometryOutput o; 72 | 73 | o.pos = UnityObjectToClipPos(pos); 74 | 75 | #if UNITY_PASS_FORWARDBASE 76 | o.normal = UnityObjectToWorldNormal(normal); 77 | o.uv = uv; 78 | // Shadows are sampled from a screen-space shadow map texture. 79 | o._ShadowCoord = ComputeScreenPos(o.pos); 80 | #elif UNITY_PASS_SHADOWCASTER 81 | // Applying the bias prevents artifacts from appearing on the surface. 82 | o.pos = UnityApplyLinearShadowBias(o.pos); 83 | #endif 84 | 85 | return o; 86 | } 87 | 88 | geometryOutput GenerateGrassVertex(float3 vertexPosition, float width, float height, float forward, float2 uv, float3x3 transformMatrix) 89 | { 90 | float3 tangentPoint = float3(width, forward, height); 91 | 92 | float3 tangentNormal = normalize(float3(0, -1, forward)); 93 | 94 | float3 localPosition = vertexPosition + mul(transformMatrix, tangentPoint); 95 | float3 localNormal = mul(transformMatrix, tangentNormal); 96 | return VertexOutput(localPosition, localNormal, uv); 97 | } 98 | 99 | float _BladeHeight; 100 | float _BladeHeightRandom; 101 | 102 | float _BladeWidthRandom; 103 | float _BladeWidth; 104 | 105 | float _BladeForward; 106 | float _BladeCurve; 107 | 108 | float _BendRotationRandom; 109 | 110 | sampler2D _WindDistortionMap; 111 | float4 _WindDistortionMap_ST; 112 | 113 | float _WindStrength; 114 | float2 _WindFrequency; 115 | 116 | #define BLADE_SEGMENTS 3 117 | 118 | // Geometry program that takes in a single triangle and outputs a blade 119 | // of grass at that triangle first vertex position, aligned to the vertex's normal. 120 | [maxvertexcount(BLADE_SEGMENTS * 2 + 1)] 121 | void geo(triangle vertexOutput IN[3], inout TriangleStream triStream) 122 | { 123 | float3 pos = IN[0].vertex.xyz; 124 | 125 | // Each blade of grass is constructed in tangent space with respect 126 | // to the emitting vertex's normal and tangent vectors, where the width 127 | // lies along the X axis and the height along Z. 128 | 129 | // Construct random rotations to point the blade in a direction. 130 | float3x3 facingRotationMatrix = AngleAxis3x3(rand(pos) * UNITY_TWO_PI, float3(0, 0, 1)); 131 | // Matrix to bend the blade in the direction it's facing. 132 | float3x3 bendRotationMatrix = AngleAxis3x3(rand(pos.zzx) * _BendRotationRandom * UNITY_PI * 0.5, float3(-1, 0, 0)); 133 | 134 | // Sample the wind distortion map, and construct a normalized vector of its direction. 135 | float2 uv = pos.xz * _WindDistortionMap_ST.xy + _WindDistortionMap_ST.zw + _WindFrequency * _Time.y; 136 | float2 windSample = (tex2Dlod(_WindDistortionMap, float4(uv, 0, 0)).xy * 2 - 1) * _WindStrength; 137 | float3 wind = normalize(float3(windSample.x, windSample.y, 0)); 138 | 139 | float3x3 windRotation = AngleAxis3x3(UNITY_PI * windSample, wind); 140 | 141 | // Construct a matrix to transform our blade from tangent space 142 | // to local space; this is the same process used when sampling normal maps. 143 | float3 vNormal = IN[0].normal; 144 | float4 vTangent = IN[0].tangent; 145 | float3 vBinormal = cross(vNormal, vTangent) * vTangent.w; 146 | 147 | float3x3 tangentToLocal = float3x3( 148 | vTangent.x, vBinormal.x, vNormal.x, 149 | vTangent.y, vBinormal.y, vNormal.y, 150 | vTangent.z, vBinormal.z, vNormal.z 151 | ); 152 | 153 | // Construct full tangent to local matrix, including our rotations. 154 | // Construct a second matrix with only the facing rotation; this will be used 155 | // for the root of the blade, to ensure it always faces the correct direction. 156 | float3x3 transformationMatrix = mul(mul(mul(tangentToLocal, windRotation), facingRotationMatrix), bendRotationMatrix); 157 | float3x3 transformationMatrixFacing = mul(tangentToLocal, facingRotationMatrix); 158 | 159 | float height = (rand(pos.zyx) * 2 - 1) * _BladeHeightRandom + _BladeHeight; 160 | float width = (rand(pos.xzy) * 2 - 1) * _BladeWidthRandom + _BladeWidth; 161 | float forward = rand(pos.yyz) * _BladeForward; 162 | 163 | for (int i = 0; i < BLADE_SEGMENTS; i++) 164 | { 165 | float t = i / (float)BLADE_SEGMENTS; 166 | 167 | float segmentHeight = height * t; 168 | float segmentWidth = width * (1 - t); 169 | float segmentForward = pow(t, _BladeCurve) * forward; 170 | 171 | // Select the facing-only transformation matrix for the root of the blade. 172 | float3x3 transformMatrix = i == 0 ? transformationMatrixFacing : transformationMatrix; 173 | 174 | triStream.Append(GenerateGrassVertex(pos, segmentWidth, segmentHeight, segmentForward, float2(0, t), transformMatrix)); 175 | triStream.Append(GenerateGrassVertex(pos, -segmentWidth, segmentHeight, segmentForward, float2(1, t), transformMatrix)); 176 | } 177 | 178 | // Add the final vertex as the tip. 179 | triStream.Append(GenerateGrassVertex(pos, 0, height, forward, float2(0.5, 1), transformationMatrix)); 180 | } 181 | ENDCG 182 | 183 | SubShader 184 | { 185 | Cull Off 186 | 187 | Pass 188 | { 189 | Tags 190 | { 191 | "RenderType" = "Opaque" 192 | "LightMode" = "ForwardBase" 193 | } 194 | 195 | CGPROGRAM 196 | #pragma vertex vert 197 | #pragma geometry geo 198 | #pragma fragment frag 199 | #pragma hull hull 200 | #pragma domain domain 201 | #pragma target 4.6 202 | #pragma multi_compile_fwdbase 203 | 204 | #include "Lighting.cginc" 205 | 206 | float4 _TopColor; 207 | float4 _BottomColor; 208 | float _TranslucentGain; 209 | 210 | float4 frag (geometryOutput i, fixed facing : VFACE) : SV_Target 211 | { 212 | float3 normal = facing > 0 ? i.normal : -i.normal; 213 | 214 | float shadow = SHADOW_ATTENUATION(i); 215 | float NdotL = saturate(saturate(dot(normal, _WorldSpaceLightPos0)) + _TranslucentGain) * shadow; 216 | 217 | float3 ambient = ShadeSH9(float4(normal, 1)); 218 | float4 lightIntensity = NdotL * _LightColor0 + float4(ambient, 1); 219 | float4 col = lerp(_BottomColor, _TopColor * lightIntensity, i.uv.y); 220 | 221 | return col; 222 | } 223 | ENDCG 224 | } 225 | 226 | Pass 227 | { 228 | Tags 229 | { 230 | "LightMode" = "ShadowCaster" 231 | } 232 | 233 | CGPROGRAM 234 | #pragma vertex vert 235 | #pragma geometry geo 236 | #pragma fragment frag 237 | #pragma hull hull 238 | #pragma domain domain 239 | #pragma target 4.6 240 | #pragma multi_compile_shadowcaster 241 | 242 | float4 frag(geometryOutput i) : SV_Target 243 | { 244 | SHADOW_CASTER_FRAGMENT(i) 245 | } 246 | 247 | ENDCG 248 | } 249 | } 250 | } 251 | -------------------------------------------------------------------------------- /Assets/Grass.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 01eab4087a959ef4cbc34b8a3fba1e1f 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: 0} 41 | m_IndirectSpecularColor: {r: 0.18028346, g: 0.22571373, b: 0.30692244, 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: 10 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_Padding: 2 66 | m_LightmapParameters: {fileID: 0} 67 | m_LightmapsBakeMode: 1 68 | m_TextureCompression: 1 69 | m_FinalGather: 0 70 | m_FinalGatherFiltering: 1 71 | m_FinalGatherRayCount: 256 72 | m_ReflectionCompression: 2 73 | m_MixedBakeMode: 2 74 | m_BakeBackend: 1 75 | m_PVRSampling: 1 76 | m_PVRDirectSampleCount: 32 77 | m_PVRSampleCount: 500 78 | m_PVRBounces: 2 79 | m_PVRFilterTypeDirect: 0 80 | m_PVRFilterTypeIndirect: 0 81 | m_PVRFilterTypeAO: 0 82 | m_PVRFilteringMode: 1 83 | m_PVRCulling: 1 84 | m_PVRFilteringGaussRadiusDirect: 1 85 | m_PVRFilteringGaussRadiusIndirect: 5 86 | m_PVRFilteringGaussRadiusAO: 2 87 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 88 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 89 | m_PVRFilteringAtrousPositionSigmaAO: 1 90 | m_ShowResolutionOverlay: 1 91 | m_LightingDataAsset: {fileID: 0} 92 | m_UseShadowmask: 1 93 | --- !u!196 &4 94 | NavMeshSettings: 95 | serializedVersion: 2 96 | m_ObjectHideFlags: 0 97 | m_BuildSettings: 98 | serializedVersion: 2 99 | agentTypeID: 0 100 | agentRadius: 0.5 101 | agentHeight: 2 102 | agentSlope: 45 103 | agentClimb: 0.4 104 | ledgeDropHeight: 0 105 | maxJumpAcrossDistance: 0 106 | minRegionArea: 2 107 | manualCellSize: 0 108 | cellSize: 0.16666667 109 | manualTileSize: 0 110 | tileSize: 256 111 | accuratePlacement: 0 112 | debug: 113 | m_Flags: 0 114 | m_NavMeshData: {fileID: 0} 115 | --- !u!1 &707020598 116 | GameObject: 117 | m_ObjectHideFlags: 0 118 | m_CorrespondingSourceObject: {fileID: 0} 119 | m_PrefabInstance: {fileID: 0} 120 | m_PrefabAsset: {fileID: 0} 121 | serializedVersion: 6 122 | m_Component: 123 | - component: {fileID: 707020601} 124 | - component: {fileID: 707020600} 125 | - component: {fileID: 707020599} 126 | m_Layer: 0 127 | m_Name: GrassBall 128 | m_TagString: Untagged 129 | m_Icon: {fileID: 0} 130 | m_NavMeshLayer: 0 131 | m_StaticEditorFlags: 0 132 | m_IsActive: 0 133 | --- !u!23 &707020599 134 | MeshRenderer: 135 | m_ObjectHideFlags: 0 136 | m_CorrespondingSourceObject: {fileID: 0} 137 | m_PrefabInstance: {fileID: 0} 138 | m_PrefabAsset: {fileID: 0} 139 | m_GameObject: {fileID: 707020598} 140 | m_Enabled: 1 141 | m_CastShadows: 1 142 | m_ReceiveShadows: 1 143 | m_DynamicOccludee: 1 144 | m_MotionVectors: 1 145 | m_LightProbeUsage: 1 146 | m_ReflectionProbeUsage: 1 147 | m_RenderingLayerMask: 1 148 | m_RendererPriority: 0 149 | m_Materials: 150 | - {fileID: 2100000, guid: dc23b46c0890b774bb9bbeb2aa16645d, type: 2} 151 | m_StaticBatchInfo: 152 | firstSubMesh: 0 153 | subMeshCount: 0 154 | m_StaticBatchRoot: {fileID: 0} 155 | m_ProbeAnchor: {fileID: 0} 156 | m_LightProbeVolumeOverride: {fileID: 0} 157 | m_ScaleInLightmap: 1 158 | m_PreserveUVs: 0 159 | m_IgnoreNormalsForChartDetection: 0 160 | m_ImportantGI: 0 161 | m_StitchLightmapSeams: 0 162 | m_SelectedEditorRenderState: 3 163 | m_MinimumChartSize: 4 164 | m_AutoUVMaxDistance: 0.5 165 | m_AutoUVMaxAngle: 89 166 | m_LightmapParameters: {fileID: 0} 167 | m_SortingLayerID: 0 168 | m_SortingLayer: 0 169 | m_SortingOrder: 0 170 | --- !u!33 &707020600 171 | MeshFilter: 172 | m_ObjectHideFlags: 0 173 | m_CorrespondingSourceObject: {fileID: 0} 174 | m_PrefabInstance: {fileID: 0} 175 | m_PrefabAsset: {fileID: 0} 176 | m_GameObject: {fileID: 707020598} 177 | m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} 178 | --- !u!4 &707020601 179 | Transform: 180 | m_ObjectHideFlags: 0 181 | m_CorrespondingSourceObject: {fileID: 0} 182 | m_PrefabInstance: {fileID: 0} 183 | m_PrefabAsset: {fileID: 0} 184 | m_GameObject: {fileID: 707020598} 185 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 186 | m_LocalPosition: {x: -2.92, y: 2.15, z: -5.44} 187 | m_LocalScale: {x: 1, y: 1, z: 1} 188 | m_Children: 189 | - {fileID: 1530340934} 190 | m_Father: {fileID: 0} 191 | m_RootOrder: 3 192 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 193 | --- !u!1001 &907473522 194 | PrefabInstance: 195 | m_ObjectHideFlags: 0 196 | serializedVersion: 2 197 | m_Modification: 198 | m_TransformParent: {fileID: 0} 199 | m_Modifications: 200 | - target: {fileID: 100006, guid: 824deb7852a56ab40b0d48bef087568c, type: 3} 201 | propertyPath: m_Name 202 | value: Fence 203 | objectReference: {fileID: 0} 204 | - target: {fileID: 100006, guid: 824deb7852a56ab40b0d48bef087568c, type: 3} 205 | propertyPath: m_IsActive 206 | value: 1 207 | objectReference: {fileID: 0} 208 | - target: {fileID: 400006, guid: 824deb7852a56ab40b0d48bef087568c, type: 3} 209 | propertyPath: m_LocalPosition.x 210 | value: -0.4 211 | objectReference: {fileID: 0} 212 | - target: {fileID: 400006, guid: 824deb7852a56ab40b0d48bef087568c, type: 3} 213 | propertyPath: m_LocalPosition.y 214 | value: 0 215 | objectReference: {fileID: 0} 216 | - target: {fileID: 400006, guid: 824deb7852a56ab40b0d48bef087568c, type: 3} 217 | propertyPath: m_LocalPosition.z 218 | value: -0.8 219 | objectReference: {fileID: 0} 220 | - target: {fileID: 400006, guid: 824deb7852a56ab40b0d48bef087568c, type: 3} 221 | propertyPath: m_LocalRotation.x 222 | value: 0 223 | objectReference: {fileID: 0} 224 | - target: {fileID: 400006, guid: 824deb7852a56ab40b0d48bef087568c, type: 3} 225 | propertyPath: m_LocalRotation.y 226 | value: 0 227 | objectReference: {fileID: 0} 228 | - target: {fileID: 400006, guid: 824deb7852a56ab40b0d48bef087568c, type: 3} 229 | propertyPath: m_LocalRotation.z 230 | value: 0 231 | objectReference: {fileID: 0} 232 | - target: {fileID: 400006, guid: 824deb7852a56ab40b0d48bef087568c, type: 3} 233 | propertyPath: m_LocalRotation.w 234 | value: 1 235 | objectReference: {fileID: 0} 236 | - target: {fileID: 400006, guid: 824deb7852a56ab40b0d48bef087568c, type: 3} 237 | propertyPath: m_RootOrder 238 | value: 5 239 | objectReference: {fileID: 0} 240 | - target: {fileID: 400006, guid: 824deb7852a56ab40b0d48bef087568c, type: 3} 241 | propertyPath: m_LocalEulerAnglesHint.x 242 | value: 0 243 | objectReference: {fileID: 0} 244 | - target: {fileID: 400006, guid: 824deb7852a56ab40b0d48bef087568c, type: 3} 245 | propertyPath: m_LocalEulerAnglesHint.y 246 | value: 0 247 | objectReference: {fileID: 0} 248 | - target: {fileID: 400006, guid: 824deb7852a56ab40b0d48bef087568c, type: 3} 249 | propertyPath: m_LocalEulerAnglesHint.z 250 | value: 0 251 | objectReference: {fileID: 0} 252 | - target: {fileID: 2300004, guid: 824deb7852a56ab40b0d48bef087568c, type: 3} 253 | propertyPath: m_Materials.Array.data[0] 254 | value: 255 | objectReference: {fileID: 2100000, guid: bd01ba28132c5a04f9daef12ebe1c17a, type: 2} 256 | - target: {fileID: 2300006, guid: 824deb7852a56ab40b0d48bef087568c, type: 3} 257 | propertyPath: m_Materials.Array.data[0] 258 | value: 259 | objectReference: {fileID: 2100000, guid: bd01ba28132c5a04f9daef12ebe1c17a, type: 2} 260 | - target: {fileID: 2300008, guid: 824deb7852a56ab40b0d48bef087568c, type: 3} 261 | propertyPath: m_Materials.Array.data[0] 262 | value: 263 | objectReference: {fileID: 2100000, guid: bd01ba28132c5a04f9daef12ebe1c17a, type: 2} 264 | - target: {fileID: 2300014, guid: 824deb7852a56ab40b0d48bef087568c, type: 3} 265 | propertyPath: m_Materials.Array.data[0] 266 | value: 267 | objectReference: {fileID: 2100000, guid: bd01ba28132c5a04f9daef12ebe1c17a, type: 2} 268 | - target: {fileID: 2300016, guid: 824deb7852a56ab40b0d48bef087568c, type: 3} 269 | propertyPath: m_Materials.Array.data[0] 270 | value: 271 | objectReference: {fileID: 2100000, guid: bd01ba28132c5a04f9daef12ebe1c17a, type: 2} 272 | - target: {fileID: 2300018, guid: 824deb7852a56ab40b0d48bef087568c, type: 3} 273 | propertyPath: m_Materials.Array.data[0] 274 | value: 275 | objectReference: {fileID: 2100000, guid: bd01ba28132c5a04f9daef12ebe1c17a, type: 2} 276 | - target: {fileID: 2300020, guid: 824deb7852a56ab40b0d48bef087568c, type: 3} 277 | propertyPath: m_Materials.Array.data[0] 278 | value: 279 | objectReference: {fileID: 2100000, guid: bd01ba28132c5a04f9daef12ebe1c17a, type: 2} 280 | - target: {fileID: 2300022, guid: 824deb7852a56ab40b0d48bef087568c, type: 3} 281 | propertyPath: m_Materials.Array.data[0] 282 | value: 283 | objectReference: {fileID: 2100000, guid: bd01ba28132c5a04f9daef12ebe1c17a, type: 2} 284 | - target: {fileID: 2300024, guid: 824deb7852a56ab40b0d48bef087568c, type: 3} 285 | propertyPath: m_Materials.Array.data[0] 286 | value: 287 | objectReference: {fileID: 2100000, guid: bd01ba28132c5a04f9daef12ebe1c17a, type: 2} 288 | - target: {fileID: 2300026, guid: 824deb7852a56ab40b0d48bef087568c, type: 3} 289 | propertyPath: m_Materials.Array.data[0] 290 | value: 291 | objectReference: {fileID: 2100000, guid: bd01ba28132c5a04f9daef12ebe1c17a, type: 2} 292 | m_RemovedComponents: [] 293 | m_SourcePrefab: {fileID: 100100000, guid: 824deb7852a56ab40b0d48bef087568c, type: 3} 294 | --- !u!1 &963491422 295 | GameObject: 296 | m_ObjectHideFlags: 0 297 | m_CorrespondingSourceObject: {fileID: 0} 298 | m_PrefabInstance: {fileID: 0} 299 | m_PrefabAsset: {fileID: 0} 300 | serializedVersion: 6 301 | m_Component: 302 | - component: {fileID: 963491425} 303 | - component: {fileID: 963491424} 304 | - component: {fileID: 963491423} 305 | m_Layer: 0 306 | m_Name: Main Camera 307 | m_TagString: MainCamera 308 | m_Icon: {fileID: 0} 309 | m_NavMeshLayer: 0 310 | m_StaticEditorFlags: 0 311 | m_IsActive: 1 312 | --- !u!81 &963491423 313 | AudioListener: 314 | m_ObjectHideFlags: 0 315 | m_CorrespondingSourceObject: {fileID: 0} 316 | m_PrefabInstance: {fileID: 0} 317 | m_PrefabAsset: {fileID: 0} 318 | m_GameObject: {fileID: 963491422} 319 | m_Enabled: 1 320 | --- !u!20 &963491424 321 | Camera: 322 | m_ObjectHideFlags: 0 323 | m_CorrespondingSourceObject: {fileID: 0} 324 | m_PrefabInstance: {fileID: 0} 325 | m_PrefabAsset: {fileID: 0} 326 | m_GameObject: {fileID: 963491422} 327 | m_Enabled: 1 328 | serializedVersion: 2 329 | m_ClearFlags: 2 330 | m_BackGroundColor: {r: 0.27450982, g: 0.27450982, b: 0.27450982, a: 0} 331 | m_projectionMatrixMode: 1 332 | m_SensorSize: {x: 36, y: 24} 333 | m_LensShift: {x: 0, y: 0} 334 | m_GateFitMode: 2 335 | m_FocalLength: 50 336 | m_NormalizedViewPortRect: 337 | serializedVersion: 2 338 | x: 0 339 | y: 0 340 | width: 1 341 | height: 1 342 | near clip plane: 0.3 343 | far clip plane: 1000 344 | field of view: 60 345 | orthographic: 0 346 | orthographic size: 5 347 | m_Depth: -1 348 | m_CullingMask: 349 | serializedVersion: 2 350 | m_Bits: 4294967295 351 | m_RenderingPath: -1 352 | m_TargetTexture: {fileID: 0} 353 | m_TargetDisplay: 0 354 | m_TargetEye: 3 355 | m_HDR: 1 356 | m_AllowMSAA: 1 357 | m_AllowDynamicResolution: 0 358 | m_ForceIntoRT: 0 359 | m_OcclusionCulling: 1 360 | m_StereoConvergence: 10 361 | m_StereoSeparation: 0.022 362 | --- !u!4 &963491425 363 | Transform: 364 | m_ObjectHideFlags: 0 365 | m_CorrespondingSourceObject: {fileID: 0} 366 | m_PrefabInstance: {fileID: 0} 367 | m_PrefabAsset: {fileID: 0} 368 | m_GameObject: {fileID: 963491422} 369 | m_LocalRotation: {x: 0.2763512, y: 0.24800041, z: -0.074048094, w: 0.9255499} 370 | m_LocalPosition: {x: -4.16, y: 3.741, z: -7.53} 371 | m_LocalScale: {x: 1, y: 1, z: 1} 372 | m_Children: [] 373 | m_Father: {fileID: 0} 374 | m_RootOrder: 0 375 | m_LocalEulerAnglesHint: {x: 33.249, y: 30.000002, z: 0} 376 | --- !u!1 &1393219951 377 | GameObject: 378 | m_ObjectHideFlags: 0 379 | m_CorrespondingSourceObject: {fileID: 0} 380 | m_PrefabInstance: {fileID: 0} 381 | m_PrefabAsset: {fileID: 0} 382 | serializedVersion: 6 383 | m_Component: 384 | - component: {fileID: 1393219953} 385 | - component: {fileID: 1393219952} 386 | m_Layer: 0 387 | m_Name: Directional Light 388 | m_TagString: Untagged 389 | m_Icon: {fileID: 0} 390 | m_NavMeshLayer: 0 391 | m_StaticEditorFlags: 0 392 | m_IsActive: 1 393 | --- !u!108 &1393219952 394 | Light: 395 | m_ObjectHideFlags: 0 396 | m_CorrespondingSourceObject: {fileID: 0} 397 | m_PrefabInstance: {fileID: 0} 398 | m_PrefabAsset: {fileID: 0} 399 | m_GameObject: {fileID: 1393219951} 400 | m_Enabled: 1 401 | serializedVersion: 8 402 | m_Type: 1 403 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 404 | m_Intensity: 1 405 | m_Range: 10 406 | m_SpotAngle: 30 407 | m_CookieSize: 10 408 | m_Shadows: 409 | m_Type: 2 410 | m_Resolution: -1 411 | m_CustomResolution: -1 412 | m_Strength: 1 413 | m_Bias: 0.05 414 | m_NormalBias: 0.4 415 | m_NearPlane: 0.2 416 | m_Cookie: {fileID: 0} 417 | m_DrawHalo: 0 418 | m_Flare: {fileID: 0} 419 | m_RenderMode: 0 420 | m_CullingMask: 421 | serializedVersion: 2 422 | m_Bits: 4294967295 423 | m_Lightmapping: 4 424 | m_LightShadowCasterMode: 0 425 | m_AreaSize: {x: 1, y: 1} 426 | m_BounceIntensity: 1 427 | m_ColorTemperature: 6570 428 | m_UseColorTemperature: 0 429 | m_ShadowRadius: 0 430 | m_ShadowAngle: 0 431 | --- !u!4 &1393219953 432 | Transform: 433 | m_ObjectHideFlags: 0 434 | m_CorrespondingSourceObject: {fileID: 0} 435 | m_PrefabInstance: {fileID: 0} 436 | m_PrefabAsset: {fileID: 0} 437 | m_GameObject: {fileID: 1393219951} 438 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 439 | m_LocalPosition: {x: 0, y: 3, z: 0} 440 | m_LocalScale: {x: 1, y: 1, z: 1} 441 | m_Children: [] 442 | m_Father: {fileID: 0} 443 | m_RootOrder: 1 444 | m_LocalEulerAnglesHint: {x: 50.000004, y: -30, z: 0} 445 | --- !u!1 &1530340933 446 | GameObject: 447 | m_ObjectHideFlags: 0 448 | m_CorrespondingSourceObject: {fileID: 0} 449 | m_PrefabInstance: {fileID: 0} 450 | m_PrefabAsset: {fileID: 0} 451 | serializedVersion: 6 452 | m_Component: 453 | - component: {fileID: 1530340934} 454 | - component: {fileID: 1530340936} 455 | - component: {fileID: 1530340935} 456 | m_Layer: 0 457 | m_Name: Surface 458 | m_TagString: Untagged 459 | m_Icon: {fileID: 0} 460 | m_NavMeshLayer: 0 461 | m_StaticEditorFlags: 0 462 | m_IsActive: 1 463 | --- !u!4 &1530340934 464 | Transform: 465 | m_ObjectHideFlags: 0 466 | m_CorrespondingSourceObject: {fileID: 0} 467 | m_PrefabInstance: {fileID: 0} 468 | m_PrefabAsset: {fileID: 0} 469 | m_GameObject: {fileID: 1530340933} 470 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 471 | m_LocalPosition: {x: 0, y: 0, z: 0} 472 | m_LocalScale: {x: 1, y: 1, z: 1} 473 | m_Children: [] 474 | m_Father: {fileID: 707020601} 475 | m_RootOrder: 0 476 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 477 | --- !u!23 &1530340935 478 | MeshRenderer: 479 | m_ObjectHideFlags: 0 480 | m_CorrespondingSourceObject: {fileID: 0} 481 | m_PrefabInstance: {fileID: 0} 482 | m_PrefabAsset: {fileID: 0} 483 | m_GameObject: {fileID: 1530340933} 484 | m_Enabled: 1 485 | m_CastShadows: 1 486 | m_ReceiveShadows: 1 487 | m_DynamicOccludee: 1 488 | m_MotionVectors: 1 489 | m_LightProbeUsage: 1 490 | m_ReflectionProbeUsage: 1 491 | m_RenderingLayerMask: 1 492 | m_RendererPriority: 0 493 | m_Materials: 494 | - {fileID: 2100000, guid: dbdf90aecf4d47943b6b8e6bb9c24c3c, type: 2} 495 | m_StaticBatchInfo: 496 | firstSubMesh: 0 497 | subMeshCount: 0 498 | m_StaticBatchRoot: {fileID: 0} 499 | m_ProbeAnchor: {fileID: 0} 500 | m_LightProbeVolumeOverride: {fileID: 0} 501 | m_ScaleInLightmap: 1 502 | m_PreserveUVs: 0 503 | m_IgnoreNormalsForChartDetection: 0 504 | m_ImportantGI: 0 505 | m_StitchLightmapSeams: 0 506 | m_SelectedEditorRenderState: 3 507 | m_MinimumChartSize: 4 508 | m_AutoUVMaxDistance: 0.5 509 | m_AutoUVMaxAngle: 89 510 | m_LightmapParameters: {fileID: 0} 511 | m_SortingLayerID: 0 512 | m_SortingLayer: 0 513 | m_SortingOrder: 0 514 | --- !u!33 &1530340936 515 | MeshFilter: 516 | m_ObjectHideFlags: 0 517 | m_CorrespondingSourceObject: {fileID: 0} 518 | m_PrefabInstance: {fileID: 0} 519 | m_PrefabAsset: {fileID: 0} 520 | m_GameObject: {fileID: 1530340933} 521 | m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} 522 | --- !u!1001 &1677255875 523 | PrefabInstance: 524 | m_ObjectHideFlags: 0 525 | serializedVersion: 2 526 | m_Modification: 527 | m_TransformParent: {fileID: 0} 528 | m_Modifications: 529 | - target: {fileID: 100000, guid: 3bce7d3885866b04ca1f005ad982a633, type: 3} 530 | propertyPath: m_Name 531 | value: GrassPlane 532 | objectReference: {fileID: 0} 533 | - target: {fileID: 100000, guid: 3bce7d3885866b04ca1f005ad982a633, type: 3} 534 | propertyPath: m_IsActive 535 | value: 1 536 | objectReference: {fileID: 0} 537 | - target: {fileID: 400000, guid: 3bce7d3885866b04ca1f005ad982a633, type: 3} 538 | propertyPath: m_LocalPosition.x 539 | value: 0 540 | objectReference: {fileID: 0} 541 | - target: {fileID: 400000, guid: 3bce7d3885866b04ca1f005ad982a633, type: 3} 542 | propertyPath: m_LocalPosition.y 543 | value: 0 544 | objectReference: {fileID: 0} 545 | - target: {fileID: 400000, guid: 3bce7d3885866b04ca1f005ad982a633, type: 3} 546 | propertyPath: m_LocalPosition.z 547 | value: 0 548 | objectReference: {fileID: 0} 549 | - target: {fileID: 400000, guid: 3bce7d3885866b04ca1f005ad982a633, type: 3} 550 | propertyPath: m_LocalRotation.x 551 | value: 0 552 | objectReference: {fileID: 0} 553 | - target: {fileID: 400000, guid: 3bce7d3885866b04ca1f005ad982a633, type: 3} 554 | propertyPath: m_LocalRotation.y 555 | value: 0 556 | objectReference: {fileID: 0} 557 | - target: {fileID: 400000, guid: 3bce7d3885866b04ca1f005ad982a633, type: 3} 558 | propertyPath: m_LocalRotation.z 559 | value: 0 560 | objectReference: {fileID: 0} 561 | - target: {fileID: 400000, guid: 3bce7d3885866b04ca1f005ad982a633, type: 3} 562 | propertyPath: m_LocalRotation.w 563 | value: 1 564 | objectReference: {fileID: 0} 565 | - target: {fileID: 400000, guid: 3bce7d3885866b04ca1f005ad982a633, type: 3} 566 | propertyPath: m_RootOrder 567 | value: 2 568 | objectReference: {fileID: 0} 569 | - target: {fileID: 400000, guid: 3bce7d3885866b04ca1f005ad982a633, type: 3} 570 | propertyPath: m_LocalEulerAnglesHint.x 571 | value: 0 572 | objectReference: {fileID: 0} 573 | - target: {fileID: 400000, guid: 3bce7d3885866b04ca1f005ad982a633, type: 3} 574 | propertyPath: m_LocalEulerAnglesHint.y 575 | value: 0 576 | objectReference: {fileID: 0} 577 | - target: {fileID: 400000, guid: 3bce7d3885866b04ca1f005ad982a633, type: 3} 578 | propertyPath: m_LocalEulerAnglesHint.z 579 | value: 0 580 | objectReference: {fileID: 0} 581 | - target: {fileID: 2300000, guid: 3bce7d3885866b04ca1f005ad982a633, type: 3} 582 | propertyPath: m_Materials.Array.data[0] 583 | value: 584 | objectReference: {fileID: 2100000, guid: dc23b46c0890b774bb9bbeb2aa16645d, type: 2} 585 | - target: {fileID: 2300002, guid: 3bce7d3885866b04ca1f005ad982a633, type: 3} 586 | propertyPath: m_Materials.Array.data[0] 587 | value: 588 | objectReference: {fileID: 2100000, guid: dbdf90aecf4d47943b6b8e6bb9c24c3c, type: 2} 589 | m_RemovedComponents: [] 590 | m_SourcePrefab: {fileID: 100100000, guid: 3bce7d3885866b04ca1f005ad982a633, type: 3} 591 | --- !u!1 &2057064217 592 | GameObject: 593 | m_ObjectHideFlags: 0 594 | m_CorrespondingSourceObject: {fileID: 0} 595 | m_PrefabInstance: {fileID: 0} 596 | m_PrefabAsset: {fileID: 0} 597 | serializedVersion: 6 598 | m_Component: 599 | - component: {fileID: 2057064220} 600 | - component: {fileID: 2057064219} 601 | - component: {fileID: 2057064218} 602 | m_Layer: 0 603 | m_Name: TessellationExample 604 | m_TagString: Untagged 605 | m_Icon: {fileID: 0} 606 | m_NavMeshLayer: 0 607 | m_StaticEditorFlags: 0 608 | m_IsActive: 0 609 | --- !u!23 &2057064218 610 | MeshRenderer: 611 | m_ObjectHideFlags: 0 612 | m_CorrespondingSourceObject: {fileID: 0} 613 | m_PrefabInstance: {fileID: 0} 614 | m_PrefabAsset: {fileID: 0} 615 | m_GameObject: {fileID: 2057064217} 616 | m_Enabled: 1 617 | m_CastShadows: 1 618 | m_ReceiveShadows: 0 619 | m_DynamicOccludee: 1 620 | m_MotionVectors: 1 621 | m_LightProbeUsage: 1 622 | m_ReflectionProbeUsage: 1 623 | m_RenderingLayerMask: 1 624 | m_RendererPriority: 0 625 | m_Materials: 626 | - {fileID: 2100000, guid: 82aab01506165e24a8e0a87e5004be17, type: 2} 627 | m_StaticBatchInfo: 628 | firstSubMesh: 0 629 | subMeshCount: 0 630 | m_StaticBatchRoot: {fileID: 0} 631 | m_ProbeAnchor: {fileID: 0} 632 | m_LightProbeVolumeOverride: {fileID: 0} 633 | m_ScaleInLightmap: 1 634 | m_PreserveUVs: 0 635 | m_IgnoreNormalsForChartDetection: 0 636 | m_ImportantGI: 0 637 | m_StitchLightmapSeams: 0 638 | m_SelectedEditorRenderState: 3 639 | m_MinimumChartSize: 4 640 | m_AutoUVMaxDistance: 0.5 641 | m_AutoUVMaxAngle: 89 642 | m_LightmapParameters: {fileID: 0} 643 | m_SortingLayerID: 0 644 | m_SortingLayer: 0 645 | m_SortingOrder: 0 646 | --- !u!33 &2057064219 647 | MeshFilter: 648 | m_ObjectHideFlags: 0 649 | m_CorrespondingSourceObject: {fileID: 0} 650 | m_PrefabInstance: {fileID: 0} 651 | m_PrefabAsset: {fileID: 0} 652 | m_GameObject: {fileID: 2057064217} 653 | m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} 654 | --- !u!4 &2057064220 655 | Transform: 656 | m_ObjectHideFlags: 0 657 | m_CorrespondingSourceObject: {fileID: 0} 658 | m_PrefabInstance: {fileID: 0} 659 | m_PrefabAsset: {fileID: 0} 660 | m_GameObject: {fileID: 2057064217} 661 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 662 | m_LocalPosition: {x: 0, y: 0, z: 10} 663 | m_LocalScale: {x: 1, y: 1, z: 1} 664 | m_Children: [] 665 | m_Father: {fileID: 0} 666 | m_RootOrder: 4 667 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 668 | -------------------------------------------------------------------------------- /Assets/Main.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bc58ece27f7998e439912a63b8244868 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b3839d5b2c8e28042a416a8c8fb1f6f5 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Materials/Fence.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: Fence 11 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 12 | m_ShaderKeywords: _METALLICGLOSSMAP _NORMALMAP _PARALLAXMAP _SPECGLOSSMAP 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: 2800000, guid: a0f5aa2eec901eb4283767f18b8b58af, type: 3} 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: 0.1, y: 0.1} 41 | m_Offset: {x: 0, y: 0} 42 | - _MainTex: 43 | m_Texture: {fileID: 2800000, guid: 8fa428c76805fff48b47c5e5528c2dda, type: 3} 44 | m_Scale: {x: 0.1, y: 0.1} 45 | m_Offset: {x: 0, y: 0} 46 | - _MetallicGlossMap: 47 | m_Texture: {fileID: 2800000, guid: 81964ad69d81e334ab92fa6882a0de74, type: 3} 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: 2800000, guid: 19119b0f25f28d74b8b9c2de494467d6, type: 3} 56 | m_Scale: {x: 1, y: 1} 57 | m_Offset: {x: 0, y: 0} 58 | - _SpecGlossMap: 59 | m_Texture: {fileID: 2800000, guid: 7155474a8cc2d2b4698ec0667c1375ab, type: 3} 60 | m_Scale: {x: 1, y: 1} 61 | m_Offset: {x: 0, y: 0} 62 | m_Floats: 63 | - _BumpScale: 1 64 | - _Cutoff: 0.5 65 | - _DetailNormalMapScale: 1 66 | - _DstBlend: 0 67 | - _GlossMapScale: 0 68 | - _Glossiness: 0.5 69 | - _GlossyReflections: 1 70 | - _Metallic: 0 71 | - _Mode: 0 72 | - _OcclusionStrength: 1 73 | - _Parallax: 0.02 74 | - _SmoothnessTextureChannel: 0 75 | - _SpecularHighlights: 1 76 | - _SrcBlend: 1 77 | - _UVSec: 0 78 | - _ZWrite: 1 79 | m_Colors: 80 | - _Color: {r: 1, g: 1, b: 1, a: 1} 81 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 82 | - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} 83 | -------------------------------------------------------------------------------- /Assets/Materials/Fence.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bd01ba28132c5a04f9daef12ebe1c17a 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Materials/Ground.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: Ground 11 | m_Shader: {fileID: 10755, guid: 0000000000000000f000000000000000, type: 0} 12 | m_ShaderKeywords: 13 | m_LightmapFlags: 4 14 | m_EnableInstancingVariants: 0 15 | m_DoubleSidedGI: 0 16 | m_CustomRenderQueue: -1 17 | stringTagMap: {} 18 | disabledShaderPasses: [] 19 | m_SavedProperties: 20 | serializedVersion: 3 21 | m_TexEnvs: 22 | - _BumpMap: 23 | m_Texture: {fileID: 0} 24 | m_Scale: {x: 1, y: 1} 25 | m_Offset: {x: 0, y: 0} 26 | - _DetailAlbedoMap: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - _DetailMask: 31 | m_Texture: {fileID: 0} 32 | m_Scale: {x: 1, y: 1} 33 | m_Offset: {x: 0, y: 0} 34 | - _DetailNormalMap: 35 | m_Texture: {fileID: 0} 36 | m_Scale: {x: 1, y: 1} 37 | m_Offset: {x: 0, y: 0} 38 | - _EmissionMap: 39 | m_Texture: {fileID: 0} 40 | m_Scale: {x: 1, y: 1} 41 | m_Offset: {x: 0, y: 0} 42 | - _MainTex: 43 | m_Texture: {fileID: 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 | - _Color: {r: 0.06129726, g: 0.37799996, b: 0.07151345, a: 1} 77 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 78 | -------------------------------------------------------------------------------- /Assets/Materials/Ground.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dbdf90aecf4d47943b6b8e6bb9c24c3c 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Materials/TessellationExample.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: TessellationExample 11 | m_Shader: {fileID: 4800000, guid: 6f7bd658827be104caaefdbf76884e95, 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 | - _TessellationUniform: 1 74 | - _UVSec: 0 75 | - _ZWrite: 1 76 | m_Colors: 77 | - _Color: {r: 0.8396226, g: 0.8396226, b: 0.8396226, a: 1} 78 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 79 | -------------------------------------------------------------------------------- /Assets/Materials/TessellationExample.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 82aab01506165e24a8e0a87e5004be17 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Mesh.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c1bda15f013619e4eaf8fbe7f6ac0b75 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Mesh/Fence.FBX: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IronWarrior/UnityGrassGeometryShader/efd2eb0d2962be0abdc36cc3fa3fc85b70da6e25/Assets/Mesh/Fence.FBX -------------------------------------------------------------------------------- /Assets/Mesh/Fence.FBX.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 824deb7852a56ab40b0d48bef087568c 3 | ModelImporter: 4 | serializedVersion: 23 5 | fileIDToRecycleName: 6 | 100000: Box001 7 | 100002: Box002 8 | 100004: Box003 9 | 100006: //RootNode 10 | 100008: Box004 11 | 100010: Box005 12 | 100012: Box006 13 | 100014: Box007 14 | 100016: Plank 15 | 100018: Plank001 16 | 100020: Plank002 17 | 100022: Plank003 18 | 100024: Plank004 19 | 100026: Post 20 | 100028: Post002 21 | 400000: Box001 22 | 400002: Box002 23 | 400004: Box003 24 | 400006: //RootNode 25 | 400008: Box004 26 | 400010: Box005 27 | 400012: Box006 28 | 400014: Box007 29 | 400016: Plank 30 | 400018: Plank001 31 | 400020: Plank002 32 | 400022: Plank003 33 | 400024: Plank004 34 | 400026: Post 35 | 400028: Post002 36 | 2100000: No Name 37 | 2300000: Box001 38 | 2300002: Box002 39 | 2300004: Box003 40 | 2300006: Box004 41 | 2300008: Box005 42 | 2300010: Box006 43 | 2300012: Box007 44 | 2300014: Plank 45 | 2300016: Plank001 46 | 2300018: Plank002 47 | 2300020: Plank003 48 | 2300022: Plank004 49 | 2300024: Post 50 | 2300026: Post002 51 | 3300000: Box001 52 | 3300002: Box002 53 | 3300004: Box003 54 | 3300006: Box004 55 | 3300008: Box005 56 | 3300010: Box006 57 | 3300012: Box007 58 | 3300014: Plank 59 | 3300016: Plank001 60 | 3300018: Plank002 61 | 3300020: Plank003 62 | 3300022: Plank004 63 | 3300024: Post 64 | 3300026: Post002 65 | 4300000: Box001 66 | 4300002: Box002 67 | 4300004: Box003 68 | 4300006: Box004 69 | 4300008: Box005 70 | 4300010: Box006 71 | 4300012: Box007 72 | 4300014: Plank 73 | 4300016: Plank001 74 | 4300018: Plank002 75 | 4300020: Plank003 76 | 4300022: Plank004 77 | 4300024: Post 78 | 4300026: Post002 79 | externalObjects: {} 80 | materials: 81 | importMaterials: 0 82 | materialName: 0 83 | materialSearch: 1 84 | materialLocation: 1 85 | animations: 86 | legacyGenerateAnimations: 4 87 | bakeSimulation: 0 88 | resampleCurves: 1 89 | optimizeGameObjects: 0 90 | motionNodeName: 91 | rigImportErrors: 92 | rigImportWarnings: 93 | animationImportErrors: 94 | animationImportWarnings: 95 | animationRetargetingWarnings: 96 | animationDoRetargetingWarnings: 0 97 | importAnimatedCustomProperties: 0 98 | importConstraints: 0 99 | animationCompression: 1 100 | animationRotationError: 0.5 101 | animationPositionError: 0.5 102 | animationScaleError: 0.5 103 | animationWrapMode: 0 104 | extraExposedTransformPaths: [] 105 | extraUserProperties: [] 106 | clipAnimations: [] 107 | isReadable: 1 108 | meshes: 109 | lODScreenPercentages: [] 110 | globalScale: 0.025 111 | meshCompression: 0 112 | addColliders: 0 113 | useSRGBMaterialColor: 1 114 | importVisibility: 1 115 | importBlendShapes: 1 116 | importCameras: 1 117 | importLights: 1 118 | swapUVChannels: 0 119 | generateSecondaryUV: 0 120 | useFileUnits: 1 121 | optimizeMeshForGPU: 1 122 | keepQuads: 0 123 | weldVertices: 1 124 | preserveHierarchy: 0 125 | indexFormat: 0 126 | secondaryUVAngleDistortion: 8 127 | secondaryUVAreaDistortion: 15.000001 128 | secondaryUVHardAngle: 88 129 | secondaryUVPackMargin: 4 130 | useFileScale: 1 131 | previousCalculatedGlobalScale: 1 132 | hasPreviousCalculatedGlobalScale: 0 133 | tangentSpace: 134 | normalSmoothAngle: 60 135 | normalImportMode: 0 136 | tangentImportMode: 3 137 | normalCalculationMode: 4 138 | legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0 139 | blendShapeNormalImportMode: 1 140 | normalSmoothingSource: 0 141 | importAnimation: 0 142 | copyAvatar: 0 143 | humanDescription: 144 | serializedVersion: 2 145 | human: [] 146 | skeleton: [] 147 | armTwist: 0.5 148 | foreArmTwist: 0.5 149 | upperLegTwist: 0.5 150 | legTwist: 0.5 151 | armStretch: 0.05 152 | legStretch: 0.05 153 | feetSpacing: 0 154 | rootMotionBoneName: 155 | hasTranslationDoF: 0 156 | hasExtraRoot: 0 157 | skeletonHasParents: 1 158 | lastHumanDescriptionAvatarSource: {instanceID: 0} 159 | animationType: 0 160 | humanoidOversampling: 1 161 | additionalBone: 0 162 | userData: 163 | assetBundleName: 164 | assetBundleVariant: 165 | -------------------------------------------------------------------------------- /Assets/Mesh/GrassPlane10x10.FBX: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IronWarrior/UnityGrassGeometryShader/efd2eb0d2962be0abdc36cc3fa3fc85b70da6e25/Assets/Mesh/GrassPlane10x10.FBX -------------------------------------------------------------------------------- /Assets/Mesh/GrassPlane10x10.FBX.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3bce7d3885866b04ca1f005ad982a633 3 | ModelImporter: 4 | serializedVersion: 23 5 | fileIDToRecycleName: 6 | 100000: //RootNode 7 | 100002: GroundPlane 8 | 400000: //RootNode 9 | 400002: GroundPlane 10 | 2100000: No Name 11 | 2300000: //RootNode 12 | 2300002: GroundPlane 13 | 3300000: //RootNode 14 | 3300002: GroundPlane 15 | 4300000: GrassPlane10x10 16 | 4300002: GroundPlane 17 | externalObjects: {} 18 | materials: 19 | importMaterials: 0 20 | materialName: 0 21 | materialSearch: 1 22 | materialLocation: 1 23 | animations: 24 | legacyGenerateAnimations: 4 25 | bakeSimulation: 0 26 | resampleCurves: 1 27 | optimizeGameObjects: 0 28 | motionNodeName: 29 | rigImportErrors: 30 | rigImportWarnings: 31 | animationImportErrors: 32 | animationImportWarnings: 33 | animationRetargetingWarnings: 34 | animationDoRetargetingWarnings: 0 35 | importAnimatedCustomProperties: 0 36 | importConstraints: 0 37 | animationCompression: 1 38 | animationRotationError: 0.5 39 | animationPositionError: 0.5 40 | animationScaleError: 0.5 41 | animationWrapMode: 0 42 | extraExposedTransformPaths: [] 43 | extraUserProperties: [] 44 | clipAnimations: [] 45 | isReadable: 1 46 | meshes: 47 | lODScreenPercentages: [] 48 | globalScale: 0.1 49 | meshCompression: 0 50 | addColliders: 0 51 | useSRGBMaterialColor: 1 52 | importVisibility: 1 53 | importBlendShapes: 1 54 | importCameras: 1 55 | importLights: 1 56 | swapUVChannels: 0 57 | generateSecondaryUV: 0 58 | useFileUnits: 1 59 | optimizeMeshForGPU: 1 60 | keepQuads: 0 61 | weldVertices: 1 62 | preserveHierarchy: 0 63 | indexFormat: 0 64 | secondaryUVAngleDistortion: 8 65 | secondaryUVAreaDistortion: 15.000001 66 | secondaryUVHardAngle: 88 67 | secondaryUVPackMargin: 4 68 | useFileScale: 1 69 | previousCalculatedGlobalScale: 1 70 | hasPreviousCalculatedGlobalScale: 0 71 | tangentSpace: 72 | normalSmoothAngle: 60 73 | normalImportMode: 0 74 | tangentImportMode: 3 75 | normalCalculationMode: 4 76 | legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0 77 | blendShapeNormalImportMode: 1 78 | normalSmoothingSource: 0 79 | importAnimation: 0 80 | copyAvatar: 0 81 | humanDescription: 82 | serializedVersion: 2 83 | human: [] 84 | skeleton: [] 85 | armTwist: 0.5 86 | foreArmTwist: 0.5 87 | upperLegTwist: 0.5 88 | legTwist: 0.5 89 | armStretch: 0.05 90 | legStretch: 0.05 91 | feetSpacing: 0 92 | rootMotionBoneName: 93 | hasTranslationDoF: 0 94 | hasExtraRoot: 0 95 | skeletonHasParents: 1 96 | lastHumanDescriptionAvatarSource: {instanceID: 0} 97 | animationType: 0 98 | humanoidOversampling: 1 99 | additionalBone: 0 100 | userData: 101 | assetBundleName: 102 | assetBundleVariant: 103 | -------------------------------------------------------------------------------- /Assets/Shaders.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7d9812b0a83dd3a4599809b62b41ed2d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Shaders/CustomTessellation.cginc: -------------------------------------------------------------------------------- 1 | // Tessellation programs based on this article by Catlike Coding: 2 | // https://catlikecoding.com/unity/tutorials/advanced-rendering/tessellation/ 3 | 4 | struct vertexInput 5 | { 6 | float4 vertex : POSITION; 7 | float3 normal : NORMAL; 8 | float4 tangent : TANGENT; 9 | }; 10 | 11 | struct vertexOutput 12 | { 13 | float4 vertex : SV_POSITION; 14 | float3 normal : NORMAL; 15 | float4 tangent : TANGENT; 16 | }; 17 | 18 | struct TessellationFactors 19 | { 20 | float edge[3] : SV_TessFactor; 21 | float inside : SV_InsideTessFactor; 22 | }; 23 | 24 | vertexInput vert(vertexInput v) 25 | { 26 | return v; 27 | } 28 | 29 | vertexOutput tessVert(vertexInput v) 30 | { 31 | vertexOutput o; 32 | // Note that the vertex is NOT transformed to clip 33 | // space here; this is done in the grass geometry shader. 34 | o.vertex = v.vertex; 35 | o.normal = v.normal; 36 | o.tangent = v.tangent; 37 | return o; 38 | } 39 | 40 | float _TessellationUniform; 41 | 42 | TessellationFactors patchConstantFunction (InputPatch patch) 43 | { 44 | TessellationFactors f; 45 | f.edge[0] = _TessellationUniform; 46 | f.edge[1] = _TessellationUniform; 47 | f.edge[2] = _TessellationUniform; 48 | f.inside = _TessellationUniform; 49 | return f; 50 | } 51 | 52 | [UNITY_domain("tri")] 53 | [UNITY_outputcontrolpoints(3)] 54 | [UNITY_outputtopology("triangle_cw")] 55 | [UNITY_partitioning("integer")] 56 | [UNITY_patchconstantfunc("patchConstantFunction")] 57 | vertexInput hull (InputPatch patch, uint id : SV_OutputControlPointID) 58 | { 59 | return patch[id]; 60 | } 61 | 62 | [UNITY_domain("tri")] 63 | vertexOutput domain(TessellationFactors factors, OutputPatch patch, float3 barycentricCoordinates : SV_DomainLocation) 64 | { 65 | vertexInput v; 66 | 67 | #define MY_DOMAIN_PROGRAM_INTERPOLATE(fieldName) v.fieldName = \ 68 | patch[0].fieldName * barycentricCoordinates.x + \ 69 | patch[1].fieldName * barycentricCoordinates.y + \ 70 | patch[2].fieldName * barycentricCoordinates.z; 71 | 72 | MY_DOMAIN_PROGRAM_INTERPOLATE(vertex) 73 | MY_DOMAIN_PROGRAM_INTERPOLATE(normal) 74 | MY_DOMAIN_PROGRAM_INTERPOLATE(tangent) 75 | 76 | return tessVert(v); 77 | } -------------------------------------------------------------------------------- /Assets/Shaders/CustomTessellation.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e49a8e63d8696ab49aa980846885e907 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Shaders/TessellationExample.shader: -------------------------------------------------------------------------------- 1 | Shader "Roystan/Tessellation Example" 2 | { 3 | Properties 4 | { 5 | _Color("Color", Color) = (1,1,1,1) 6 | _TessellationUniform ("Tessellation Uniform", Range(1, 64)) = 1 7 | } 8 | SubShader 9 | { 10 | Pass 11 | { 12 | CGPROGRAM 13 | #pragma vertex vert 14 | #pragma fragment frag 15 | #pragma hull hull 16 | #pragma domain custom_domain 17 | #pragma target 4.6 18 | 19 | #include "UnityCG.cginc" 20 | #include "CustomTessellation.cginc" 21 | 22 | // Define custom vertex and domain shaders that transform the 23 | // outputted vertex to clip space; in the CustomTessellation file, 24 | // this transformation is not performed, as it is executed later 25 | // in our grass geometry shader. 26 | vertexOutput tessVertTransformed(vertexInput v) 27 | { 28 | vertexOutput o; 29 | o.vertex = UnityObjectToClipPos(v.vertex); 30 | o.normal = v.normal; 31 | o.tangent = v.tangent; 32 | return o; 33 | } 34 | 35 | [UNITY_domain("tri")] 36 | vertexOutput custom_domain(TessellationFactors factors, OutputPatch patch, float3 barycentricCoordinates : SV_DomainLocation) 37 | { 38 | vertexInput v; 39 | 40 | #define MY_DOMAIN_PROGRAM_INTERPOLATE(fieldName) v.fieldName = \ 41 | patch[0].fieldName * barycentricCoordinates.x + \ 42 | patch[1].fieldName * barycentricCoordinates.y + \ 43 | patch[2].fieldName * barycentricCoordinates.z; 44 | 45 | MY_DOMAIN_PROGRAM_INTERPOLATE(vertex) 46 | MY_DOMAIN_PROGRAM_INTERPOLATE(normal) 47 | MY_DOMAIN_PROGRAM_INTERPOLATE(tangent) 48 | 49 | return tessVertTransformed(v); 50 | } 51 | 52 | float4 _Color; 53 | 54 | float4 frag (vertexOutput i) : SV_Target 55 | { 56 | return _Color; 57 | } 58 | ENDCG 59 | } 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /Assets/Shaders/TessellationExample.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6f7bd658827be104caaefdbf76884e95 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Textures.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a77ff0703b7457747b6757093b962e7f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Textures/Wood17_col.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IronWarrior/UnityGrassGeometryShader/efd2eb0d2962be0abdc36cc3fa3fc85b70da6e25/Assets/Textures/Wood17_col.jpg -------------------------------------------------------------------------------- /Assets/Textures/Wood17_col.jpg.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8fa428c76805fff48b47c5e5528c2dda 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | externalObjects: {} 6 | serializedVersion: 9 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: -1 35 | aniso: -1 36 | mipBias: -100 37 | wrapU: -1 38 | wrapV: -1 39 | wrapW: -1 40 | nPOTScale: 1 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 0 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 0 53 | spriteTessellationDetail: -1 54 | textureType: 0 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | platformSettings: 61 | - serializedVersion: 2 62 | buildTarget: DefaultTexturePlatform 63 | maxTextureSize: 2048 64 | resizeAlgorithm: 0 65 | textureFormat: -1 66 | textureCompression: 1 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | androidETC2FallbackOverride: 0 72 | spriteSheet: 73 | serializedVersion: 2 74 | sprites: [] 75 | outline: [] 76 | physicsShape: [] 77 | bones: [] 78 | spriteID: 79 | vertices: [] 80 | indices: 81 | edges: [] 82 | weights: [] 83 | spritePackingTag: 84 | pSDRemoveMatte: 0 85 | pSDShowRemoveMatteOption: 0 86 | userData: 87 | assetBundleName: 88 | assetBundleVariant: 89 | -------------------------------------------------------------------------------- /Assets/Textures/Wood17_disp.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IronWarrior/UnityGrassGeometryShader/efd2eb0d2962be0abdc36cc3fa3fc85b70da6e25/Assets/Textures/Wood17_disp.jpg -------------------------------------------------------------------------------- /Assets/Textures/Wood17_disp.jpg.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 19119b0f25f28d74b8b9c2de494467d6 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | externalObjects: {} 6 | serializedVersion: 9 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: -1 35 | aniso: -1 36 | mipBias: -100 37 | wrapU: -1 38 | wrapV: -1 39 | wrapW: -1 40 | nPOTScale: 1 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 0 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 0 53 | spriteTessellationDetail: -1 54 | textureType: 0 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | platformSettings: 61 | - serializedVersion: 2 62 | buildTarget: DefaultTexturePlatform 63 | maxTextureSize: 2048 64 | resizeAlgorithm: 0 65 | textureFormat: -1 66 | textureCompression: 1 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | androidETC2FallbackOverride: 0 72 | spriteSheet: 73 | serializedVersion: 2 74 | sprites: [] 75 | outline: [] 76 | physicsShape: [] 77 | bones: [] 78 | spriteID: 79 | vertices: [] 80 | indices: 81 | edges: [] 82 | weights: [] 83 | spritePackingTag: 84 | pSDRemoveMatte: 0 85 | pSDShowRemoveMatteOption: 0 86 | userData: 87 | assetBundleName: 88 | assetBundleVariant: 89 | -------------------------------------------------------------------------------- /Assets/Textures/Wood17_nrm.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IronWarrior/UnityGrassGeometryShader/efd2eb0d2962be0abdc36cc3fa3fc85b70da6e25/Assets/Textures/Wood17_nrm.jpg -------------------------------------------------------------------------------- /Assets/Textures/Wood17_nrm.jpg.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a0f5aa2eec901eb4283767f18b8b58af 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | externalObjects: {} 6 | serializedVersion: 9 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | sRGBTexture: 0 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: -1 35 | aniso: -1 36 | mipBias: -100 37 | wrapU: -1 38 | wrapV: -1 39 | wrapW: -1 40 | nPOTScale: 1 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 0 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 0 53 | spriteTessellationDetail: -1 54 | textureType: 1 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | platformSettings: 61 | - serializedVersion: 2 62 | buildTarget: DefaultTexturePlatform 63 | maxTextureSize: 2048 64 | resizeAlgorithm: 0 65 | textureFormat: -1 66 | textureCompression: 1 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | androidETC2FallbackOverride: 0 72 | spriteSheet: 73 | serializedVersion: 2 74 | sprites: [] 75 | outline: [] 76 | physicsShape: [] 77 | bones: [] 78 | spriteID: 79 | vertices: [] 80 | indices: 81 | edges: [] 82 | weights: [] 83 | spritePackingTag: 84 | pSDRemoveMatte: 0 85 | pSDShowRemoveMatteOption: 0 86 | userData: 87 | assetBundleName: 88 | assetBundleVariant: 89 | -------------------------------------------------------------------------------- /Assets/Textures/Wood17_rgh.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IronWarrior/UnityGrassGeometryShader/efd2eb0d2962be0abdc36cc3fa3fc85b70da6e25/Assets/Textures/Wood17_rgh.jpg -------------------------------------------------------------------------------- /Assets/Textures/Wood17_rgh.jpg.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 81964ad69d81e334ab92fa6882a0de74 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | externalObjects: {} 6 | serializedVersion: 9 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: -1 35 | aniso: -1 36 | mipBias: -100 37 | wrapU: -1 38 | wrapV: -1 39 | wrapW: -1 40 | nPOTScale: 1 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 0 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 0 53 | spriteTessellationDetail: -1 54 | textureType: 0 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | platformSettings: 61 | - serializedVersion: 2 62 | buildTarget: DefaultTexturePlatform 63 | maxTextureSize: 2048 64 | resizeAlgorithm: 0 65 | textureFormat: -1 66 | textureCompression: 1 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | androidETC2FallbackOverride: 0 72 | spriteSheet: 73 | serializedVersion: 2 74 | sprites: [] 75 | outline: [] 76 | physicsShape: [] 77 | bones: [] 78 | spriteID: 79 | vertices: [] 80 | indices: 81 | edges: [] 82 | weights: [] 83 | spritePackingTag: 84 | pSDRemoveMatte: 0 85 | pSDShowRemoveMatteOption: 0 86 | userData: 87 | assetBundleName: 88 | assetBundleVariant: 89 | -------------------------------------------------------------------------------- /Assets/Wind.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/IronWarrior/UnityGrassGeometryShader/efd2eb0d2962be0abdc36cc3fa3fc85b70da6e25/Assets/Wind.png -------------------------------------------------------------------------------- /Assets/Wind.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f28bba76fb944bc48be841e3ab6c411f 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | externalObjects: {} 6 | serializedVersion: 9 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 1 10 | sRGBTexture: 0 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: -1 35 | aniso: -1 36 | mipBias: -100 37 | wrapU: -1 38 | wrapV: -1 39 | wrapW: -1 40 | nPOTScale: 1 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 0 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 0 53 | spriteTessellationDetail: -1 54 | textureType: 0 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | platformSettings: 61 | - serializedVersion: 2 62 | buildTarget: DefaultTexturePlatform 63 | maxTextureSize: 2048 64 | resizeAlgorithm: 0 65 | textureFormat: -1 66 | textureCompression: 0 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | androidETC2FallbackOverride: 0 72 | - serializedVersion: 2 73 | buildTarget: Standalone 74 | maxTextureSize: 2048 75 | resizeAlgorithm: 0 76 | textureFormat: -1 77 | textureCompression: 0 78 | compressionQuality: 50 79 | crunchedCompression: 0 80 | allowsAlphaSplitting: 0 81 | overridden: 0 82 | androidETC2FallbackOverride: 0 83 | spriteSheet: 84 | serializedVersion: 2 85 | sprites: [] 86 | outline: [] 87 | physicsShape: [] 88 | bones: [] 89 | spriteID: 90 | vertices: [] 91 | indices: 92 | edges: [] 93 | weights: [] 94 | spritePackingTag: 95 | pSDRemoveMatte: 0 96 | pSDShowRemoveMatteOption: 0 97 | userData: 98 | assetBundleName: 99 | assetBundleVariant: 100 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | This is free and unencumbered software released into the public domain. 2 | 3 | Anyone is free to copy, modify, publish, use, compile, sell, or 4 | distribute this software, either in source code form or as a compiled 5 | binary, for any purpose, commercial or non-commercial, and by any 6 | means. 7 | 8 | In jurisdictions that recognize copyright laws, the author or authors 9 | of this software dedicate any and all copyright interest in the 10 | software to the public domain. We make this dedication for the benefit 11 | of the public at large and to the detriment of our heirs and 12 | successors. We intend this dedication to be an overt act of 13 | relinquishment in perpetuity of all present and future rights to this 14 | software under copyright law. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | For more information, please refer to 25 | -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.package-manager-ui": "2.0.3", 4 | "com.unity.modules.ai": "1.0.0", 5 | "com.unity.modules.animation": "1.0.0", 6 | "com.unity.modules.assetbundle": "1.0.0", 7 | "com.unity.modules.audio": "1.0.0", 8 | "com.unity.modules.cloth": "1.0.0", 9 | "com.unity.modules.director": "1.0.0", 10 | "com.unity.modules.imageconversion": "1.0.0", 11 | "com.unity.modules.imgui": "1.0.0", 12 | "com.unity.modules.jsonserialize": "1.0.0", 13 | "com.unity.modules.particlesystem": "1.0.0", 14 | "com.unity.modules.physics": "1.0.0", 15 | "com.unity.modules.physics2d": "1.0.0", 16 | "com.unity.modules.screencapture": "1.0.0", 17 | "com.unity.modules.terrain": "1.0.0", 18 | "com.unity.modules.terrainphysics": "1.0.0", 19 | "com.unity.modules.tilemap": "1.0.0", 20 | "com.unity.modules.ui": "1.0.0", 21 | "com.unity.modules.uielements": "1.0.0", 22 | "com.unity.modules.umbra": "1.0.0", 23 | "com.unity.modules.unityanalytics": "1.0.0", 24 | "com.unity.modules.unitywebrequest": "1.0.0", 25 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 26 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 27 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 28 | "com.unity.modules.unitywebrequestwww": "1.0.0", 29 | "com.unity.modules.vehicles": "1.0.0", 30 | "com.unity.modules.video": "1.0.0", 31 | "com.unity.modules.vr": "1.0.0", 32 | "com.unity.modules.wind": "1.0.0", 33 | "com.unity.modules.xr": "1.0.0" 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | m_Volume: 1 7 | Rolloff Scale: 1 8 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 1024 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_AmbisonicDecoderPlugin: 16 | m_DisableAudio: 0 17 | m_VirtualizeEffects: 1 18 | -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 8 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 | -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: 8 | - enabled: 1 9 | path: Assets/Main.unity 10 | guid: bc58ece27f7998e439912a63b8244868 11 | m_configObjects: {} 12 | -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 7 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 2 10 | m_DefaultBehaviorMode: 0 11 | m_SpritePackerMode: 0 12 | m_SpritePackerPaddingPower: 1 13 | m_EtcTextureCompressorBehavior: 1 14 | m_EtcTextureFastCompressor: 1 15 | m_EtcTextureNormalCompressor: 2 16 | m_EtcTextureBestCompressor: 4 17 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd 18 | m_ProjectGenerationRootNamespace: 19 | m_UserGeneratedProjectSuffix: 20 | m_CollabEditorSettings: 21 | inProgressEnabled: 1 22 | -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 12 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 38 | - {fileID: 10783, guid: 0000000000000000f000000000000000, type: 0} 39 | - {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0} 40 | - {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0} 41 | m_PreloadedShaders: [] 42 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 43 | type: 0} 44 | m_CustomRenderPipeline: {fileID: 0} 45 | m_TransparencySortMode: 0 46 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 47 | m_DefaultRenderingPath: 1 48 | m_DefaultMobileRenderingPath: 1 49 | m_TierSettings: [] 50 | m_LightmapStripping: 0 51 | m_FogStripping: 0 52 | m_InstancingStripping: 0 53 | m_LightmapKeepPlain: 1 54 | m_LightmapKeepDirCombined: 1 55 | m_LightmapKeepDynamicPlain: 1 56 | m_LightmapKeepDynamicDirCombined: 1 57 | m_LightmapKeepShadowMask: 1 58 | m_LightmapKeepSubtractive: 1 59 | m_FogKeepLinear: 1 60 | m_FogKeepExp: 1 61 | m_FogKeepExp2: 1 62 | m_AlbedoSwatchInfos: [] 63 | m_LightsUseLinearIntensity: 0 64 | m_LightsUseColorTemperature: 0 65 | -------------------------------------------------------------------------------- /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/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 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_AutoSimulation: 1 23 | m_QueriesHitTriggers: 1 24 | m_QueriesStartInColliders: 1 25 | m_ChangeStopsCallbacks: 0 26 | m_CallbacksOnDisable: 1 27 | m_ReuseCollisionCallbacks: 1 28 | m_AutoSyncTransforms: 0 29 | m_AlwaysShowColliders: 0 30 | m_ShowColliderSleep: 1 31 | m_ShowColliderContacts: 0 32 | m_ShowColliderAABB: 0 33 | m_ContactArrowScale: 0.2 34 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 35 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 36 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 37 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 38 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 39 | -------------------------------------------------------------------------------- /ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1386491679 &1 4 | PresetManager: 5 | m_ObjectHideFlags: 0 6 | m_DefaultList: 7 | - type: 8 | m_NativeTypeID: 108 9 | m_ManagedTypePPtr: {fileID: 0} 10 | m_ManagedTypeFallback: 11 | defaultPresets: 12 | - m_Preset: {fileID: 2655988077585873504, guid: c1cf8506f04ef2c4a88b64b6c4202eea, 13 | type: 2} 14 | - type: 15 | m_NativeTypeID: 1020 16 | m_ManagedTypePPtr: {fileID: 0} 17 | m_ManagedTypeFallback: 18 | defaultPresets: 19 | - m_Preset: {fileID: 2655988077585873504, guid: 0cd792cc87e492d43b4e95b205fc5cc6, 20 | type: 2} 21 | - type: 22 | m_NativeTypeID: 1006 23 | m_ManagedTypePPtr: {fileID: 0} 24 | m_ManagedTypeFallback: 25 | defaultPresets: 26 | - m_Preset: {fileID: 2655988077585873504, guid: 7a99f8aa944efe94cb9bd74562b7d5f9, 27 | type: 2} 28 | -------------------------------------------------------------------------------- /ProjectSettings/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: 15 7 | productGUID: e24c3002bf610f14c8a57ad5d9c1d6d8 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: Grass 17 | defaultCursor: {fileID: 0} 18 | cursorHotspot: {x: 0, y: 0} 19 | m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} 20 | m_ShowUnitySplashScreen: 1 21 | m_ShowUnitySplashLogo: 1 22 | m_SplashScreenOverlayOpacity: 1 23 | m_SplashScreenAnimation: 1 24 | m_SplashScreenLogoStyle: 1 25 | m_SplashScreenDrawMode: 0 26 | m_SplashScreenBackgroundAnimationZoom: 1 27 | m_SplashScreenLogoAnimationZoom: 1 28 | m_SplashScreenBackgroundLandscapeAspect: 1 29 | m_SplashScreenBackgroundPortraitAspect: 1 30 | m_SplashScreenBackgroundLandscapeUvs: 31 | serializedVersion: 2 32 | x: 0 33 | y: 0 34 | width: 1 35 | height: 1 36 | m_SplashScreenBackgroundPortraitUvs: 37 | serializedVersion: 2 38 | x: 0 39 | y: 0 40 | width: 1 41 | height: 1 42 | m_SplashScreenLogos: [] 43 | m_VirtualRealitySplashScreen: {fileID: 0} 44 | m_HolographicTrackingLossScreen: {fileID: 0} 45 | defaultScreenWidth: 1024 46 | defaultScreenHeight: 768 47 | defaultScreenWidthWeb: 960 48 | defaultScreenHeightWeb: 600 49 | m_StereoRenderingPath: 0 50 | m_ActiveColorSpace: 1 51 | m_MTRendering: 1 52 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 53 | iosShowActivityIndicatorOnLoading: -1 54 | androidShowActivityIndicatorOnLoading: -1 55 | iosAppInBackgroundBehavior: 0 56 | displayResolutionDialog: 1 57 | iosAllowHTTPDownload: 1 58 | allowedAutorotateToPortrait: 1 59 | allowedAutorotateToPortraitUpsideDown: 1 60 | allowedAutorotateToLandscapeRight: 1 61 | allowedAutorotateToLandscapeLeft: 1 62 | useOSAutorotation: 1 63 | use32BitDisplayBuffer: 1 64 | preserveFramebufferAlpha: 0 65 | disableDepthAndStencilBuffers: 0 66 | androidStartInFullscreen: 1 67 | androidRenderOutsideSafeArea: 0 68 | androidBlitType: 0 69 | defaultIsNativeResolution: 1 70 | macRetinaSupport: 1 71 | runInBackground: 1 72 | captureSingleScreen: 0 73 | muteOtherAudioSources: 0 74 | Prepare IOS For Recording: 0 75 | Force IOS Speakers When Recording: 0 76 | deferSystemGesturesMode: 0 77 | hideHomeButton: 0 78 | submitAnalytics: 1 79 | usePlayerLog: 1 80 | bakeCollisionMeshes: 0 81 | forceSingleInstance: 0 82 | resizableWindow: 0 83 | useMacAppStoreValidation: 0 84 | macAppStoreCategory: public.app-category.games 85 | gpuSkinning: 1 86 | graphicsJobs: 0 87 | xboxPIXTextureCapture: 0 88 | xboxEnableAvatar: 0 89 | xboxEnableKinect: 0 90 | xboxEnableKinectAutoTracking: 0 91 | xboxEnableFitness: 0 92 | visibleInBackground: 1 93 | allowFullscreenSwitch: 1 94 | graphicsJobMode: 0 95 | fullscreenMode: 1 96 | xboxSpeechDB: 0 97 | xboxEnableHeadOrientation: 0 98 | xboxEnableGuest: 0 99 | xboxEnablePIXSampling: 0 100 | metalFramebufferOnly: 0 101 | xboxOneResolution: 0 102 | xboxOneSResolution: 0 103 | xboxOneXResolution: 3 104 | xboxOneMonoLoggingLevel: 0 105 | xboxOneLoggingLevel: 1 106 | xboxOneDisableEsram: 0 107 | xboxOnePresentImmediateThreshold: 0 108 | switchQueueCommandMemory: 1048576 109 | switchQueueControlMemory: 16384 110 | switchQueueComputeMemory: 262144 111 | switchNVNShaderPoolsGranularity: 33554432 112 | switchNVNDefaultPoolsGranularity: 16777216 113 | switchNVNOtherPoolsGranularity: 16777216 114 | vulkanEnableSetSRGBWrite: 0 115 | m_SupportedAspectRatios: 116 | 4:3: 1 117 | 5:4: 1 118 | 16:10: 1 119 | 16:9: 1 120 | Others: 1 121 | bundleVersion: 0.1 122 | preloadedAssets: [] 123 | metroInputSource: 0 124 | wsaTransparentSwapchain: 0 125 | m_HolographicPauseOnTrackingLoss: 1 126 | xboxOneDisableKinectGpuReservation: 0 127 | xboxOneEnable7thCore: 0 128 | isWsaHolographicRemotingEnabled: 0 129 | vrSettings: 130 | cardboard: 131 | depthFormat: 0 132 | enableTransitionView: 0 133 | daydream: 134 | depthFormat: 0 135 | useSustainedPerformanceMode: 0 136 | enableVideoLayer: 0 137 | useProtectedVideoMemory: 0 138 | minimumSupportedHeadTracking: 0 139 | maximumSupportedHeadTracking: 1 140 | hololens: 141 | depthFormat: 1 142 | depthBufferSharingEnabled: 0 143 | oculus: 144 | sharedDepthBuffer: 1 145 | dashSupport: 1 146 | enable360StereoCapture: 0 147 | protectGraphicsMemory: 0 148 | enableFrameTimingStats: 0 149 | useHDRDisplay: 0 150 | m_ColorGamuts: 00000000 151 | targetPixelDensity: 30 152 | resolutionScalingMode: 0 153 | androidSupportedAspectRatio: 1 154 | androidMaxAspectRatio: 2.1 155 | applicationIdentifier: {} 156 | buildNumber: {} 157 | AndroidBundleVersionCode: 1 158 | AndroidMinSdkVersion: 16 159 | AndroidTargetSdkVersion: 0 160 | AndroidPreferredInstallLocation: 1 161 | aotOptions: 162 | stripEngineCode: 1 163 | iPhoneStrippingLevel: 0 164 | iPhoneScriptCallOptimization: 0 165 | ForceInternetPermission: 0 166 | ForceSDCardPermission: 0 167 | CreateWallpaper: 0 168 | APKExpansionFiles: 0 169 | keepLoadedShadersAlive: 0 170 | StripUnusedMeshComponents: 1 171 | VertexChannelCompressionMask: 4054 172 | iPhoneSdkVersion: 988 173 | iOSTargetOSVersionString: 9.0 174 | tvOSSdkVersion: 0 175 | tvOSRequireExtendedGameController: 0 176 | tvOSTargetOSVersionString: 9.0 177 | uIPrerenderedIcon: 0 178 | uIRequiresPersistentWiFi: 0 179 | uIRequiresFullScreen: 1 180 | uIStatusBarHidden: 1 181 | uIExitOnSuspend: 0 182 | uIStatusBarStyle: 0 183 | iPhoneSplashScreen: {fileID: 0} 184 | iPhoneHighResSplashScreen: {fileID: 0} 185 | iPhoneTallHighResSplashScreen: {fileID: 0} 186 | iPhone47inSplashScreen: {fileID: 0} 187 | iPhone55inPortraitSplashScreen: {fileID: 0} 188 | iPhone55inLandscapeSplashScreen: {fileID: 0} 189 | iPhone58inPortraitSplashScreen: {fileID: 0} 190 | iPhone58inLandscapeSplashScreen: {fileID: 0} 191 | iPadPortraitSplashScreen: {fileID: 0} 192 | iPadHighResPortraitSplashScreen: {fileID: 0} 193 | iPadLandscapeSplashScreen: {fileID: 0} 194 | iPadHighResLandscapeSplashScreen: {fileID: 0} 195 | appleTVSplashScreen: {fileID: 0} 196 | appleTVSplashScreen2x: {fileID: 0} 197 | tvOSSmallIconLayers: [] 198 | tvOSSmallIconLayers2x: [] 199 | tvOSLargeIconLayers: [] 200 | tvOSLargeIconLayers2x: [] 201 | tvOSTopShelfImageLayers: [] 202 | tvOSTopShelfImageLayers2x: [] 203 | tvOSTopShelfImageWideLayers: [] 204 | tvOSTopShelfImageWideLayers2x: [] 205 | iOSLaunchScreenType: 0 206 | iOSLaunchScreenPortrait: {fileID: 0} 207 | iOSLaunchScreenLandscape: {fileID: 0} 208 | iOSLaunchScreenBackgroundColor: 209 | serializedVersion: 2 210 | rgba: 0 211 | iOSLaunchScreenFillPct: 100 212 | iOSLaunchScreenSize: 100 213 | iOSLaunchScreenCustomXibPath: 214 | iOSLaunchScreeniPadType: 0 215 | iOSLaunchScreeniPadImage: {fileID: 0} 216 | iOSLaunchScreeniPadBackgroundColor: 217 | serializedVersion: 2 218 | rgba: 0 219 | iOSLaunchScreeniPadFillPct: 100 220 | iOSLaunchScreeniPadSize: 100 221 | iOSLaunchScreeniPadCustomXibPath: 222 | iOSUseLaunchScreenStoryboard: 0 223 | iOSLaunchScreenCustomStoryboardPath: 224 | iOSDeviceRequirements: [] 225 | iOSURLSchemes: [] 226 | iOSBackgroundModes: 0 227 | iOSMetalForceHardShadows: 0 228 | metalEditorSupport: 1 229 | metalAPIValidation: 1 230 | iOSRenderExtraFrameOnPause: 0 231 | appleDeveloperTeamID: 232 | iOSManualSigningProvisioningProfileID: 233 | tvOSManualSigningProvisioningProfileID: 234 | iOSManualSigningProvisioningProfileType: 0 235 | tvOSManualSigningProvisioningProfileType: 0 236 | appleEnableAutomaticSigning: 0 237 | iOSRequireARKit: 0 238 | appleEnableProMotion: 0 239 | clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea 240 | templatePackageId: com.unity.template.3d@1.0.4 241 | templateDefaultScene: Assets/Scenes/SampleScene.unity 242 | AndroidTargetArchitectures: 5 243 | AndroidSplashScreenScale: 0 244 | androidSplashScreen: {fileID: 0} 245 | AndroidKeystoreName: 246 | AndroidKeyaliasName: 247 | AndroidBuildApkPerCpuArchitecture: 0 248 | AndroidTVCompatibility: 1 249 | AndroidIsGame: 1 250 | AndroidEnableTango: 0 251 | androidEnableBanner: 1 252 | androidUseLowAccuracyLocation: 0 253 | m_AndroidBanners: 254 | - width: 320 255 | height: 180 256 | banner: {fileID: 0} 257 | androidGamepadSupportLevel: 0 258 | resolutionDialogBanner: {fileID: 0} 259 | m_BuildTargetIcons: [] 260 | m_BuildTargetPlatformIcons: [] 261 | m_BuildTargetBatching: 262 | - m_BuildTarget: Standalone 263 | m_StaticBatching: 1 264 | m_DynamicBatching: 0 265 | - m_BuildTarget: tvOS 266 | m_StaticBatching: 1 267 | m_DynamicBatching: 0 268 | - m_BuildTarget: Android 269 | m_StaticBatching: 1 270 | m_DynamicBatching: 0 271 | - m_BuildTarget: iPhone 272 | m_StaticBatching: 1 273 | m_DynamicBatching: 0 274 | - m_BuildTarget: WebGL 275 | m_StaticBatching: 0 276 | m_DynamicBatching: 0 277 | m_BuildTargetGraphicsAPIs: 278 | - m_BuildTarget: AndroidPlayer 279 | m_APIs: 0b00000008000000 280 | m_Automatic: 1 281 | - m_BuildTarget: iOSSupport 282 | m_APIs: 10000000 283 | m_Automatic: 1 284 | - m_BuildTarget: AppleTVSupport 285 | m_APIs: 10000000 286 | m_Automatic: 0 287 | - m_BuildTarget: WebGLSupport 288 | m_APIs: 0b000000 289 | m_Automatic: 1 290 | m_BuildTargetVRSettings: 291 | - m_BuildTarget: Standalone 292 | m_Enabled: 0 293 | m_Devices: 294 | - Oculus 295 | - OpenVR 296 | m_BuildTargetEnableVuforiaSettings: [] 297 | openGLRequireES31: 0 298 | openGLRequireES31AEP: 0 299 | m_TemplateCustomTags: {} 300 | mobileMTRendering: 301 | Android: 1 302 | iPhone: 1 303 | tvOS: 1 304 | m_BuildTargetGroupLightmapEncodingQuality: [] 305 | m_BuildTargetGroupLightmapSettings: [] 306 | playModeTestRunnerEnabled: 0 307 | runPlayModeTestAsEditModeTest: 0 308 | actionOnDotNetUnhandledException: 1 309 | enableInternalProfiler: 0 310 | logObjCUncaughtExceptions: 1 311 | enableCrashReportAPI: 0 312 | cameraUsageDescription: 313 | locationUsageDescription: 314 | microphoneUsageDescription: 315 | switchNetLibKey: 316 | switchSocketMemoryPoolSize: 6144 317 | switchSocketAllocatorPoolSize: 128 318 | switchSocketConcurrencyLimit: 14 319 | switchScreenResolutionBehavior: 2 320 | switchUseCPUProfiler: 0 321 | switchApplicationID: 0x01004b9000490000 322 | switchNSODependencies: 323 | switchTitleNames_0: 324 | switchTitleNames_1: 325 | switchTitleNames_2: 326 | switchTitleNames_3: 327 | switchTitleNames_4: 328 | switchTitleNames_5: 329 | switchTitleNames_6: 330 | switchTitleNames_7: 331 | switchTitleNames_8: 332 | switchTitleNames_9: 333 | switchTitleNames_10: 334 | switchTitleNames_11: 335 | switchTitleNames_12: 336 | switchTitleNames_13: 337 | switchTitleNames_14: 338 | switchPublisherNames_0: 339 | switchPublisherNames_1: 340 | switchPublisherNames_2: 341 | switchPublisherNames_3: 342 | switchPublisherNames_4: 343 | switchPublisherNames_5: 344 | switchPublisherNames_6: 345 | switchPublisherNames_7: 346 | switchPublisherNames_8: 347 | switchPublisherNames_9: 348 | switchPublisherNames_10: 349 | switchPublisherNames_11: 350 | switchPublisherNames_12: 351 | switchPublisherNames_13: 352 | switchPublisherNames_14: 353 | switchIcons_0: {fileID: 0} 354 | switchIcons_1: {fileID: 0} 355 | switchIcons_2: {fileID: 0} 356 | switchIcons_3: {fileID: 0} 357 | switchIcons_4: {fileID: 0} 358 | switchIcons_5: {fileID: 0} 359 | switchIcons_6: {fileID: 0} 360 | switchIcons_7: {fileID: 0} 361 | switchIcons_8: {fileID: 0} 362 | switchIcons_9: {fileID: 0} 363 | switchIcons_10: {fileID: 0} 364 | switchIcons_11: {fileID: 0} 365 | switchIcons_12: {fileID: 0} 366 | switchIcons_13: {fileID: 0} 367 | switchIcons_14: {fileID: 0} 368 | switchSmallIcons_0: {fileID: 0} 369 | switchSmallIcons_1: {fileID: 0} 370 | switchSmallIcons_2: {fileID: 0} 371 | switchSmallIcons_3: {fileID: 0} 372 | switchSmallIcons_4: {fileID: 0} 373 | switchSmallIcons_5: {fileID: 0} 374 | switchSmallIcons_6: {fileID: 0} 375 | switchSmallIcons_7: {fileID: 0} 376 | switchSmallIcons_8: {fileID: 0} 377 | switchSmallIcons_9: {fileID: 0} 378 | switchSmallIcons_10: {fileID: 0} 379 | switchSmallIcons_11: {fileID: 0} 380 | switchSmallIcons_12: {fileID: 0} 381 | switchSmallIcons_13: {fileID: 0} 382 | switchSmallIcons_14: {fileID: 0} 383 | switchManualHTML: 384 | switchAccessibleURLs: 385 | switchLegalInformation: 386 | switchMainThreadStackSize: 1048576 387 | switchPresenceGroupId: 388 | switchLogoHandling: 0 389 | switchReleaseVersion: 0 390 | switchDisplayVersion: 1.0.0 391 | switchStartupUserAccount: 0 392 | switchTouchScreenUsage: 0 393 | switchSupportedLanguagesMask: 0 394 | switchLogoType: 0 395 | switchApplicationErrorCodeCategory: 396 | switchUserAccountSaveDataSize: 0 397 | switchUserAccountSaveDataJournalSize: 0 398 | switchApplicationAttribute: 0 399 | switchCardSpecSize: -1 400 | switchCardSpecClock: -1 401 | switchRatingsMask: 0 402 | switchRatingsInt_0: 0 403 | switchRatingsInt_1: 0 404 | switchRatingsInt_2: 0 405 | switchRatingsInt_3: 0 406 | switchRatingsInt_4: 0 407 | switchRatingsInt_5: 0 408 | switchRatingsInt_6: 0 409 | switchRatingsInt_7: 0 410 | switchRatingsInt_8: 0 411 | switchRatingsInt_9: 0 412 | switchRatingsInt_10: 0 413 | switchRatingsInt_11: 0 414 | switchLocalCommunicationIds_0: 415 | switchLocalCommunicationIds_1: 416 | switchLocalCommunicationIds_2: 417 | switchLocalCommunicationIds_3: 418 | switchLocalCommunicationIds_4: 419 | switchLocalCommunicationIds_5: 420 | switchLocalCommunicationIds_6: 421 | switchLocalCommunicationIds_7: 422 | switchParentalControl: 0 423 | switchAllowsScreenshot: 1 424 | switchAllowsVideoCapturing: 1 425 | switchAllowsRuntimeAddOnContentInstall: 0 426 | switchDataLossConfirmation: 0 427 | switchUserAccountLockEnabled: 0 428 | switchSystemResourceMemory: 16777216 429 | switchSupportedNpadStyles: 3 430 | switchNativeFsCacheSize: 32 431 | switchIsHoldTypeHorizontal: 0 432 | switchSupportedNpadCount: 8 433 | switchSocketConfigEnabled: 0 434 | switchTcpInitialSendBufferSize: 32 435 | switchTcpInitialReceiveBufferSize: 64 436 | switchTcpAutoSendBufferSizeMax: 256 437 | switchTcpAutoReceiveBufferSizeMax: 256 438 | switchUdpSendBufferSize: 9 439 | switchUdpReceiveBufferSize: 42 440 | switchSocketBufferEfficiency: 4 441 | switchSocketInitializeEnabled: 1 442 | switchNetworkInterfaceManagerInitializeEnabled: 1 443 | switchPlayerConnectionEnabled: 1 444 | ps4NPAgeRating: 12 445 | ps4NPTitleSecret: 446 | ps4NPTrophyPackPath: 447 | ps4ParentalLevel: 11 448 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 449 | ps4Category: 0 450 | ps4MasterVersion: 01.00 451 | ps4AppVersion: 01.00 452 | ps4AppType: 0 453 | ps4ParamSfxPath: 454 | ps4VideoOutPixelFormat: 0 455 | ps4VideoOutInitialWidth: 1920 456 | ps4VideoOutBaseModeInitialWidth: 1920 457 | ps4VideoOutReprojectionRate: 60 458 | ps4PronunciationXMLPath: 459 | ps4PronunciationSIGPath: 460 | ps4BackgroundImagePath: 461 | ps4StartupImagePath: 462 | ps4StartupImagesFolder: 463 | ps4IconImagesFolder: 464 | ps4SaveDataImagePath: 465 | ps4SdkOverride: 466 | ps4BGMPath: 467 | ps4ShareFilePath: 468 | ps4ShareOverlayImagePath: 469 | ps4PrivacyGuardImagePath: 470 | ps4NPtitleDatPath: 471 | ps4RemotePlayKeyAssignment: -1 472 | ps4RemotePlayKeyMappingDir: 473 | ps4PlayTogetherPlayerCount: 0 474 | ps4EnterButtonAssignment: 1 475 | ps4ApplicationParam1: 0 476 | ps4ApplicationParam2: 0 477 | ps4ApplicationParam3: 0 478 | ps4ApplicationParam4: 0 479 | ps4DownloadDataSize: 0 480 | ps4GarlicHeapSize: 2048 481 | ps4ProGarlicHeapSize: 2560 482 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 483 | ps4pnSessions: 1 484 | ps4pnPresence: 1 485 | ps4pnFriends: 1 486 | ps4pnGameCustomData: 1 487 | playerPrefsSupport: 0 488 | enableApplicationExit: 0 489 | resetTempFolder: 1 490 | restrictedAudioUsageRights: 0 491 | ps4UseResolutionFallback: 0 492 | ps4ReprojectionSupport: 0 493 | ps4UseAudio3dBackend: 0 494 | ps4SocialScreenEnabled: 0 495 | ps4ScriptOptimizationLevel: 0 496 | ps4Audio3dVirtualSpeakerCount: 14 497 | ps4attribCpuUsage: 0 498 | ps4PatchPkgPath: 499 | ps4PatchLatestPkgPath: 500 | ps4PatchChangeinfoPath: 501 | ps4PatchDayOne: 0 502 | ps4attribUserManagement: 0 503 | ps4attribMoveSupport: 0 504 | ps4attrib3DSupport: 0 505 | ps4attribShareSupport: 0 506 | ps4attribExclusiveVR: 0 507 | ps4disableAutoHideSplash: 0 508 | ps4videoRecordingFeaturesUsed: 0 509 | ps4contentSearchFeaturesUsed: 0 510 | ps4attribEyeToEyeDistanceSettingVR: 0 511 | ps4IncludedModules: [] 512 | monoEnv: 513 | splashScreenBackgroundSourceLandscape: {fileID: 0} 514 | splashScreenBackgroundSourcePortrait: {fileID: 0} 515 | spritePackerPolicy: 516 | webGLMemorySize: 256 517 | webGLExceptionSupport: 1 518 | webGLNameFilesAsHashes: 0 519 | webGLDataCaching: 1 520 | webGLDebugSymbols: 0 521 | webGLEmscriptenArgs: 522 | webGLModulesDirectory: 523 | webGLTemplate: APPLICATION:Default 524 | webGLAnalyzeBuildSize: 0 525 | webGLUseEmbeddedResources: 0 526 | webGLCompressionFormat: 1 527 | webGLLinkerTarget: 1 528 | webGLThreadsSupport: 0 529 | scriptingDefineSymbols: {} 530 | platformArchitecture: {} 531 | scriptingBackend: {} 532 | il2cppCompilerConfiguration: {} 533 | managedStrippingLevel: {} 534 | incrementalIl2cppBuild: {} 535 | allowUnsafeCode: 0 536 | additionalIl2CppArgs: 537 | scriptingRuntimeVersion: 1 538 | apiCompatibilityLevelPerPlatform: {} 539 | m_RenderingPath: 1 540 | m_MobileRenderingPath: 1 541 | metroPackageName: Template_3D 542 | metroPackageVersion: 543 | metroCertificatePath: 544 | metroCertificatePassword: 545 | metroCertificateSubject: 546 | metroCertificateIssuer: 547 | metroCertificateNotAfter: 0000000000000000 548 | metroApplicationDescription: Template_3D 549 | wsaImages: {} 550 | metroTileShortName: 551 | metroTileShowName: 0 552 | metroMediumTileShowName: 0 553 | metroLargeTileShowName: 0 554 | metroWideTileShowName: 0 555 | metroSupportStreamingInstall: 0 556 | metroLastRequiredScene: 0 557 | metroDefaultTileSize: 1 558 | metroTileForegroundText: 2 559 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 560 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, 561 | a: 1} 562 | metroSplashScreenUseBackgroundColor: 0 563 | platformCapabilities: {} 564 | metroTargetDeviceFamilies: {} 565 | metroFTAName: 566 | metroFTAFileTypes: [] 567 | metroProtocolName: 568 | metroCompilationOverrides: 1 569 | XboxOneProductId: 570 | XboxOneUpdateKey: 571 | XboxOneSandboxId: 572 | XboxOneContentId: 573 | XboxOneTitleId: 574 | XboxOneSCId: 575 | XboxOneGameOsOverridePath: 576 | XboxOnePackagingOverridePath: 577 | XboxOneAppManifestOverridePath: 578 | XboxOneVersion: 1.0.0.0 579 | XboxOnePackageEncryption: 0 580 | XboxOnePackageUpdateGranularity: 2 581 | XboxOneDescription: 582 | XboxOneLanguage: 583 | - enus 584 | XboxOneCapability: [] 585 | XboxOneGameRating: {} 586 | XboxOneIsContentPackage: 0 587 | XboxOneEnableGPUVariability: 0 588 | XboxOneSockets: {} 589 | XboxOneSplashScreen: {fileID: 0} 590 | XboxOneAllowedProductIds: [] 591 | XboxOnePersistentLocalStorageSize: 0 592 | XboxOneXTitleMemory: 8 593 | xboxOneScriptCompiler: 0 594 | XboxOneOverrideIdentityName: 595 | vrEditorSettings: 596 | daydream: 597 | daydreamIconForeground: {fileID: 0} 598 | daydreamIconBackground: {fileID: 0} 599 | cloudServicesEnabled: 600 | UNet: 1 601 | luminIcon: 602 | m_Name: 603 | m_ModelFolderPath: 604 | m_PortalFolderPath: 605 | luminCert: 606 | m_CertPath: 607 | m_PrivateKeyPath: 608 | luminIsChannelApp: 0 609 | luminVersion: 610 | m_VersionCode: 1 611 | m_VersionName: 612 | facebookSdkVersion: 7.9.4 613 | facebookAppId: 614 | facebookCookies: 1 615 | facebookLogging: 1 616 | facebookStatus: 1 617 | facebookXfbml: 0 618 | facebookFrictionlessRequests: 1 619 | apiCompatibilityLevel: 6 620 | cloudProjectId: 621 | framebufferDepthMemorylessMode: 0 622 | projectName: 623 | organizationId: 624 | cloudEnabled: 0 625 | enableNativePlatformBackendsForNewInputSystem: 0 626 | disableOldInputManagerSupport: 0 627 | legacyClampBlendShapeWeights: 0 628 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2018.3.7f1 2 | -------------------------------------------------------------------------------- /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: 2 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: 40 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: 1 164 | antiAliasing: 4 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: 3 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: 1 199 | antiAliasing: 8 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 | Nintendo 3DS: 5 222 | Nintendo Switch: 5 223 | PS4: 5 224 | PSP2: 2 225 | Standalone: 5 226 | Tizen: 2 227 | WebGL: 3 228 | WiiU: 5 229 | Windows Store Apps: 5 230 | XboxOne: 5 231 | iPhone: 2 232 | tvOS: 2 233 | -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - PostProcessing 17 | - 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.1 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 1 7 | m_Enabled: 1 8 | m_TestMode: 0 9 | m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events 10 | m_EventUrl: https://cdp.cloud.unity3d.com/v1/events 11 | m_ConfigUrl: https://config.uca.cloud.unity3d.com 12 | m_TestInitMode: 0 13 | CrashReportingSettings: 14 | m_EventUrl: https://perf-events.cloud.unity3d.com 15 | m_Enabled: 0 16 | m_LogBufferSize: 10 17 | m_CaptureEditorExceptions: 1 18 | UnityPurchasingSettings: 19 | m_Enabled: 0 20 | m_TestMode: 0 21 | UnityAnalyticsSettings: 22 | m_Enabled: 0 23 | m_TestMode: 0 24 | m_InitializeOnStartup: 1 25 | UnityAdsSettings: 26 | m_Enabled: 0 27 | m_InitializeOnStartup: 1 28 | m_TestMode: 0 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | m_GameIds: {} 32 | m_GameId: 33 | PerformanceReportingSettings: 34 | m_Enabled: 0 35 | -------------------------------------------------------------------------------- /ProjectSettings/VFXManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!937362698 &1 4 | VFXManager: 5 | m_ObjectHideFlags: 0 6 | m_IndirectShader: {fileID: 0} 7 | m_CopyBufferShader: {fileID: 0} 8 | m_SortShader: {fileID: 0} 9 | m_RenderPipeSettingsPath: 10 | m_FixedTimeStep: 0.016666668 11 | m_MaxDeltaTime: 0.05 12 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Grass Geometry Shader for Unity 2 | Unity 2018.3 project source for completed [Grass Shader Tutorial](https://roystan.net/articles/grass-shader.html) from the site [roystan.net](https://roystan.net/). 3 | 4 | ![alt text](https://i.imgur.com/37U69OT.png) 5 | 6 | Uses a geometry shader to generate blades of grass. Controls the density of the blades by tessellating the input mesh. Can cast and receive shadows. 7 | 8 | Wood texture used on fence model is sourced from [CCO Textures](https://cc0textures.com/). 9 | --------------------------------------------------------------------------------