├── .gitignore ├── .vscode ├── extensions.json ├── launch.json └── settings.json ├── .vsconfig ├── Assets ├── ChunkPrefab.prefab ├── ChunkPrefab.prefab.meta ├── FastNoiseLite.meta ├── FastNoiseLite │ ├── FastNoiseLite.cs │ ├── FastNoiseLite.cs.meta │ ├── README.md │ └── README.md.meta ├── Material.mat ├── Material.mat.meta ├── Minecraft.meta ├── Minecraft │ ├── Chunk.cs │ ├── Chunk.cs.meta │ ├── ChunkJob.cs │ ├── ChunkJob.cs.meta │ ├── ColliderJob.cs │ ├── ColliderJob.cs.meta │ ├── Minecraft.cs │ ├── Minecraft.cs.meta │ ├── Minecraft.unity │ └── Minecraft.unity.meta ├── Planet.meta ├── Planet │ ├── Node.cs │ ├── Node.cs.meta │ ├── NodeJob.cs │ ├── NodeJob.cs.meta │ ├── Octree.cs │ ├── Octree.cs.meta │ ├── Planet.unity │ └── Planet.unity.meta ├── Shared.meta └── Shared │ ├── IndexUtilities.cs │ ├── IndexUtilities.cs.meta │ ├── JobCompleter.cs │ ├── JobCompleter.cs.meta │ ├── LookAround.cs │ ├── LookAround.cs.meta │ ├── MeshingUtility.cs │ ├── MeshingUtility.cs.meta │ ├── Tables.cs │ └── Tables.cs.meta ├── Packages ├── manifest.json └── packages-lock.json ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── MemorySettings.asset ├── NavMeshAreas.asset ├── PackageManagerSettings.asset ├── Packages │ └── com.unity.testtools.codecoverage │ │ └── Settings.json ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── SceneTemplateSettings.json ├── TagManager.asset ├── TimeManager.asset ├── UnityConnectSettings.asset ├── VFXManager.asset ├── VersionControlSettings.asset ├── XRSettings.asset └── boot.config ├── README.md └── banner.png /.gitignore: -------------------------------------------------------------------------------- 1 | # This .gitignore file should be placed at the root of your Unity project directory 2 | # 3 | # Get latest from https://github.com/github/gitignore/blob/main/Unity.gitignore 4 | # 5 | /[Ll]ibrary/ 6 | /[Tt]emp/ 7 | /[Oo]bj/ 8 | /[Bb]uild/ 9 | /[Bb]uilds/ 10 | /[Ll]ogs/ 11 | /[Uu]ser[Ss]ettings/ 12 | 13 | # MemoryCaptures can get excessive in size. 14 | # They also could contain extremely sensitive data 15 | /[Mm]emoryCaptures/ 16 | 17 | # Recordings can get excessive in size 18 | /[Rr]ecordings/ 19 | 20 | # Uncomment this line if you wish to ignore the asset store tools plugin 21 | # /[Aa]ssets/AssetStoreTools* 22 | 23 | # Autogenerated Jetbrains Rider plugin 24 | /[Aa]ssets/Plugins/Editor/JetBrains* 25 | 26 | # Visual Studio cache directory 27 | .vs/ 28 | 29 | # Gradle cache directory 30 | .gradle/ 31 | 32 | # Autogenerated VS/MD/Consulo solution and project files 33 | ExportedObj/ 34 | .consulo/ 35 | *.csproj 36 | *.unityproj 37 | *.sln 38 | *.suo 39 | *.tmp 40 | *.user 41 | *.userprefs 42 | *.pidb 43 | *.booproj 44 | *.svd 45 | *.pdb 46 | *.mdb 47 | *.opendb 48 | *.VC.db 49 | 50 | # Unity3D generated meta files 51 | *.pidb.meta 52 | *.pdb.meta 53 | *.mdb.meta 54 | 55 | # Unity3D generated file on crash reports 56 | sysinfo.txt 57 | 58 | # Builds 59 | *.apk 60 | *.aab 61 | *.unitypackage 62 | *.app 63 | 64 | # Crashlytics generated file 65 | crashlytics-build.properties 66 | 67 | # Packed Addressables 68 | /[Aa]ssets/[Aa]ddressable[Aa]ssets[Dd]ata/*/*.bin* 69 | 70 | # Temporary auto-generated Android Assets 71 | /[Aa]ssets/[Ss]treamingAssets/aa.meta 72 | /[Aa]ssets/[Ss]treamingAssets/aa/* 73 | 74 | ## OS FILES 75 | .DS_Store -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": [ 3 | "visualstudiotoolsforunity.vstuc" 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "0.2.0", 3 | "configurations": [ 4 | { 5 | "name": "Attach to Unity", 6 | "type": "vstuc", 7 | "request": "attach" 8 | } 9 | ] 10 | } -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "files.exclude": { 3 | "**/.DS_Store": true, 4 | "**/.git": true, 5 | "**/.gitmodules": true, 6 | "**/*.booproj": true, 7 | "**/*.pidb": true, 8 | "**/*.suo": true, 9 | "**/*.user": true, 10 | "**/*.userprefs": true, 11 | "**/*.unityproj": true, 12 | "**/*.dll": true, 13 | "**/*.exe": true, 14 | "**/*.pdf": true, 15 | "**/*.mid": true, 16 | "**/*.midi": true, 17 | "**/*.wav": true, 18 | "**/*.gif": true, 19 | "**/*.ico": true, 20 | "**/*.jpg": true, 21 | "**/*.jpeg": true, 22 | "**/*.png": true, 23 | "**/*.psd": true, 24 | "**/*.tga": true, 25 | "**/*.tif": true, 26 | "**/*.tiff": true, 27 | "**/*.3ds": true, 28 | "**/*.3DS": true, 29 | "**/*.fbx": true, 30 | "**/*.FBX": true, 31 | "**/*.lxo": true, 32 | "**/*.LXO": true, 33 | "**/*.ma": true, 34 | "**/*.MA": true, 35 | "**/*.obj": true, 36 | "**/*.OBJ": true, 37 | "**/*.asset": true, 38 | "**/*.cubemap": true, 39 | "**/*.flare": true, 40 | "**/*.mat": true, 41 | "**/*.meta": true, 42 | "**/*.prefab": true, 43 | "**/*.unity": true, 44 | "build/": true, 45 | "Build/": true, 46 | "Library/": true, 47 | "library/": true, 48 | "obj/": true, 49 | "Obj/": true, 50 | "ProjectSettings/": true, 51 | "temp/": true, 52 | "Temp/": true 53 | }, 54 | "dotnet.defaultSolution": "test-octree-planet-terrain-unity.sln" 55 | } -------------------------------------------------------------------------------- /.vsconfig: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0", 3 | "components": [ 4 | "Microsoft.VisualStudio.Workload.ManagedGame" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /Assets/ChunkPrefab.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &6535661478644871155 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | serializedVersion: 6 10 | m_Component: 11 | - component: {fileID: 6535661478644871156} 12 | - component: {fileID: 6535661478644871158} 13 | - component: {fileID: 6535661478644871157} 14 | m_Layer: 0 15 | m_Name: ChunkPrefab 16 | m_TagString: Untagged 17 | m_Icon: {fileID: 0} 18 | m_NavMeshLayer: 0 19 | m_StaticEditorFlags: 0 20 | m_IsActive: 1 21 | --- !u!4 &6535661478644871156 22 | Transform: 23 | m_ObjectHideFlags: 0 24 | m_CorrespondingSourceObject: {fileID: 0} 25 | m_PrefabInstance: {fileID: 0} 26 | m_PrefabAsset: {fileID: 0} 27 | m_GameObject: {fileID: 6535661478644871155} 28 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 29 | m_LocalPosition: {x: -126.937325, y: -139.53482, z: -161.21698} 30 | m_LocalScale: {x: 1, y: 1, z: 1} 31 | m_ConstrainProportionsScale: 0 32 | m_Children: [] 33 | m_Father: {fileID: 0} 34 | m_RootOrder: 0 35 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 36 | --- !u!33 &6535661478644871158 37 | MeshFilter: 38 | m_ObjectHideFlags: 0 39 | m_CorrespondingSourceObject: {fileID: 0} 40 | m_PrefabInstance: {fileID: 0} 41 | m_PrefabAsset: {fileID: 0} 42 | m_GameObject: {fileID: 6535661478644871155} 43 | m_Mesh: {fileID: 0} 44 | --- !u!23 &6535661478644871157 45 | MeshRenderer: 46 | m_ObjectHideFlags: 0 47 | m_CorrespondingSourceObject: {fileID: 0} 48 | m_PrefabInstance: {fileID: 0} 49 | m_PrefabAsset: {fileID: 0} 50 | m_GameObject: {fileID: 6535661478644871155} 51 | m_Enabled: 1 52 | m_CastShadows: 1 53 | m_ReceiveShadows: 1 54 | m_DynamicOccludee: 1 55 | m_StaticShadowCaster: 0 56 | m_MotionVectors: 1 57 | m_LightProbeUsage: 1 58 | m_ReflectionProbeUsage: 1 59 | m_RayTracingMode: 2 60 | m_RayTraceProcedural: 0 61 | m_RenderingLayerMask: 1 62 | m_RendererPriority: 0 63 | m_Materials: 64 | - {fileID: 2100000, guid: 0abdb17e22afb415cac32b8e67dd858c, type: 2} 65 | m_StaticBatchInfo: 66 | firstSubMesh: 0 67 | subMeshCount: 0 68 | m_StaticBatchRoot: {fileID: 0} 69 | m_ProbeAnchor: {fileID: 0} 70 | m_LightProbeVolumeOverride: {fileID: 0} 71 | m_ScaleInLightmap: 1 72 | m_ReceiveGI: 1 73 | m_PreserveUVs: 0 74 | m_IgnoreNormalsForChartDetection: 0 75 | m_ImportantGI: 0 76 | m_StitchLightmapSeams: 1 77 | m_SelectedEditorRenderState: 3 78 | m_MinimumChartSize: 4 79 | m_AutoUVMaxDistance: 0.5 80 | m_AutoUVMaxAngle: 89 81 | m_LightmapParameters: {fileID: 0} 82 | m_SortingLayerID: 0 83 | m_SortingLayer: 0 84 | m_SortingOrder: 0 85 | m_AdditionalVertexStreams: {fileID: 0} 86 | -------------------------------------------------------------------------------- /Assets/ChunkPrefab.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7b3a78ed15bd8485ea72641f401c8a09 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/FastNoiseLite.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1616ddd0cc52c4a6f98b353259ce01c4 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/FastNoiseLite/FastNoiseLite.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9796edc2346104d30842644e4a3668c1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/FastNoiseLite/README.md: -------------------------------------------------------------------------------- 1 | ## Getting Started 2 | 3 | Here's an example for creating a 128x128 array of OpenSimplex2 noise 4 | 5 | ``` 6 | // Create and configure FastNoise object 7 | FastNoiseLite noise = new FastNoiseLite(); 8 | noise.SetNoiseType(FastNoiseLite.NoiseType.OpenSimplex2); 9 | 10 | // Gather noise data 11 | float[] noiseData = new float[128 * 128]; 12 | int index = 0; 13 | 14 | for (int y = 0; y < 128; y++) 15 | { 16 | for (int x = 0; x < 128; x++) 17 | { 18 | noiseData[index++] = noise.GetNoise(x, y); 19 | } 20 | } 21 | 22 | // Do something with this data... 23 | ``` -------------------------------------------------------------------------------- /Assets/FastNoiseLite/README.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aecff4ea2be33448183ad3b8ecd64b6a 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Material.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 8 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: Material 11 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 12 | m_ValidKeywords: [] 13 | m_InvalidKeywords: [] 14 | m_LightmapFlags: 4 15 | m_EnableInstancingVariants: 0 16 | m_DoubleSidedGI: 0 17 | m_CustomRenderQueue: -1 18 | stringTagMap: {} 19 | disabledShaderPasses: [] 20 | m_SavedProperties: 21 | serializedVersion: 3 22 | m_TexEnvs: 23 | - _BumpMap: 24 | m_Texture: {fileID: 0} 25 | m_Scale: {x: 1, y: 1} 26 | m_Offset: {x: 0, y: 0} 27 | - _DetailAlbedoMap: 28 | m_Texture: {fileID: 0} 29 | m_Scale: {x: 1, y: 1} 30 | m_Offset: {x: 0, y: 0} 31 | - _DetailMask: 32 | m_Texture: {fileID: 0} 33 | m_Scale: {x: 1, y: 1} 34 | m_Offset: {x: 0, y: 0} 35 | - _DetailNormalMap: 36 | m_Texture: {fileID: 0} 37 | m_Scale: {x: 1, y: 1} 38 | m_Offset: {x: 0, y: 0} 39 | - _EmissionMap: 40 | m_Texture: {fileID: 0} 41 | m_Scale: {x: 1, y: 1} 42 | m_Offset: {x: 0, y: 0} 43 | - _MainTex: 44 | m_Texture: {fileID: 0} 45 | m_Scale: {x: 1, y: 1} 46 | m_Offset: {x: 0, y: 0} 47 | - _MetallicGlossMap: 48 | m_Texture: {fileID: 0} 49 | m_Scale: {x: 1, y: 1} 50 | m_Offset: {x: 0, y: 0} 51 | - _OcclusionMap: 52 | m_Texture: {fileID: 0} 53 | m_Scale: {x: 1, y: 1} 54 | m_Offset: {x: 0, y: 0} 55 | - _ParallaxMap: 56 | m_Texture: {fileID: 0} 57 | m_Scale: {x: 1, y: 1} 58 | m_Offset: {x: 0, y: 0} 59 | m_Ints: [] 60 | m_Floats: 61 | - _BumpScale: 1 62 | - _Cutoff: 0.5 63 | - _DetailNormalMapScale: 1 64 | - _DstBlend: 0 65 | - _GlossMapScale: 1 66 | - _Glossiness: 0.5 67 | - _GlossyReflections: 1 68 | - _Metallic: 0 69 | - _Mode: 0 70 | - _OcclusionStrength: 1 71 | - _Parallax: 0.02 72 | - _SmoothnessTextureChannel: 0 73 | - _SpecularHighlights: 1 74 | - _SrcBlend: 1 75 | - _UVSec: 0 76 | - _ZWrite: 1 77 | m_Colors: 78 | - _Color: {r: 1, g: 1, b: 1, a: 1} 79 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 80 | m_BuildTextureStacks: [] 81 | -------------------------------------------------------------------------------- /Assets/Material.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0abdb17e22afb415cac32b8e67dd858c 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Minecraft.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 02dc3290fdcf64a3cbeb63b3a68ce36a 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Minecraft/Chunk.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using Unity.Jobs; 3 | using Unity.Mathematics; 4 | using Unity.Collections; 5 | using System; 6 | 7 | [Serializable] 8 | public class Chunk 9 | { 10 | public static readonly int Resolution = 16; 11 | public static readonly int Height = 256; 12 | public static readonly int Count = Resolution * Height * Resolution; 13 | public static readonly Bounds Bounds = new Bounds(new Vector3(Resolution, Height, Resolution) - (Vector3.one / 2f), new Vector3(Resolution, Height, Resolution)); 14 | 15 | private Minecraft minecraft; 16 | public Mesh mesh; 17 | public Bounds boundary; 18 | public NativeArray blocks; 19 | 20 | public Chunk(Minecraft minecraft, int3 coord) 21 | { 22 | var position = new Vector3(coord.x * Resolution, 0, coord.z * Resolution); 23 | var size = new Vector3(Resolution, Height, Resolution); 24 | var center = (size / 2f) - (Vector3.one / 2f); 25 | this.boundary = new Bounds(center + position, size); 26 | this.minecraft = minecraft; 27 | } 28 | 29 | ~Chunk() 30 | { 31 | blocks.Dispose(); 32 | } 33 | 34 | public void Draw() 35 | { 36 | if (!mesh) 37 | { 38 | if (GeometryUtility.TestPlanesAABB(minecraft.frustrum, boundary)) 39 | { 40 | Schedule(out JobCompleter completer); 41 | minecraft.toComplete.Add(completer); 42 | } 43 | return; 44 | } 45 | Graphics.DrawMesh(mesh, boundary.min, Quaternion.identity, minecraft.Material, 0); 46 | } 47 | 48 | private void Schedule(out JobCompleter jobCompleter) 49 | { 50 | // allocate mesh data array 51 | Mesh.MeshDataArray meshDataArray = Mesh.AllocateWritableMeshData(1); 52 | 53 | // create job 54 | var job = new ChunkJob 55 | { 56 | position = boundary.min, 57 | bounds = Bounds, 58 | meshDataArray = meshDataArray, 59 | }; 60 | 61 | jobCompleter = new JobCompleter(() => 62 | { 63 | // schedule 64 | return job.Schedule(); 65 | }, () => 66 | { 67 | // complete job and set mesh 68 | mesh = new Mesh 69 | { 70 | name = "node_mesh", 71 | bounds = Bounds 72 | }; 73 | Mesh.ApplyAndDisposeWritableMeshData(meshDataArray, mesh); 74 | }); 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /Assets/Minecraft/Chunk.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 87c93c335e45a483a969e2d475425e24 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Minecraft/ChunkJob.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using Unity.Jobs; 3 | using Unity.Collections; 4 | using Unity.Mathematics; 5 | using Unity.Burst; 6 | 7 | [BurstCompile] 8 | public struct ChunkJob : IJob 9 | { 10 | public Bounds bounds; 11 | public Mesh.MeshDataArray meshDataArray; 12 | public float3 position; 13 | 14 | public void Execute() 15 | { 16 | int indiceCount = Chunk.Count * 6 * 6; // 6 indicies per quad * 6 quads 17 | int vertexCount = Chunk.Count * 4 * 6; // 4 vertices per quad * 6 quads 18 | 19 | var indices = new NativeArray(indiceCount, Allocator.Temp, NativeArrayOptions.UninitializedMemory); 20 | var vertices = new NativeArray(vertexCount, Allocator.Temp, NativeArrayOptions.UninitializedMemory); 21 | var normals = new NativeArray(vertexCount, Allocator.Temp, NativeArrayOptions.UninitializedMemory); 22 | 23 | FastNoiseLite noise = new FastNoiseLite(); 24 | noise.SetNoiseType(FastNoiseLite.NoiseType.OpenSimplex2); 25 | noise.SetFrequency(0.01f); 26 | noise.SetSeed(2376); 27 | 28 | int vertexOffset = 0; 29 | int indiceOffset = 0; 30 | 31 | for (int i = 0; i < Chunk.Count; i++) 32 | { 33 | int3 index = IndexUtilities.IndexToXyz(i, Chunk.Resolution, Chunk.Height); 34 | 35 | // if we are a solid block 36 | if (!IsAir(index.x, index.y, index.z, in noise)) 37 | { 38 | // local mesh position of the voxel 39 | float3 pos = index; 40 | 41 | for (int side = 0; side < 6; side++) 42 | { 43 | if (IsAir(index.x + Tables.NeighborOffset[side].x, index.y + Tables.NeighborOffset[side].y, index.z + Tables.NeighborOffset[side].z, in noise)) 44 | { 45 | // vertices 46 | vertices[vertexOffset + 0] = Tables.Vertices[Tables.BuildOrder[side][0]] + pos; 47 | vertices[vertexOffset + 1] = Tables.Vertices[Tables.BuildOrder[side][1]] + pos; 48 | vertices[vertexOffset + 2] = Tables.Vertices[Tables.BuildOrder[side][2]] + pos; 49 | vertices[vertexOffset + 3] = Tables.Vertices[Tables.BuildOrder[side][3]] + pos; 50 | 51 | // normals 52 | normals[vertexOffset + 0] = Tables.Normals[side]; 53 | normals[vertexOffset + 1] = Tables.Normals[side]; 54 | normals[vertexOffset + 2] = Tables.Normals[side]; 55 | normals[vertexOffset + 3] = Tables.Normals[side]; 56 | 57 | // indices 58 | indices[indiceOffset + 0] = (uint)vertexOffset + 0; 59 | indices[indiceOffset + 1] = (uint)vertexOffset + 1; 60 | indices[indiceOffset + 2] = (uint)vertexOffset + 2; 61 | indices[indiceOffset + 3] = (uint)vertexOffset + 2; 62 | indices[indiceOffset + 4] = (uint)vertexOffset + 1; 63 | indices[indiceOffset + 5] = (uint)vertexOffset + 3; 64 | 65 | // increment by 4 because we only added 4 vertices 66 | vertexOffset += 4; 67 | 68 | // increment by 6 because we added 6 int's to our triangles array 69 | indiceOffset += 6; 70 | } 71 | } 72 | } 73 | } 74 | 75 | // slice of valid data (otherwise mesh data is uneccessarily large) 76 | var indicesSlice = new NativeArray(indiceOffset, Allocator.Temp, NativeArrayOptions.UninitializedMemory); 77 | indices.Slice(0, (int)indiceOffset).CopyTo(indicesSlice); 78 | var verticesSlice = new NativeArray(vertexOffset, Allocator.Temp, NativeArrayOptions.UninitializedMemory); 79 | vertices.Slice(0, (int)vertexOffset).CopyTo(verticesSlice); 80 | var normalsSlice = new NativeArray(vertexOffset, Allocator.Temp, NativeArrayOptions.UninitializedMemory); 81 | normals.Slice(0, (int)vertexOffset).CopyTo(normalsSlice); 82 | 83 | // apply the mesh to the meshDataArray 84 | MeshingUtility.ApplyMesh(ref meshDataArray, ref indicesSlice, ref verticesSlice, ref normalsSlice, ref bounds); 85 | } 86 | 87 | public bool IsAir(int x, int y, int z, in FastNoiseLite noise) 88 | { 89 | // the voxels position in world coordinates 90 | float3 worldVoxelPosition = new float3(x, y, z) + position; 91 | 92 | float height = ((noise.GetNoise(worldVoxelPosition.x, worldVoxelPosition.z) + 1f) / 2f) * (Chunk.Height / 2); 93 | return worldVoxelPosition.y > height; 94 | } 95 | } -------------------------------------------------------------------------------- /Assets/Minecraft/ChunkJob.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6658f38ee73fe45019dfa46c6f22f496 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Minecraft/ColliderJob.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaperPrototype/test-octree-planet-terrain-unity/b7e37b75f0cb128d8681b718c2361e216c60b3a7/Assets/Minecraft/ColliderJob.cs -------------------------------------------------------------------------------- /Assets/Minecraft/ColliderJob.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bcf1f9e373c9348b9b99c193c3ea5c8a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Minecraft/Minecraft.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Diagnostics; 3 | using Unity.Mathematics; 4 | using Unity.Collections; 5 | using Unity.Jobs; 6 | using UnityEngine; 7 | 8 | public class Minecraft : MonoBehaviour 9 | { 10 | [SerializeField] public Material Material; 11 | [SerializeField] public int Distance = 4; 12 | [SerializeField] public new Camera camera; 13 | 14 | public Dictionary blocks = new Dictionary(); 15 | public List toComplete = new List(); 16 | 17 | public Plane[] frustrum; 18 | 19 | void Start() 20 | { 21 | frustrum = GeometryUtility.CalculateFrustumPlanes(camera); 22 | for (int x = 0; x < Distance; x++) 23 | { 24 | for (int z = 0; z < Distance; z++) 25 | { 26 | int3 key = new int3(x, 0, z); 27 | var chunk = new Chunk(this, key); 28 | blocks.Add(key, chunk); 29 | } 30 | } 31 | } 32 | 33 | void Update() 34 | { 35 | frustrum = GeometryUtility.CalculateFrustumPlanes(camera); 36 | if (toComplete.Count > 0) 37 | { 38 | var w = new Stopwatch(); 39 | w.Start(); 40 | NativeArray jobHandles = new NativeArray(toComplete.Count, Allocator.Temp); 41 | for (int i = 0; i < toComplete.Count; i++) 42 | { 43 | jobHandles[i] = toComplete[i].schedule(); 44 | } 45 | JobHandle.CompleteAll(jobHandles); 46 | jobHandles.Dispose(); 47 | 48 | for (int i = 0; i < toComplete.Count; i++) 49 | { 50 | toComplete[i].onComplete(); 51 | } 52 | 53 | toComplete.Clear(); 54 | w.Stop(); 55 | UnityEngine.Debug.Log(w.ElapsedMilliseconds + "ms"); 56 | } 57 | 58 | foreach (var chunk in blocks.Values) 59 | { 60 | if (GeometryUtility.TestPlanesAABB(frustrum, chunk.boundary)) 61 | { 62 | chunk.Draw(); 63 | } 64 | } 65 | } 66 | 67 | private void OnDrawGizmos() 68 | { 69 | if (blocks.Count <= 0) return; 70 | foreach (var chunk in blocks.Values) 71 | { 72 | if (GeometryUtility.TestPlanesAABB(frustrum, chunk.boundary)) 73 | { 74 | Gizmos.color = Color.blue; 75 | } 76 | else 77 | { 78 | Gizmos.color = Color.red; 79 | } 80 | Gizmos.DrawWireCube(chunk.boundary.center, chunk.boundary.size); 81 | } 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /Assets/Minecraft/Minecraft.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 190636beb9a6048458521115ec173194 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Minecraft/Minecraft.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.44657844, g: 0.49641222, b: 0.57481676, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 12 47 | m_GIWorkflowMode: 1 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 0 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 1 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 512 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 256 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 1 83 | m_PVRDenoiserTypeDirect: 1 84 | m_PVRDenoiserTypeIndirect: 1 85 | m_PVRDenoiserTypeAO: 1 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 1 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ExportTrainingData: 0 98 | m_TrainingDataDestination: TrainingData 99 | m_LightProbeSampleCountMultiplier: 4 100 | m_LightingDataAsset: {fileID: 0} 101 | m_LightingSettings: {fileID: 0} 102 | --- !u!196 &4 103 | NavMeshSettings: 104 | serializedVersion: 2 105 | m_ObjectHideFlags: 0 106 | m_BuildSettings: 107 | serializedVersion: 2 108 | agentTypeID: 0 109 | agentRadius: 0.5 110 | agentHeight: 2 111 | agentSlope: 45 112 | agentClimb: 0.4 113 | ledgeDropHeight: 0 114 | maxJumpAcrossDistance: 0 115 | minRegionArea: 2 116 | manualCellSize: 0 117 | cellSize: 0.16666667 118 | manualTileSize: 0 119 | tileSize: 256 120 | accuratePlacement: 0 121 | maxJobWorkers: 0 122 | preserveTilesOutsideBounds: 0 123 | debug: 124 | m_Flags: 0 125 | m_NavMeshData: {fileID: 0} 126 | --- !u!1 &1147026440 127 | GameObject: 128 | m_ObjectHideFlags: 0 129 | m_CorrespondingSourceObject: {fileID: 0} 130 | m_PrefabInstance: {fileID: 0} 131 | m_PrefabAsset: {fileID: 0} 132 | serializedVersion: 6 133 | m_Component: 134 | - component: {fileID: 1147026441} 135 | - component: {fileID: 1147026442} 136 | m_Layer: 0 137 | m_Name: Minecraft 138 | m_TagString: Untagged 139 | m_Icon: {fileID: 0} 140 | m_NavMeshLayer: 0 141 | m_StaticEditorFlags: 0 142 | m_IsActive: 1 143 | --- !u!4 &1147026441 144 | Transform: 145 | m_ObjectHideFlags: 0 146 | m_CorrespondingSourceObject: {fileID: 0} 147 | m_PrefabInstance: {fileID: 0} 148 | m_PrefabAsset: {fileID: 0} 149 | m_GameObject: {fileID: 1147026440} 150 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 151 | m_LocalPosition: {x: 0, y: 0, z: 0} 152 | m_LocalScale: {x: 1, y: 1, z: 1} 153 | m_ConstrainProportionsScale: 0 154 | m_Children: [] 155 | m_Father: {fileID: 0} 156 | m_RootOrder: 2 157 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 158 | --- !u!114 &1147026442 159 | MonoBehaviour: 160 | m_ObjectHideFlags: 0 161 | m_CorrespondingSourceObject: {fileID: 0} 162 | m_PrefabInstance: {fileID: 0} 163 | m_PrefabAsset: {fileID: 0} 164 | m_GameObject: {fileID: 1147026440} 165 | m_Enabled: 1 166 | m_EditorHideFlags: 0 167 | m_Script: {fileID: 11500000, guid: 190636beb9a6048458521115ec173194, type: 3} 168 | m_Name: 169 | m_EditorClassIdentifier: 170 | Material: {fileID: 2100000, guid: 0abdb17e22afb415cac32b8e67dd858c, type: 2} 171 | Distance: 64 172 | camera: {fileID: 1713243142} 173 | --- !u!1 &1547752303 174 | GameObject: 175 | m_ObjectHideFlags: 0 176 | m_CorrespondingSourceObject: {fileID: 0} 177 | m_PrefabInstance: {fileID: 0} 178 | m_PrefabAsset: {fileID: 0} 179 | serializedVersion: 6 180 | m_Component: 181 | - component: {fileID: 1547752305} 182 | - component: {fileID: 1547752304} 183 | m_Layer: 0 184 | m_Name: Directional Light 185 | m_TagString: Untagged 186 | m_Icon: {fileID: 0} 187 | m_NavMeshLayer: 0 188 | m_StaticEditorFlags: 0 189 | m_IsActive: 1 190 | --- !u!108 &1547752304 191 | Light: 192 | m_ObjectHideFlags: 0 193 | m_CorrespondingSourceObject: {fileID: 0} 194 | m_PrefabInstance: {fileID: 0} 195 | m_PrefabAsset: {fileID: 0} 196 | m_GameObject: {fileID: 1547752303} 197 | m_Enabled: 1 198 | serializedVersion: 10 199 | m_Type: 1 200 | m_Shape: 0 201 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 202 | m_Intensity: 1 203 | m_Range: 10 204 | m_SpotAngle: 30 205 | m_InnerSpotAngle: 21.80208 206 | m_CookieSize: 10 207 | m_Shadows: 208 | m_Type: 2 209 | m_Resolution: -1 210 | m_CustomResolution: -1 211 | m_Strength: 1 212 | m_Bias: 0.05 213 | m_NormalBias: 0.4 214 | m_NearPlane: 0.2 215 | m_CullingMatrixOverride: 216 | e00: 1 217 | e01: 0 218 | e02: 0 219 | e03: 0 220 | e10: 0 221 | e11: 1 222 | e12: 0 223 | e13: 0 224 | e20: 0 225 | e21: 0 226 | e22: 1 227 | e23: 0 228 | e30: 0 229 | e31: 0 230 | e32: 0 231 | e33: 1 232 | m_UseCullingMatrixOverride: 0 233 | m_Cookie: {fileID: 0} 234 | m_DrawHalo: 0 235 | m_Flare: {fileID: 0} 236 | m_RenderMode: 0 237 | m_CullingMask: 238 | serializedVersion: 2 239 | m_Bits: 4294967295 240 | m_RenderingLayerMask: 1 241 | m_Lightmapping: 4 242 | m_LightShadowCasterMode: 0 243 | m_AreaSize: {x: 1, y: 1} 244 | m_BounceIntensity: 1 245 | m_ColorTemperature: 6570 246 | m_UseColorTemperature: 0 247 | m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} 248 | m_UseBoundingSphereOverride: 0 249 | m_UseViewFrustumForShadowCasterCull: 1 250 | m_ShadowRadius: 0 251 | m_ShadowAngle: 0 252 | --- !u!4 &1547752305 253 | Transform: 254 | m_ObjectHideFlags: 0 255 | m_CorrespondingSourceObject: {fileID: 0} 256 | m_PrefabInstance: {fileID: 0} 257 | m_PrefabAsset: {fileID: 0} 258 | m_GameObject: {fileID: 1547752303} 259 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 260 | m_LocalPosition: {x: 0, y: 3, z: 0} 261 | m_LocalScale: {x: 1, y: 1, z: 1} 262 | m_ConstrainProportionsScale: 0 263 | m_Children: [] 264 | m_Father: {fileID: 0} 265 | m_RootOrder: 1 266 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 267 | --- !u!1 &1713243140 268 | GameObject: 269 | m_ObjectHideFlags: 0 270 | m_CorrespondingSourceObject: {fileID: 0} 271 | m_PrefabInstance: {fileID: 0} 272 | m_PrefabAsset: {fileID: 0} 273 | serializedVersion: 6 274 | m_Component: 275 | - component: {fileID: 1713243143} 276 | - component: {fileID: 1713243142} 277 | - component: {fileID: 1713243141} 278 | m_Layer: 0 279 | m_Name: Main Camera 280 | m_TagString: MainCamera 281 | m_Icon: {fileID: 0} 282 | m_NavMeshLayer: 0 283 | m_StaticEditorFlags: 0 284 | m_IsActive: 1 285 | --- !u!81 &1713243141 286 | AudioListener: 287 | m_ObjectHideFlags: 0 288 | m_CorrespondingSourceObject: {fileID: 0} 289 | m_PrefabInstance: {fileID: 0} 290 | m_PrefabAsset: {fileID: 0} 291 | m_GameObject: {fileID: 1713243140} 292 | m_Enabled: 1 293 | --- !u!20 &1713243142 294 | Camera: 295 | m_ObjectHideFlags: 0 296 | m_CorrespondingSourceObject: {fileID: 0} 297 | m_PrefabInstance: {fileID: 0} 298 | m_PrefabAsset: {fileID: 0} 299 | m_GameObject: {fileID: 1713243140} 300 | m_Enabled: 1 301 | serializedVersion: 2 302 | m_ClearFlags: 1 303 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 304 | m_projectionMatrixMode: 1 305 | m_GateFitMode: 2 306 | m_FOVAxisMode: 0 307 | m_SensorSize: {x: 36, y: 24} 308 | m_LensShift: {x: 0, y: 0} 309 | m_FocalLength: 50 310 | m_NormalizedViewPortRect: 311 | serializedVersion: 2 312 | x: 0 313 | y: 0 314 | width: 1 315 | height: 1 316 | near clip plane: 0.3 317 | far clip plane: 10000 318 | field of view: 60 319 | orthographic: 0 320 | orthographic size: 5 321 | m_Depth: -1 322 | m_CullingMask: 323 | serializedVersion: 2 324 | m_Bits: 4294967295 325 | m_RenderingPath: -1 326 | m_TargetTexture: {fileID: 0} 327 | m_TargetDisplay: 0 328 | m_TargetEye: 3 329 | m_HDR: 1 330 | m_AllowMSAA: 1 331 | m_AllowDynamicResolution: 0 332 | m_ForceIntoRT: 0 333 | m_OcclusionCulling: 1 334 | m_StereoConvergence: 10 335 | m_StereoSeparation: 0.022 336 | --- !u!4 &1713243143 337 | Transform: 338 | m_ObjectHideFlags: 0 339 | m_CorrespondingSourceObject: {fileID: 0} 340 | m_PrefabInstance: {fileID: 0} 341 | m_PrefabAsset: {fileID: 0} 342 | m_GameObject: {fileID: 1713243140} 343 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 344 | m_LocalPosition: {x: 0, y: 1, z: -10} 345 | m_LocalScale: {x: 1, y: 1, z: 1} 346 | m_ConstrainProportionsScale: 0 347 | m_Children: [] 348 | m_Father: {fileID: 0} 349 | m_RootOrder: 0 350 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 351 | -------------------------------------------------------------------------------- /Assets/Minecraft/Minecraft.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fa8802bc41ba0479d8005e460e17ef7a 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Planet.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5c0bf4af2b9264848a3dc0f4db837bde 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Planet/Node.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using Unity.Jobs; 3 | 4 | public class Node 5 | { 6 | public Octree octree; 7 | public Node parent; 8 | public Node[] children; 9 | public int divisions; 10 | public Vector3 offset; 11 | public GameObject gameObject; 12 | 13 | private MeshFilter meshFilter; 14 | private MeshRenderer meshRenderer; 15 | 16 | public bool IsScheduled 17 | { 18 | get 19 | { 20 | return isScheduled; 21 | } 22 | } 23 | 24 | private bool isScheduled = false; // job is not currently scheduled 25 | private bool needsDrawn = true; // draw once 26 | 27 | public Node(Octree octree, Node parent, Vector3 offset, int divisions) 28 | { 29 | this.octree = octree; 30 | this.parent = parent; 31 | this.offset = offset; 32 | this.divisions = divisions; 33 | this.gameObject = GameObject.Instantiate(octree.chunkPrefab); 34 | if (parent != null) 35 | { 36 | this.gameObject.transform.parent = parent.gameObject.transform; 37 | } 38 | 39 | this.meshFilter = gameObject.GetComponent(); 40 | this.meshRenderer = gameObject.GetComponent(); 41 | 42 | var nodePosition = NodePosition(); 43 | gameObject.transform.position = nodePosition; 44 | gameObject.name = nodePosition.ToString(); 45 | } 46 | 47 | public void Clear() 48 | { 49 | meshFilter.mesh = null; 50 | needsDrawn = true; 51 | } 52 | 53 | public void Destroy() 54 | { 55 | GameObject.Destroy(gameObject); 56 | } 57 | 58 | public bool TrySchedule(out JobCompleter jobCompleter) 59 | { 60 | // if we are a leaf node 61 | if (IsLeaf() && needsDrawn && !isScheduled) 62 | { 63 | // allocate mesh data array 64 | Mesh.MeshDataArray meshDataArray = Mesh.AllocateWritableMeshData(1); 65 | 66 | // variables 67 | var bounds = new Bounds(Vector3.zero, Vector3.one * NodeScale()); 68 | 69 | // create job 70 | var chunkJob = new NodeJob(); 71 | chunkJob.meshDataArray = meshDataArray; 72 | chunkJob.bounds = bounds; 73 | chunkJob.planetCenterPosition = octree.root.NodePosition(); 74 | chunkJob.planetRadius = octree.planetRadius; 75 | chunkJob.chunkResolution = octree.chunkResolution; 76 | chunkJob.nodeScale = NodeScale(); 77 | chunkJob.worldNodePosition = NodePosition(); 78 | 79 | isScheduled = true; 80 | needsDrawn = false; 81 | 82 | jobCompleter = new JobCompleter(() => 83 | { 84 | // schedule 85 | return chunkJob.Schedule(); 86 | }, () => 87 | { 88 | // complete job and set mesh 89 | Mesh mesh = new Mesh 90 | { 91 | name = "node_mesh", 92 | bounds = bounds 93 | }; 94 | Mesh.ApplyAndDisposeWritableMeshData(meshDataArray, mesh); 95 | mesh.RecalculateNormals(); 96 | meshFilter.mesh = mesh; 97 | isScheduled = false; 98 | }); 99 | return true; 100 | } 101 | 102 | jobCompleter = null; 103 | return false; 104 | } 105 | 106 | public bool IsLeaf() 107 | { 108 | if (children == null) 109 | { 110 | return true; 111 | } 112 | 113 | return false; 114 | } 115 | 116 | public int NodeResolution() 117 | { 118 | return (int)Mathf.Pow(2, (divisions - 1)); 119 | } 120 | 121 | public float NodeScale() 122 | { 123 | return octree.chunkResolution * NodeResolution(); 124 | } 125 | 126 | // center position? 127 | public Vector3 NodePosition() 128 | { 129 | if (parent == null) 130 | { 131 | return this.offset; 132 | } 133 | 134 | float nodeScale = NodeScale(); 135 | 136 | // position = (offset * scale) // our offset position 137 | // - one (scale / 2) // 138 | return (offset * nodeScale) - (Vector3.one * (nodeScale / 2)) 139 | + parent.NodePosition(); 140 | } 141 | } 142 | -------------------------------------------------------------------------------- /Assets/Planet/Node.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 01f06b6af9ce94ed69e56937e44928f4 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Planet/NodeJob.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using Unity.Jobs; 3 | using Unity.Collections; 4 | using Unity.Mathematics; 5 | using Unity.Burst; 6 | 7 | [BurstCompile] 8 | public struct NodeJob : IJob 9 | { 10 | private static readonly float3 one = new float3(1f, 1f, 1f); 11 | 12 | public Bounds bounds; 13 | public Mesh.MeshDataArray meshDataArray; 14 | public Vector3 planetCenterPosition; 15 | public float planetRadius; 16 | 17 | public int chunkResolution; 18 | public float nodeScale; 19 | public float3 worldNodePosition; 20 | 21 | private float3 centerOffset; 22 | private float normalizedVoxelScale; 23 | 24 | public void Execute() 25 | { 26 | int meshCubeCount = (int)math.ceil((chunkResolution * chunkResolution * chunkResolution) / 2); 27 | int indiceCount = meshCubeCount * 6 * 6; // 6 indicies per quad * 6 quads 28 | int vertexCount = meshCubeCount * 4 * 6; // 4 vertices per quad * 6 quads 29 | 30 | var indices = new NativeArray(indiceCount, Allocator.Temp, NativeArrayOptions.UninitializedMemory); 31 | var vertices = new NativeArray(vertexCount, Allocator.Temp, NativeArrayOptions.UninitializedMemory); 32 | var normals = new NativeArray(vertexCount, Allocator.Temp, NativeArrayOptions.UninitializedMemory); 33 | 34 | // so we can offset the mesh to the the center of the gameObject 35 | centerOffset = Vector3.one * (nodeScale / 2); 36 | 37 | // nodeScale divided by the the number of voxels in the node 38 | normalizedVoxelScale = nodeScale / chunkResolution; 39 | 40 | FastNoiseLite noise = new FastNoiseLite(); 41 | noise.SetNoiseType(FastNoiseLite.NoiseType.OpenSimplex2); 42 | noise.SetFrequency(0.01f); 43 | noise.SetSeed(2376); 44 | 45 | var voxels = new NativeArray((chunkResolution + 3) * (chunkResolution + 3) * (chunkResolution + 3), Allocator.Temp); 46 | for (int x = 0; x < chunkResolution + 3; x++) 47 | { 48 | for (int y = 0; y < chunkResolution + 3; y++) 49 | { 50 | for (int z = 0; z < chunkResolution + 3; z++) 51 | { 52 | if (!IsAir(x - 1, y - 1, z - 1, ref noise)) 53 | { 54 | voxels[IndexUtilities.XyzToIndex(x, y, z, chunkResolution + 3, chunkResolution + 3)] = 1; 55 | } 56 | } 57 | } 58 | } 59 | 60 | // Cache smoothing calculations 61 | NativeHashMap hash = new NativeHashMap(vertices.Length, Allocator.Temp); 62 | 63 | // variables 64 | int vertexOffset = 0; 65 | int indiceOffset = 0; 66 | 67 | for (int x = 0; x < chunkResolution; x++) 68 | { 69 | for (int y = 0; y < chunkResolution; y++) 70 | { 71 | for (int z = 0; z < chunkResolution; z++) 72 | { 73 | // if we are a solid block 74 | if (!IsAir(x, y, z, ref noise)) 75 | { 76 | // local mesh position of the voxel 77 | float3 pos = (new float3(x, y, z) * normalizedVoxelScale) - centerOffset; 78 | float3 index = new float3(x, y, z); 79 | 80 | for (int side = 0; side < 6; side++) 81 | { 82 | if (IsAir(x + Tables.NeighborOffset[side].x, y + Tables.NeighborOffset[side].y, z + Tables.NeighborOffset[side].z, ref noise)) 83 | { 84 | float3 vertex1 = Tables.Vertices[Tables.BuildOrder[side][0]]; 85 | float3 vertex2 = Tables.Vertices[Tables.BuildOrder[side][1]]; 86 | float3 vertex3 = Tables.Vertices[Tables.BuildOrder[side][2]]; 87 | float3 vertex4 = Tables.Vertices[Tables.BuildOrder[side][3]]; 88 | 89 | // vertices 90 | vertices[vertexOffset + 0] = vertex1 * normalizedVoxelScale + pos; 91 | vertices[vertexOffset + 1] = vertex2 * normalizedVoxelScale + pos; 92 | vertices[vertexOffset + 2] = vertex3 * normalizedVoxelScale + pos; 93 | vertices[vertexOffset + 3] = vertex4 * normalizedVoxelScale + pos; 94 | 95 | // normals 96 | normals[vertexOffset + 0] = Tables.Normals[side]; 97 | normals[vertexOffset + 1] = Tables.Normals[side]; 98 | normals[vertexOffset + 2] = Tables.Normals[side]; 99 | normals[vertexOffset + 3] = Tables.Normals[side]; 100 | 101 | // indices 102 | indices[indiceOffset + 0] = (uint)vertexOffset + 0; 103 | indices[indiceOffset + 1] = (uint)vertexOffset + 1; 104 | indices[indiceOffset + 2] = (uint)vertexOffset + 2; 105 | indices[indiceOffset + 3] = (uint)vertexOffset + 2; 106 | indices[indiceOffset + 4] = (uint)vertexOffset + 1; 107 | indices[indiceOffset + 5] = (uint)vertexOffset + 3; 108 | 109 | // increment by 4 because we only added 4 vertices 110 | vertexOffset += 4; 111 | 112 | // increment by 6 because we added 6 int's to our triangles array 113 | indiceOffset += 6; 114 | } 115 | } 116 | } 117 | } 118 | } 119 | } 120 | 121 | // Slice of valid data (otherwise mesh data is uneccessarily large) 122 | var indicesSlice = new NativeArray(indiceOffset, Allocator.Temp, NativeArrayOptions.UninitializedMemory); 123 | indices.Slice(0, (int)indiceOffset).CopyTo(indicesSlice); 124 | var verticesSlice = new NativeArray(vertexOffset, Allocator.Temp, NativeArrayOptions.UninitializedMemory); 125 | vertices.Slice(0, (int)vertexOffset).CopyTo(verticesSlice); 126 | var normalsSlice = new NativeArray(vertexOffset, Allocator.Temp, NativeArrayOptions.UninitializedMemory); 127 | normals.Slice(0, (int)vertexOffset).CopyTo(normalsSlice); 128 | 129 | // apply the mesh to the meshDataArray 130 | MeshingUtility.ApplyMesh(ref meshDataArray, ref indicesSlice, ref verticesSlice, ref normalsSlice, ref bounds); 131 | } 132 | 133 | /// 134 | /// Checks if a voxel is solid 135 | /// 136 | /// local voxel index 137 | /// local voxel index 138 | /// local voxel index 139 | /// 140 | /// 141 | public bool IsAir(int x, int y, int z, ref FastNoiseLite noise) 142 | { 143 | // the voxels position in world coordinates 144 | float3 worldVoxelPosition = ((new float3(x, y, z) * normalizedVoxelScale) + worldNodePosition) - centerOffset; 145 | 146 | return IsAirWorldPosition(worldVoxelPosition, ref noise); 147 | } 148 | 149 | public bool IsAirWorldPosition(float3 worldVoxelPosition, ref FastNoiseLite noise) 150 | { 151 | float noise1 = noise.GetNoise(worldVoxelPosition.x / 2f, worldVoxelPosition.y / 2f, worldVoxelPosition.z / 2f); 152 | float noise1FrequencyControl = ((noise1 + 1f) / 2f) * 40; 153 | 154 | float noise2 = noise.GetNoise((worldVoxelPosition.x + 10) / noise1FrequencyControl, worldVoxelPosition.y / noise1FrequencyControl, worldVoxelPosition.z / noise1FrequencyControl); 155 | // a noise for distorting the surface of the planet 156 | float planetSurfaceDistortion = ((noise1 * 100f) + noise2) / 2f; 157 | 158 | // make a sphere planet! 159 | float distance = Vector3.Distance(worldVoxelPosition, planetCenterPosition) + planetSurfaceDistortion; 160 | 161 | // above ground 162 | if (distance > planetRadius) 163 | { 164 | return true; // air 165 | } 166 | // below ground 167 | else 168 | { 169 | return false; // ground 170 | } 171 | } 172 | } 173 | -------------------------------------------------------------------------------- /Assets/Planet/NodeJob.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0637982c7909244088d1dc8f3396cd90 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Planet/Octree.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using Unity.Collections; 5 | using Unity.Jobs; 6 | using System.Diagnostics; 7 | using Unity.Mathematics; 8 | 9 | public class Octree : MonoBehaviour 10 | { 11 | [Space] 12 | public int maxNodeCreationsPerFrame = 50; 13 | 14 | [Space] 15 | public float planetRadius = 6000f; 16 | 17 | [Space] 18 | public int chunkResolution = 16; 19 | 20 | [Space] 21 | public Transform priority; 22 | public GameObject chunkPrefab; 23 | 24 | [Space] 25 | public float innerRadiusPadding = 2; 26 | public int divisions = 11; 27 | 28 | [HideInInspector] 29 | public Node root; 30 | private int nodeResolution; 31 | private float nodeScale; 32 | private double worldVoxelsCount; 33 | private List toComplete = new List(); 34 | 35 | private void Start() 36 | { 37 | nodeResolution = (int)Mathf.Pow(2, (divisions - 1)); 38 | nodeScale = chunkResolution * nodeResolution; 39 | 40 | Vector3 offset = Vector3.up; 41 | Vector3 pos = (offset * nodeScale) - (Vector3.one * (nodeScale / 2)); 42 | root = new Node(this, null, pos, divisions); 43 | 44 | UnityEngine.Debug.Log("nodeResolution: " + nodeResolution); 45 | UnityEngine.Debug.Log("nodeScale: " + nodeResolution); 46 | 47 | worldVoxelsCount = (double)((double)Mathf.Pow(nodeResolution, 3) * (double)Mathf.Pow(chunkResolution, 3)); 48 | UnityEngine.Debug.Log("world voxels count: " + worldVoxelsCount); 49 | } 50 | 51 | private void Update() 52 | { 53 | Traverse(root, 0); 54 | Schedule(root); 55 | } 56 | 57 | private void LateUpdate() 58 | { 59 | if (toComplete.Count > 0) 60 | { 61 | var w = new Stopwatch(); 62 | w.Start(); 63 | NativeArray jobHandles = new NativeArray(toComplete.Count, Allocator.Temp); 64 | for (int i = 0; i < toComplete.Count; i++) 65 | { 66 | jobHandles[i] = toComplete[i].schedule(); 67 | } 68 | JobHandle.CompleteAll(jobHandles); 69 | jobHandles.Dispose(); 70 | 71 | for (int i = 0; i < toComplete.Count; i++) 72 | { 73 | toComplete[i].onComplete(); 74 | } 75 | 76 | toComplete.Clear(); 77 | w.Stop(); 78 | UnityEngine.Debug.Log("meshing took " + w.ElapsedMilliseconds); 79 | } 80 | } 81 | 82 | private void OnDrawGizmos() 83 | { 84 | if (root != null) 85 | { 86 | DrawNodeGizmos(root); 87 | DrawDebugRadiuses(); 88 | } 89 | } 90 | 91 | private void OnDisable() 92 | { 93 | Dispose(root); 94 | } 95 | 96 | private void OnGUI() 97 | { 98 | GUILayout.Label("World Voxels Count: " + worldVoxelsCount); 99 | } 100 | 101 | public void Traverse(Node node, int creations) 102 | { 103 | if (creations > maxNodeCreationsPerFrame) 104 | { 105 | return; 106 | } 107 | 108 | // if we created new nodes 109 | bool createdNewNodes = false; 110 | 111 | // if we are not a deepest leaf node node 112 | if (node.divisions > 1) 113 | { 114 | // if distance is inside of allowed distance 115 | if (ShouldSubdivide(node)) 116 | { 117 | // this is no longer a leaf node we need to clear it 118 | node.Clear(); 119 | 120 | // only create children if they don't already exist 121 | if (node.children == null) 122 | { 123 | // we are creating new nodes 124 | createdNewNodes = true; 125 | 126 | node.children = new Node[8]; 127 | for (int i = 0; i < 8; i++) 128 | { 129 | node.children[i] = new Node(this, node, Tables.Offsets[i], node.divisions - 1); 130 | } 131 | } 132 | } 133 | 134 | // (outside of radius) we should not have children 135 | // no children means: IsLeaf == true 136 | else 137 | { 138 | // delete children 139 | DeleteChildren(node); 140 | } 141 | 142 | if (createdNewNodes) 143 | { 144 | creations += 1; 145 | } 146 | 147 | // if have NOT deleted the children 148 | // recurse 149 | if (node.children != null) 150 | { 151 | for (int i = 0; i < 8; i++) 152 | { 153 | Traverse(node.children[i], creations); 154 | } 155 | } 156 | } 157 | } 158 | 159 | private bool ShouldSubdivide(Node node) 160 | { 161 | float3 center = node.NodePosition(); 162 | float3 scale = node.NodeScale() * innerRadiusPadding + 1; 163 | 164 | // Berechnen der Grenzen des Knotens 165 | Vector3 minBound = center - scale; 166 | Vector3 maxBound = center + scale; 167 | 168 | // Überprüfen, ob sich der Spieler innerhalb dieser Grenzen befindet 169 | bool insideX = priority.position.x >= minBound.x && priority.position.x <= maxBound.x; 170 | bool insideY = priority.position.y >= minBound.y && priority.position.y <= maxBound.y; 171 | bool insideZ = priority.position.z >= minBound.z && priority.position.z <= maxBound.z; 172 | 173 | return insideX && insideY && insideZ; 174 | } 175 | 176 | public void Schedule(Node node) 177 | { 178 | if (node.TrySchedule(out JobCompleter completer)) 179 | { 180 | toComplete.Add(completer); 181 | } 182 | 183 | if (node.children == null) 184 | { 185 | return; 186 | } 187 | 188 | // recurse 189 | for (int i = 0; i < node.children.Length; i++) 190 | { 191 | Schedule(node.children[i]); 192 | } 193 | } 194 | 195 | public void Dispose(Node node) 196 | { 197 | // prevent from infinite recursion 198 | if (node.children == null) 199 | { 200 | return; 201 | } 202 | 203 | // do deletion 204 | for (int i = 0; i < node.children.Length; i++) 205 | { 206 | // dispose of gameObject and mesh arrays 207 | node.children[i].Destroy(); 208 | } 209 | node.children = null; 210 | } 211 | 212 | public void DeleteChildren(Node node) 213 | { 214 | // prevent from infinite recursion 215 | if (node.children == null) 216 | { 217 | return; 218 | } 219 | 220 | // recurse 221 | for (int i = 0; i < node.children.Length; i++) 222 | { 223 | DeleteChildren(node.children[i]); 224 | } 225 | 226 | // do deletion 227 | for (int i = 0; i < node.children.Length; i++) 228 | { 229 | // dispose of gameObject and mesh arrays 230 | node.children[i].Destroy(); 231 | } 232 | node.children = null; 233 | } 234 | 235 | public void DrawNodeGizmos(Node node) 236 | { 237 | Gizmos.color = Color.red; 238 | Gizmos.DrawWireCube(node.NodePosition(), Vector3.one * node.NodeScale()); 239 | Gizmos.DrawSphere(node.NodePosition(), 0.5f); 240 | 241 | // if children exist 242 | if (node.children != null) 243 | { 244 | for (int i = 0; i < 8; i++) 245 | { 246 | DrawNodeGizmos(node.children[i]); 247 | } 248 | } 249 | } 250 | 251 | public void DrawDebugRadiuses() 252 | { 253 | DrawRadiuses(divisions); 254 | } 255 | 256 | private void DrawRadiuses(int divisions) 257 | { 258 | float nodeResolution = (int)Mathf.Pow(2, (divisions - 1)); 259 | float nodeScale = this.chunkResolution * nodeResolution; 260 | 261 | float3 scale = nodeScale * innerRadiusPadding * 2; 262 | 263 | // leaf node 264 | if (divisions < 2) 265 | { 266 | Gizmos.color = Color.grey; 267 | Gizmos.DrawWireCube(this.priority.position, scale); 268 | } 269 | else 270 | { 271 | Gizmos.color = Color.green; 272 | Gizmos.DrawWireCube(this.priority.position, scale); 273 | 274 | DrawRadiuses(divisions - 1); 275 | } 276 | } 277 | } 278 | -------------------------------------------------------------------------------- /Assets/Planet/Octree.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b34652e137d50451fbdac646c1754043 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Planet/Planet.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 705507994} 41 | m_IndirectSpecularColor: {r: 0.44657844, g: 0.49641222, b: 0.57481676, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 12 47 | m_GIWorkflowMode: 1 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_EnvironmentLightingMode: 0 54 | m_EnableBakedLightmaps: 1 55 | m_EnableRealtimeLightmaps: 0 56 | m_LightmapEditorSettings: 57 | serializedVersion: 12 58 | m_Resolution: 2 59 | m_BakeResolution: 40 60 | m_AtlasSize: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_ExtractAmbientOcclusion: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 1 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 500 79 | m_PVRBounces: 2 80 | m_PVREnvironmentSampleCount: 500 81 | m_PVREnvironmentReferencePointCount: 2048 82 | m_PVRFilteringMode: 2 83 | m_PVRDenoiserTypeDirect: 0 84 | m_PVRDenoiserTypeIndirect: 0 85 | m_PVRDenoiserTypeAO: 0 86 | m_PVRFilterTypeDirect: 0 87 | m_PVRFilterTypeIndirect: 0 88 | m_PVRFilterTypeAO: 0 89 | m_PVREnvironmentMIS: 0 90 | m_PVRCulling: 1 91 | m_PVRFilteringGaussRadiusDirect: 1 92 | m_PVRFilteringGaussRadiusIndirect: 5 93 | m_PVRFilteringGaussRadiusAO: 2 94 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 95 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 96 | m_PVRFilteringAtrousPositionSigmaAO: 1 97 | m_ExportTrainingData: 0 98 | m_TrainingDataDestination: TrainingData 99 | m_LightProbeSampleCountMultiplier: 4 100 | m_LightingDataAsset: {fileID: 0} 101 | m_LightingSettings: {fileID: 0} 102 | --- !u!196 &4 103 | NavMeshSettings: 104 | serializedVersion: 2 105 | m_ObjectHideFlags: 0 106 | m_BuildSettings: 107 | serializedVersion: 2 108 | agentTypeID: 0 109 | agentRadius: 0.5 110 | agentHeight: 2 111 | agentSlope: 45 112 | agentClimb: 0.4 113 | ledgeDropHeight: 0 114 | maxJumpAcrossDistance: 0 115 | minRegionArea: 2 116 | manualCellSize: 0 117 | cellSize: 0.16666667 118 | manualTileSize: 0 119 | tileSize: 256 120 | accuratePlacement: 0 121 | maxJobWorkers: 0 122 | preserveTilesOutsideBounds: 0 123 | debug: 124 | m_Flags: 0 125 | m_NavMeshData: {fileID: 0} 126 | --- !u!1 &50973543 127 | GameObject: 128 | m_ObjectHideFlags: 0 129 | m_CorrespondingSourceObject: {fileID: 0} 130 | m_PrefabInstance: {fileID: 0} 131 | m_PrefabAsset: {fileID: 0} 132 | serializedVersion: 6 133 | m_Component: 134 | - component: {fileID: 50973544} 135 | - component: {fileID: 50973545} 136 | m_Layer: 0 137 | m_Name: PlanetOctree 138 | m_TagString: Untagged 139 | m_Icon: {fileID: 0} 140 | m_NavMeshLayer: 0 141 | m_StaticEditorFlags: 0 142 | m_IsActive: 1 143 | --- !u!4 &50973544 144 | Transform: 145 | m_ObjectHideFlags: 0 146 | m_CorrespondingSourceObject: {fileID: 0} 147 | m_PrefabInstance: {fileID: 0} 148 | m_PrefabAsset: {fileID: 0} 149 | m_GameObject: {fileID: 50973543} 150 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 151 | m_LocalPosition: {x: 0, y: 0, z: 0} 152 | m_LocalScale: {x: 1, y: 1, z: 1} 153 | m_ConstrainProportionsScale: 0 154 | m_Children: [] 155 | m_Father: {fileID: 0} 156 | m_RootOrder: 1 157 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 158 | --- !u!114 &50973545 159 | MonoBehaviour: 160 | m_ObjectHideFlags: 0 161 | m_CorrespondingSourceObject: {fileID: 0} 162 | m_PrefabInstance: {fileID: 0} 163 | m_PrefabAsset: {fileID: 0} 164 | m_GameObject: {fileID: 50973543} 165 | m_Enabled: 1 166 | m_EditorHideFlags: 0 167 | m_Script: {fileID: 11500000, guid: b34652e137d50451fbdac646c1754043, type: 3} 168 | m_Name: 169 | m_EditorClassIdentifier: 170 | maxNodeCreationsPerFrame: 50 171 | planetRadius: 10000 172 | chunkResolution: 16 173 | priority: {fileID: 1518825925} 174 | chunkPrefab: {fileID: 6535661478644871155, guid: 7b3a78ed15bd8485ea72641f401c8a09, type: 3} 175 | innerRadiusPadding: 2 176 | divisions: 12 177 | --- !u!1 &705507993 178 | GameObject: 179 | m_ObjectHideFlags: 0 180 | m_CorrespondingSourceObject: {fileID: 0} 181 | m_PrefabInstance: {fileID: 0} 182 | m_PrefabAsset: {fileID: 0} 183 | serializedVersion: 6 184 | m_Component: 185 | - component: {fileID: 705507995} 186 | - component: {fileID: 705507994} 187 | m_Layer: 0 188 | m_Name: Directional Light 189 | m_TagString: Untagged 190 | m_Icon: {fileID: 0} 191 | m_NavMeshLayer: 0 192 | m_StaticEditorFlags: 0 193 | m_IsActive: 1 194 | --- !u!108 &705507994 195 | Light: 196 | m_ObjectHideFlags: 0 197 | m_CorrespondingSourceObject: {fileID: 0} 198 | m_PrefabInstance: {fileID: 0} 199 | m_PrefabAsset: {fileID: 0} 200 | m_GameObject: {fileID: 705507993} 201 | m_Enabled: 1 202 | serializedVersion: 10 203 | m_Type: 1 204 | m_Shape: 0 205 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 206 | m_Intensity: 0.3 207 | m_Range: 10 208 | m_SpotAngle: 30 209 | m_InnerSpotAngle: 21.802082 210 | m_CookieSize: 10 211 | m_Shadows: 212 | m_Type: 2 213 | m_Resolution: -1 214 | m_CustomResolution: -1 215 | m_Strength: 1 216 | m_Bias: 0.05 217 | m_NormalBias: 0.4 218 | m_NearPlane: 0.2 219 | m_CullingMatrixOverride: 220 | e00: 1 221 | e01: 0 222 | e02: 0 223 | e03: 0 224 | e10: 0 225 | e11: 1 226 | e12: 0 227 | e13: 0 228 | e20: 0 229 | e21: 0 230 | e22: 1 231 | e23: 0 232 | e30: 0 233 | e31: 0 234 | e32: 0 235 | e33: 1 236 | m_UseCullingMatrixOverride: 0 237 | m_Cookie: {fileID: 0} 238 | m_DrawHalo: 0 239 | m_Flare: {fileID: 0} 240 | m_RenderMode: 0 241 | m_CullingMask: 242 | serializedVersion: 2 243 | m_Bits: 4294967295 244 | m_RenderingLayerMask: 1 245 | m_Lightmapping: 1 246 | m_LightShadowCasterMode: 0 247 | m_AreaSize: {x: 1, y: 1} 248 | m_BounceIntensity: 1 249 | m_ColorTemperature: 6570 250 | m_UseColorTemperature: 0 251 | m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} 252 | m_UseBoundingSphereOverride: 0 253 | m_UseViewFrustumForShadowCasterCull: 1 254 | m_ShadowRadius: 0 255 | m_ShadowAngle: 0 256 | --- !u!4 &705507995 257 | Transform: 258 | m_ObjectHideFlags: 0 259 | m_CorrespondingSourceObject: {fileID: 0} 260 | m_PrefabInstance: {fileID: 0} 261 | m_PrefabAsset: {fileID: 0} 262 | m_GameObject: {fileID: 705507993} 263 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 264 | m_LocalPosition: {x: 0, y: 3, z: 0} 265 | m_LocalScale: {x: 1, y: 1, z: 1} 266 | m_ConstrainProportionsScale: 0 267 | m_Children: [] 268 | m_Father: {fileID: 0} 269 | m_RootOrder: 0 270 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 271 | --- !u!1 &843519065 272 | GameObject: 273 | m_ObjectHideFlags: 0 274 | m_CorrespondingSourceObject: {fileID: 0} 275 | m_PrefabInstance: {fileID: 0} 276 | m_PrefabAsset: {fileID: 0} 277 | serializedVersion: 6 278 | m_Component: 279 | - component: {fileID: 843519067} 280 | - component: {fileID: 843519066} 281 | m_Layer: 0 282 | m_Name: Directional Light (2) 283 | m_TagString: Untagged 284 | m_Icon: {fileID: 0} 285 | m_NavMeshLayer: 0 286 | m_StaticEditorFlags: 0 287 | m_IsActive: 1 288 | --- !u!108 &843519066 289 | Light: 290 | m_ObjectHideFlags: 0 291 | m_CorrespondingSourceObject: {fileID: 0} 292 | m_PrefabInstance: {fileID: 0} 293 | m_PrefabAsset: {fileID: 0} 294 | m_GameObject: {fileID: 843519065} 295 | m_Enabled: 1 296 | serializedVersion: 10 297 | m_Type: 1 298 | m_Shape: 0 299 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 300 | m_Intensity: 0.3 301 | m_Range: 10 302 | m_SpotAngle: 30 303 | m_InnerSpotAngle: 21.802082 304 | m_CookieSize: 10 305 | m_Shadows: 306 | m_Type: 2 307 | m_Resolution: -1 308 | m_CustomResolution: -1 309 | m_Strength: 1 310 | m_Bias: 0.05 311 | m_NormalBias: 0.4 312 | m_NearPlane: 0.2 313 | m_CullingMatrixOverride: 314 | e00: 1 315 | e01: 0 316 | e02: 0 317 | e03: 0 318 | e10: 0 319 | e11: 1 320 | e12: 0 321 | e13: 0 322 | e20: 0 323 | e21: 0 324 | e22: 1 325 | e23: 0 326 | e30: 0 327 | e31: 0 328 | e32: 0 329 | e33: 1 330 | m_UseCullingMatrixOverride: 0 331 | m_Cookie: {fileID: 0} 332 | m_DrawHalo: 0 333 | m_Flare: {fileID: 0} 334 | m_RenderMode: 0 335 | m_CullingMask: 336 | serializedVersion: 2 337 | m_Bits: 4294967295 338 | m_RenderingLayerMask: 1 339 | m_Lightmapping: 1 340 | m_LightShadowCasterMode: 0 341 | m_AreaSize: {x: 1, y: 1} 342 | m_BounceIntensity: 1 343 | m_ColorTemperature: 6570 344 | m_UseColorTemperature: 0 345 | m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} 346 | m_UseBoundingSphereOverride: 0 347 | m_UseViewFrustumForShadowCasterCull: 1 348 | m_ShadowRadius: 0 349 | m_ShadowAngle: 0 350 | --- !u!4 &843519067 351 | Transform: 352 | m_ObjectHideFlags: 0 353 | m_CorrespondingSourceObject: {fileID: 0} 354 | m_PrefabInstance: {fileID: 0} 355 | m_PrefabAsset: {fileID: 0} 356 | m_GameObject: {fileID: 843519065} 357 | m_LocalRotation: {x: -0.14934608, y: 0.8478317, z: -0.39535034, w: -0.32027364} 358 | m_LocalPosition: {x: 0, y: 3, z: 0} 359 | m_LocalScale: {x: 1, y: 1, z: 1} 360 | m_ConstrainProportionsScale: 0 361 | m_Children: [] 362 | m_Father: {fileID: 0} 363 | m_RootOrder: 5 364 | m_LocalEulerAnglesHint: {x: 50, y: 221.389, z: 0} 365 | --- !u!1 &963194225 366 | GameObject: 367 | m_ObjectHideFlags: 0 368 | m_CorrespondingSourceObject: {fileID: 0} 369 | m_PrefabInstance: {fileID: 0} 370 | m_PrefabAsset: {fileID: 0} 371 | serializedVersion: 6 372 | m_Component: 373 | - component: {fileID: 963194228} 374 | - component: {fileID: 963194227} 375 | - component: {fileID: 963194226} 376 | m_Layer: 0 377 | m_Name: Main Camera 378 | m_TagString: MainCamera 379 | m_Icon: {fileID: 0} 380 | m_NavMeshLayer: 0 381 | m_StaticEditorFlags: 0 382 | m_IsActive: 1 383 | --- !u!81 &963194226 384 | AudioListener: 385 | m_ObjectHideFlags: 0 386 | m_CorrespondingSourceObject: {fileID: 0} 387 | m_PrefabInstance: {fileID: 0} 388 | m_PrefabAsset: {fileID: 0} 389 | m_GameObject: {fileID: 963194225} 390 | m_Enabled: 1 391 | --- !u!20 &963194227 392 | Camera: 393 | m_ObjectHideFlags: 0 394 | m_CorrespondingSourceObject: {fileID: 0} 395 | m_PrefabInstance: {fileID: 0} 396 | m_PrefabAsset: {fileID: 0} 397 | m_GameObject: {fileID: 963194225} 398 | m_Enabled: 1 399 | serializedVersion: 2 400 | m_ClearFlags: 2 401 | m_BackGroundColor: {r: 0.120377965, g: 0.11681201, b: 0.14150941, a: 0} 402 | m_projectionMatrixMode: 1 403 | m_GateFitMode: 2 404 | m_FOVAxisMode: 0 405 | m_SensorSize: {x: 36, y: 24} 406 | m_LensShift: {x: 0, y: 0} 407 | m_FocalLength: 50 408 | m_NormalizedViewPortRect: 409 | serializedVersion: 2 410 | x: 0 411 | y: 0 412 | width: 1 413 | height: 1 414 | near clip plane: 0.3 415 | far clip plane: 100000 416 | field of view: 60 417 | orthographic: 0 418 | orthographic size: 5 419 | m_Depth: -1 420 | m_CullingMask: 421 | serializedVersion: 2 422 | m_Bits: 4294967295 423 | m_RenderingPath: -1 424 | m_TargetTexture: {fileID: 0} 425 | m_TargetDisplay: 0 426 | m_TargetEye: 3 427 | m_HDR: 1 428 | m_AllowMSAA: 1 429 | m_AllowDynamicResolution: 0 430 | m_ForceIntoRT: 0 431 | m_OcclusionCulling: 1 432 | m_StereoConvergence: 10 433 | m_StereoSeparation: 0.022 434 | --- !u!4 &963194228 435 | Transform: 436 | m_ObjectHideFlags: 0 437 | m_CorrespondingSourceObject: {fileID: 0} 438 | m_PrefabInstance: {fileID: 0} 439 | m_PrefabAsset: {fileID: 0} 440 | m_GameObject: {fileID: 963194225} 441 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 442 | m_LocalPosition: {x: 0, y: 0, z: 0} 443 | m_LocalScale: {x: 1, y: 1, z: 1} 444 | m_ConstrainProportionsScale: 0 445 | m_Children: [] 446 | m_Father: {fileID: 1518825925} 447 | m_RootOrder: 0 448 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 449 | --- !u!1 &1518825921 450 | GameObject: 451 | m_ObjectHideFlags: 0 452 | m_CorrespondingSourceObject: {fileID: 0} 453 | m_PrefabInstance: {fileID: 0} 454 | m_PrefabAsset: {fileID: 0} 455 | serializedVersion: 6 456 | m_Component: 457 | - component: {fileID: 1518825925} 458 | - component: {fileID: 1518825924} 459 | - component: {fileID: 1518825923} 460 | - component: {fileID: 1518825922} 461 | - component: {fileID: 1518825926} 462 | m_Layer: 0 463 | m_Name: Priority 464 | m_TagString: Untagged 465 | m_Icon: {fileID: 0} 466 | m_NavMeshLayer: 0 467 | m_StaticEditorFlags: 0 468 | m_IsActive: 1 469 | --- !u!65 &1518825922 470 | BoxCollider: 471 | m_ObjectHideFlags: 0 472 | m_CorrespondingSourceObject: {fileID: 0} 473 | m_PrefabInstance: {fileID: 0} 474 | m_PrefabAsset: {fileID: 0} 475 | m_GameObject: {fileID: 1518825921} 476 | m_Material: {fileID: 0} 477 | m_IsTrigger: 0 478 | m_Enabled: 1 479 | serializedVersion: 2 480 | m_Size: {x: 1, y: 1, z: 1} 481 | m_Center: {x: 0, y: 0, z: 0} 482 | --- !u!23 &1518825923 483 | MeshRenderer: 484 | m_ObjectHideFlags: 0 485 | m_CorrespondingSourceObject: {fileID: 0} 486 | m_PrefabInstance: {fileID: 0} 487 | m_PrefabAsset: {fileID: 0} 488 | m_GameObject: {fileID: 1518825921} 489 | m_Enabled: 1 490 | m_CastShadows: 1 491 | m_ReceiveShadows: 1 492 | m_DynamicOccludee: 1 493 | m_StaticShadowCaster: 0 494 | m_MotionVectors: 1 495 | m_LightProbeUsage: 1 496 | m_ReflectionProbeUsage: 1 497 | m_RayTracingMode: 2 498 | m_RayTraceProcedural: 0 499 | m_RenderingLayerMask: 1 500 | m_RendererPriority: 0 501 | m_Materials: 502 | - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} 503 | m_StaticBatchInfo: 504 | firstSubMesh: 0 505 | subMeshCount: 0 506 | m_StaticBatchRoot: {fileID: 0} 507 | m_ProbeAnchor: {fileID: 0} 508 | m_LightProbeVolumeOverride: {fileID: 0} 509 | m_ScaleInLightmap: 1 510 | m_ReceiveGI: 1 511 | m_PreserveUVs: 0 512 | m_IgnoreNormalsForChartDetection: 0 513 | m_ImportantGI: 0 514 | m_StitchLightmapSeams: 1 515 | m_SelectedEditorRenderState: 3 516 | m_MinimumChartSize: 4 517 | m_AutoUVMaxDistance: 0.5 518 | m_AutoUVMaxAngle: 89 519 | m_LightmapParameters: {fileID: 0} 520 | m_SortingLayerID: 0 521 | m_SortingLayer: 0 522 | m_SortingOrder: 0 523 | m_AdditionalVertexStreams: {fileID: 0} 524 | --- !u!33 &1518825924 525 | MeshFilter: 526 | m_ObjectHideFlags: 0 527 | m_CorrespondingSourceObject: {fileID: 0} 528 | m_PrefabInstance: {fileID: 0} 529 | m_PrefabAsset: {fileID: 0} 530 | m_GameObject: {fileID: 1518825921} 531 | m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} 532 | --- !u!4 &1518825925 533 | Transform: 534 | m_ObjectHideFlags: 0 535 | m_CorrespondingSourceObject: {fileID: 0} 536 | m_PrefabInstance: {fileID: 0} 537 | m_PrefabAsset: {fileID: 0} 538 | m_GameObject: {fileID: 1518825921} 539 | m_LocalRotation: {x: 0, y: 0.99984264, z: 0, w: -0.017741868} 540 | m_LocalPosition: {x: -1244.2, y: 3343, z: -3537.7} 541 | m_LocalScale: {x: 1, y: 1, z: 1} 542 | m_ConstrainProportionsScale: 0 543 | m_Children: 544 | - {fileID: 963194228} 545 | m_Father: {fileID: 0} 546 | m_RootOrder: 2 547 | m_LocalEulerAnglesHint: {x: 0, y: 29.983, z: 0} 548 | --- !u!114 &1518825926 549 | MonoBehaviour: 550 | m_ObjectHideFlags: 0 551 | m_CorrespondingSourceObject: {fileID: 0} 552 | m_PrefabInstance: {fileID: 0} 553 | m_PrefabAsset: {fileID: 0} 554 | m_GameObject: {fileID: 1518825921} 555 | m_Enabled: 1 556 | m_EditorHideFlags: 0 557 | m_Script: {fileID: 11500000, guid: 57f17df57e3654294a3d96bba6586c8d, type: 3} 558 | m_Name: 559 | m_EditorClassIdentifier: 560 | camera: {fileID: 963194228} 561 | --- !u!1 &2078612303 562 | GameObject: 563 | m_ObjectHideFlags: 0 564 | m_CorrespondingSourceObject: {fileID: 0} 565 | m_PrefabInstance: {fileID: 0} 566 | m_PrefabAsset: {fileID: 0} 567 | serializedVersion: 6 568 | m_Component: 569 | - component: {fileID: 2078612307} 570 | - component: {fileID: 2078612306} 571 | - component: {fileID: 2078612305} 572 | - component: {fileID: 2078612304} 573 | m_Layer: 0 574 | m_Name: Plane 575 | m_TagString: Untagged 576 | m_Icon: {fileID: 0} 577 | m_NavMeshLayer: 0 578 | m_StaticEditorFlags: 0 579 | m_IsActive: 1 580 | --- !u!64 &2078612304 581 | MeshCollider: 582 | m_ObjectHideFlags: 0 583 | m_CorrespondingSourceObject: {fileID: 0} 584 | m_PrefabInstance: {fileID: 0} 585 | m_PrefabAsset: {fileID: 0} 586 | m_GameObject: {fileID: 2078612303} 587 | m_Material: {fileID: 0} 588 | m_IsTrigger: 0 589 | m_Enabled: 1 590 | serializedVersion: 4 591 | m_Convex: 0 592 | m_CookingOptions: 30 593 | m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} 594 | --- !u!23 &2078612305 595 | MeshRenderer: 596 | m_ObjectHideFlags: 0 597 | m_CorrespondingSourceObject: {fileID: 0} 598 | m_PrefabInstance: {fileID: 0} 599 | m_PrefabAsset: {fileID: 0} 600 | m_GameObject: {fileID: 2078612303} 601 | m_Enabled: 1 602 | m_CastShadows: 1 603 | m_ReceiveShadows: 1 604 | m_DynamicOccludee: 1 605 | m_StaticShadowCaster: 0 606 | m_MotionVectors: 1 607 | m_LightProbeUsage: 1 608 | m_ReflectionProbeUsage: 1 609 | m_RayTracingMode: 2 610 | m_RayTraceProcedural: 0 611 | m_RenderingLayerMask: 1 612 | m_RendererPriority: 0 613 | m_Materials: 614 | - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} 615 | m_StaticBatchInfo: 616 | firstSubMesh: 0 617 | subMeshCount: 0 618 | m_StaticBatchRoot: {fileID: 0} 619 | m_ProbeAnchor: {fileID: 0} 620 | m_LightProbeVolumeOverride: {fileID: 0} 621 | m_ScaleInLightmap: 1 622 | m_ReceiveGI: 1 623 | m_PreserveUVs: 0 624 | m_IgnoreNormalsForChartDetection: 0 625 | m_ImportantGI: 0 626 | m_StitchLightmapSeams: 1 627 | m_SelectedEditorRenderState: 3 628 | m_MinimumChartSize: 4 629 | m_AutoUVMaxDistance: 0.5 630 | m_AutoUVMaxAngle: 89 631 | m_LightmapParameters: {fileID: 0} 632 | m_SortingLayerID: 0 633 | m_SortingLayer: 0 634 | m_SortingOrder: 0 635 | m_AdditionalVertexStreams: {fileID: 0} 636 | --- !u!33 &2078612306 637 | MeshFilter: 638 | m_ObjectHideFlags: 0 639 | m_CorrespondingSourceObject: {fileID: 0} 640 | m_PrefabInstance: {fileID: 0} 641 | m_PrefabAsset: {fileID: 0} 642 | m_GameObject: {fileID: 2078612303} 643 | m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} 644 | --- !u!4 &2078612307 645 | Transform: 646 | m_ObjectHideFlags: 0 647 | m_CorrespondingSourceObject: {fileID: 0} 648 | m_PrefabInstance: {fileID: 0} 649 | m_PrefabAsset: {fileID: 0} 650 | m_GameObject: {fileID: 2078612303} 651 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 652 | m_LocalPosition: {x: 0, y: 0, z: 0} 653 | m_LocalScale: {x: 1, y: 1, z: 1} 654 | m_ConstrainProportionsScale: 0 655 | m_Children: [] 656 | m_Father: {fileID: 0} 657 | m_RootOrder: 3 658 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 659 | --- !u!1 &2095188181 660 | GameObject: 661 | m_ObjectHideFlags: 0 662 | m_CorrespondingSourceObject: {fileID: 0} 663 | m_PrefabInstance: {fileID: 0} 664 | m_PrefabAsset: {fileID: 0} 665 | serializedVersion: 6 666 | m_Component: 667 | - component: {fileID: 2095188183} 668 | - component: {fileID: 2095188182} 669 | m_Layer: 0 670 | m_Name: Directional Light (1) 671 | m_TagString: Untagged 672 | m_Icon: {fileID: 0} 673 | m_NavMeshLayer: 0 674 | m_StaticEditorFlags: 0 675 | m_IsActive: 1 676 | --- !u!108 &2095188182 677 | Light: 678 | m_ObjectHideFlags: 0 679 | m_CorrespondingSourceObject: {fileID: 0} 680 | m_PrefabInstance: {fileID: 0} 681 | m_PrefabAsset: {fileID: 0} 682 | m_GameObject: {fileID: 2095188181} 683 | m_Enabled: 1 684 | serializedVersion: 10 685 | m_Type: 1 686 | m_Shape: 0 687 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 688 | m_Intensity: 0.3 689 | m_Range: 10 690 | m_SpotAngle: 30 691 | m_InnerSpotAngle: 21.802082 692 | m_CookieSize: 10 693 | m_Shadows: 694 | m_Type: 2 695 | m_Resolution: -1 696 | m_CustomResolution: -1 697 | m_Strength: 1 698 | m_Bias: 0.05 699 | m_NormalBias: 0.4 700 | m_NearPlane: 0.2 701 | m_CullingMatrixOverride: 702 | e00: 1 703 | e01: 0 704 | e02: 0 705 | e03: 0 706 | e10: 0 707 | e11: 1 708 | e12: 0 709 | e13: 0 710 | e20: 0 711 | e21: 0 712 | e22: 1 713 | e23: 0 714 | e30: 0 715 | e31: 0 716 | e32: 0 717 | e33: 1 718 | m_UseCullingMatrixOverride: 0 719 | m_Cookie: {fileID: 0} 720 | m_DrawHalo: 0 721 | m_Flare: {fileID: 0} 722 | m_RenderMode: 0 723 | m_CullingMask: 724 | serializedVersion: 2 725 | m_Bits: 4294967295 726 | m_RenderingLayerMask: 1 727 | m_Lightmapping: 1 728 | m_LightShadowCasterMode: 0 729 | m_AreaSize: {x: 1, y: 1} 730 | m_BounceIntensity: 1 731 | m_ColorTemperature: 6570 732 | m_UseColorTemperature: 0 733 | m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} 734 | m_UseBoundingSphereOverride: 0 735 | m_UseViewFrustumForShadowCasterCull: 1 736 | m_ShadowRadius: 0 737 | m_ShadowAngle: 0 738 | --- !u!4 &2095188183 739 | Transform: 740 | m_ObjectHideFlags: 0 741 | m_CorrespondingSourceObject: {fileID: 0} 742 | m_PrefabInstance: {fileID: 0} 743 | m_PrefabAsset: {fileID: 0} 744 | m_GameObject: {fileID: 2095188181} 745 | m_LocalRotation: {x: 0.22181882, y: 0.7714343, z: -0.35972565, w: 0.47569215} 746 | m_LocalPosition: {x: 0, y: 3, z: 0} 747 | m_LocalScale: {x: 1, y: 1, z: 1} 748 | m_ConstrainProportionsScale: 0 749 | m_Children: [] 750 | m_Father: {fileID: 0} 751 | m_RootOrder: 4 752 | m_LocalEulerAnglesHint: {x: 50, y: 116.681, z: 0} 753 | -------------------------------------------------------------------------------- /Assets/Planet/Planet.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9fc0d4010bbf28b4594072e72b8655ab 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Shared.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 45b55ab472bd54f569748efd3ec7f87b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Shared/IndexUtilities.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.CompilerServices; 2 | using Unity.Mathematics; 3 | 4 | public static class IndexUtilities 5 | { 6 | /// 7 | /// Converts a 3D location to a 1D index 8 | /// 9 | /// The position of the point 10 | /// The size of the "container" in the x-direction 11 | /// The size of the "container" in the y-direction 12 | /// The 1D representation of the specified location in the "container" 13 | [MethodImpl(MethodImplOptions.AggressiveInlining)] 14 | public static int XyzToIndex(int3 xyz, int width, int height) 15 | { 16 | return XyzToIndex(xyz.x, xyz.y, xyz.z, width, height); 17 | } 18 | 19 | /// 20 | /// Converts a 3D location to a 1D index 21 | /// 22 | /// The x value of the location 23 | /// The y value of the location 24 | /// The z value of the location 25 | /// The size of the "container" in the x-direction 26 | /// The size of the "container" in the y-direction 27 | /// The 1D representation of the specified location in the "container" 28 | [MethodImpl(MethodImplOptions.AggressiveInlining)] 29 | public static int XyzToIndex(int x, int y, int z, int width, int height) 30 | { 31 | return z * width * height + y * width + x; 32 | } 33 | 34 | 35 | /// 36 | /// Converts a 1D index to a 3D location 37 | /// 38 | /// The 1D index in the "container" 39 | /// The size of the "container" in the x-direction 40 | /// The size of the "container" in the y-direction 41 | /// The 3D representation of the specified index in the "container" 42 | [MethodImpl(MethodImplOptions.AggressiveInlining)] 43 | public static int3 IndexToXyz(int index, int width, int height) 44 | { 45 | int3 position = new int3( 46 | index % width, 47 | index / width % height, 48 | index / (width * height)); 49 | return position; 50 | } 51 | 52 | 53 | /// 54 | /// Converts a 3D location to a 1D index 55 | /// 56 | /// The position of the point 57 | /// The size of the "container" in the x-direction 58 | /// The size of the "container" in the y-direction 59 | /// The 1D representation of the specified location in the "container" 60 | [MethodImpl(MethodImplOptions.AggressiveInlining)] 61 | public static int XyzToIndex(int3 xyz, int resolution) 62 | { 63 | return XyzToIndex(xyz.x, xyz.y, xyz.z, resolution); 64 | } 65 | 66 | /// 67 | /// Converts a 3D location to a 1D index 68 | /// 69 | /// The x value of the location 70 | /// The y value of the location 71 | /// The z value of the location 72 | /// The size of the "container" in the x-direction 73 | /// The size of the "container" in the y-direction 74 | /// The 1D representation of the specified location in the "container" 75 | [MethodImpl(MethodImplOptions.AggressiveInlining)] 76 | public static int XyzToIndex(int x, int y, int z, int resolution) 77 | { 78 | return z * resolution * resolution + y * resolution + x; 79 | } 80 | 81 | 82 | /// 83 | /// Converts a 1D index to a 3D location 84 | /// 85 | /// The 1D index in the "container" 86 | /// The size of the "container" in the x-direction 87 | /// The size of the "container" in the y-direction 88 | /// The 3D representation of the specified index in the "container" 89 | [MethodImpl(MethodImplOptions.AggressiveInlining)] 90 | public static int3 IndexToXyz(int index, int resolution) 91 | { 92 | int3 position = new int3( 93 | index % resolution, 94 | index / resolution % resolution, 95 | index / (resolution * resolution)); 96 | return position; 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /Assets/Shared/IndexUtilities.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a9512091735074991b3ca2b61b5fd752 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Shared/JobCompleter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Unity.Jobs; 3 | 4 | public class JobCompleter 5 | { 6 | public Func schedule; 7 | public Action onComplete; 8 | public JobCompleter(Func schedule, Action onComplete) 9 | { 10 | this.schedule = schedule; 11 | this.onComplete = onComplete; 12 | } 13 | } -------------------------------------------------------------------------------- /Assets/Shared/JobCompleter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 28059299c4fe44def9a2d20323289bf0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Shared/LookAround.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class LookAround : MonoBehaviour 6 | { 7 | public new Transform camera; 8 | 9 | private float speed = 1f; 10 | private float anglePerSecond = 1f; 11 | 12 | private void Start() 13 | { 14 | Cursor.lockState = CursorLockMode.Locked; 15 | } 16 | 17 | public void Update() 18 | { 19 | float forward = Input.GetAxis("Vertical"); 20 | float right = Input.GetAxis("Horizontal"); 21 | float up = Input.GetAxis("UpDown"); 22 | 23 | if (Input.GetButton("Fire3")) 24 | { 25 | speed = 20; 26 | } 27 | else 28 | { 29 | speed = 1; 30 | } 31 | 32 | transform.position += camera.forward * forward * speed; 33 | transform.position += transform.up * up * speed; 34 | transform.position += transform.right * right * speed; 35 | 36 | float rotateY = Input.GetAxis("Mouse X") != 0f ? Mathf.Sign(Input.GetAxis("Mouse X")) : 0f; 37 | float rotateX = Input.GetAxis("Mouse Y") != 0f ? Mathf.Sign(Input.GetAxis("Mouse Y")) : 0f; 38 | 39 | // we look side to side 40 | transform.Rotate(new Vector3(0, rotateY * anglePerSecond)); 41 | 42 | // camera looks up and down 43 | camera.Rotate(new Vector3(-rotateX * anglePerSecond, 0)); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /Assets/Shared/LookAround.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 57f17df57e3654294a3d96bba6586c8d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Shared/MeshingUtility.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.CompilerServices; 2 | using Unity.Collections; 3 | using Unity.Mathematics; 4 | using UnityEngine; 5 | using UnityEngine.Rendering; 6 | using Unity.Burst; 7 | using Unity.Collections.LowLevel.Unsafe; 8 | 9 | public static class MeshingUtility 10 | { 11 | [MethodImpl(MethodImplOptions.AggressiveInlining)] 12 | public static void ApplyMesh(ref Mesh.MeshDataArray meshDataArray, ref NativeArray indices, ref NativeArray vertices, ref NativeArray normals, ref Bounds bounds, IndexFormat indexFormat = IndexFormat.UInt32) 13 | { 14 | Mesh.MeshData meshData = meshDataArray[0]; 15 | 16 | // Describe mesh data layout 17 | int vertexAttributeCount = 2; 18 | var vertexAttributes = new NativeArray( 19 | vertexAttributeCount, Allocator.Temp, NativeArrayOptions.UninitializedMemory 20 | ); 21 | vertexAttributes[0] = new VertexAttributeDescriptor( 22 | VertexAttribute.Position, dimension: 3, stream: 0 23 | ); 24 | vertexAttributes[1] = new VertexAttributeDescriptor( 25 | VertexAttribute.Normal, dimension: 3, stream: 1 26 | ); 27 | meshData.SetVertexBufferParams(vertices.Length, vertexAttributes); 28 | 29 | // Set Vertex data 30 | meshData.GetVertexData(0).CopyFrom(vertices); 31 | meshData.GetVertexData(1).CopyFrom(normals); 32 | 33 | // Set Indice data 34 | meshData.SetIndexBufferParams(indices.Length, indexFormat); 35 | NativeArray triangleIndices = meshData.GetIndexData(); 36 | triangleIndices.CopyFrom(indices); 37 | 38 | // Set submesh 39 | meshData.subMeshCount = 1; 40 | meshData.SetSubMesh(0, new SubMeshDescriptor(0, indices.Length) 41 | { 42 | bounds = bounds, 43 | vertexCount = vertices.Length, 44 | }, MeshUpdateFlags.DontRecalculateBounds); 45 | } 46 | } -------------------------------------------------------------------------------- /Assets/Shared/MeshingUtility.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 79c7b94b9c9214c798324a45c7fa5a80 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Shared/Tables.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using Unity.Mathematics; 5 | 6 | public static class Tables 7 | { 8 | public static float TerrainMaxHeight = 32f; 9 | 10 | public static Vector3[] Offsets = new Vector3[8] 11 | { 12 | // clockwise 13 | // top 14 | // x y z 15 | new Vector3(1f, 1f, 1f), // top right 16 | new Vector3(0f, 1f, 1f), // bot right 17 | new Vector3(0f, 1f, 0f), // bot left 18 | new Vector3(1f, 1f, 0f), // top left 19 | 20 | // clockwise 21 | // bottom 22 | // x y z 23 | new Vector3(1f, 0f, 1f), // top right 24 | new Vector3(0f, 0f, 1f), // bot right 25 | new Vector3(0f, 0f, 0f), // bot left 26 | new Vector3(1f, 0f, 0f), // top left 27 | }; 28 | 29 | public static readonly float3 VertexOffset = new float3(0.5f, 0.5f, 0.5f); 30 | 31 | /// 32 | /// all 8 possible vertices for a bloxel 33 | /// 34 | public static readonly float3[] Vertices = new float3[8] 35 | { 36 | new float3(0.0f, 0.0f, 0.0f), 37 | new float3(1.0f, 0.0f, 0.0f), 38 | new float3(1.0f, 1.0f, 0.0f), 39 | new float3(0.0f, 1.0f, 0.0f), 40 | new float3(0.0f, 0.0f, 1.0f), 41 | new float3(1.0f, 0.0f, 1.0f), 42 | new float3(1.0f, 1.0f, 1.0f), 43 | new float3(0.0f, 1.0f, 1.0f), 44 | }; 45 | 46 | /// 47 | /// right, left, up, down, front, back 48 | /// 49 | public static readonly float3[] Normals = new float3[6] 50 | { 51 | new float3(1.0f, 0.0f, 0.0f), 52 | new float3(-1.0f, 0.0f, 0.0f), 53 | new float3(0.0f, 1.0f, 0.0f), 54 | new float3(0.0f, -1.0f, 0.0f), 55 | new float3(0.0f, 0.0f, 1.0f), 56 | new float3(0.0f, 0.0f, -1.0f), 57 | }; 58 | 59 | public static readonly int[][] BuildOrder = new int[6][] 60 | { 61 | // right, left, up, down, front, back 62 | 63 | // 0 1 2 2 1 3 <- triangle order 64 | 65 | new int[]{1, 2, 5, 6}, // right face 66 | new int[]{4, 7, 0, 3}, // left face 67 | 68 | new int[]{3, 7, 2, 6}, // up face 69 | new int[]{1, 5, 0, 4}, // down face 70 | 71 | new int[]{5, 6, 4, 7}, // front face 72 | new int[]{0, 3, 1, 2}, // back face 73 | }; 74 | 75 | 76 | /// 77 | /// Voxel neighbor offsets. 78 | /// 79 | public static readonly int3[] NeighborOffset = new int3[6] 80 | { 81 | new int3(1, 0, 0), // right 82 | new int3(-1, 0, 0), // left 83 | new int3(0, 1, 0), // up 84 | new int3(0, -1, 0), // down 85 | new int3(0, 0, 1), // front 86 | new int3(0, 0, -1), // back 87 | }; 88 | } 89 | -------------------------------------------------------------------------------- /Assets/Shared/Tables.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4b6016ecd2a974a538df2bf7fcb082b9 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.collab-proxy": "2.0.4", 4 | "com.unity.collections": "1.2.4", 5 | "com.unity.ide.rider": "3.0.21", 6 | "com.unity.ide.visualstudio": "2.0.21", 7 | "com.unity.mathematics": "1.2.6", 8 | "com.unity.test-framework": "1.1.33", 9 | "com.unity.textmeshpro": "3.0.6", 10 | "com.unity.timeline": "1.6.5", 11 | "com.unity.ugui": "1.0.0", 12 | "com.unity.visualscripting": "1.8.0", 13 | "com.unity.modules.ai": "1.0.0", 14 | "com.unity.modules.androidjni": "1.0.0", 15 | "com.unity.modules.animation": "1.0.0", 16 | "com.unity.modules.assetbundle": "1.0.0", 17 | "com.unity.modules.audio": "1.0.0", 18 | "com.unity.modules.cloth": "1.0.0", 19 | "com.unity.modules.director": "1.0.0", 20 | "com.unity.modules.imageconversion": "1.0.0", 21 | "com.unity.modules.imgui": "1.0.0", 22 | "com.unity.modules.jsonserialize": "1.0.0", 23 | "com.unity.modules.particlesystem": "1.0.0", 24 | "com.unity.modules.physics": "1.0.0", 25 | "com.unity.modules.physics2d": "1.0.0", 26 | "com.unity.modules.screencapture": "1.0.0", 27 | "com.unity.modules.terrain": "1.0.0", 28 | "com.unity.modules.terrainphysics": "1.0.0", 29 | "com.unity.modules.tilemap": "1.0.0", 30 | "com.unity.modules.ui": "1.0.0", 31 | "com.unity.modules.uielements": "1.0.0", 32 | "com.unity.modules.umbra": "1.0.0", 33 | "com.unity.modules.unityanalytics": "1.0.0", 34 | "com.unity.modules.unitywebrequest": "1.0.0", 35 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 36 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 37 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 38 | "com.unity.modules.unitywebrequestwww": "1.0.0", 39 | "com.unity.modules.vehicles": "1.0.0", 40 | "com.unity.modules.video": "1.0.0", 41 | "com.unity.modules.vr": "1.0.0", 42 | "com.unity.modules.wind": "1.0.0", 43 | "com.unity.modules.xr": "1.0.0" 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /Packages/packages-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.burst": { 4 | "version": "1.6.6", 5 | "depth": 1, 6 | "source": "registry", 7 | "dependencies": { 8 | "com.unity.mathematics": "1.2.1" 9 | }, 10 | "url": "https://packages.unity.com" 11 | }, 12 | "com.unity.collab-proxy": { 13 | "version": "2.0.4", 14 | "depth": 0, 15 | "source": "registry", 16 | "dependencies": {}, 17 | "url": "https://packages.unity.com" 18 | }, 19 | "com.unity.collections": { 20 | "version": "1.2.4", 21 | "depth": 0, 22 | "source": "registry", 23 | "dependencies": { 24 | "com.unity.burst": "1.6.6", 25 | "com.unity.test-framework": "1.1.31" 26 | }, 27 | "url": "https://packages.unity.com" 28 | }, 29 | "com.unity.ext.nunit": { 30 | "version": "1.0.6", 31 | "depth": 1, 32 | "source": "registry", 33 | "dependencies": {}, 34 | "url": "https://packages.unity.com" 35 | }, 36 | "com.unity.ide.rider": { 37 | "version": "3.0.21", 38 | "depth": 0, 39 | "source": "registry", 40 | "dependencies": { 41 | "com.unity.ext.nunit": "1.0.6" 42 | }, 43 | "url": "https://packages.unity.com" 44 | }, 45 | "com.unity.ide.visualstudio": { 46 | "version": "2.0.21", 47 | "depth": 0, 48 | "source": "registry", 49 | "dependencies": { 50 | "com.unity.test-framework": "1.1.9" 51 | }, 52 | "url": "https://packages.unity.com" 53 | }, 54 | "com.unity.mathematics": { 55 | "version": "1.2.6", 56 | "depth": 0, 57 | "source": "registry", 58 | "dependencies": {}, 59 | "url": "https://packages.unity.com" 60 | }, 61 | "com.unity.test-framework": { 62 | "version": "1.1.33", 63 | "depth": 0, 64 | "source": "registry", 65 | "dependencies": { 66 | "com.unity.ext.nunit": "1.0.6", 67 | "com.unity.modules.imgui": "1.0.0", 68 | "com.unity.modules.jsonserialize": "1.0.0" 69 | }, 70 | "url": "https://packages.unity.com" 71 | }, 72 | "com.unity.textmeshpro": { 73 | "version": "3.0.6", 74 | "depth": 0, 75 | "source": "registry", 76 | "dependencies": { 77 | "com.unity.ugui": "1.0.0" 78 | }, 79 | "url": "https://packages.unity.com" 80 | }, 81 | "com.unity.timeline": { 82 | "version": "1.6.5", 83 | "depth": 0, 84 | "source": "registry", 85 | "dependencies": { 86 | "com.unity.modules.director": "1.0.0", 87 | "com.unity.modules.animation": "1.0.0", 88 | "com.unity.modules.audio": "1.0.0", 89 | "com.unity.modules.particlesystem": "1.0.0" 90 | }, 91 | "url": "https://packages.unity.com" 92 | }, 93 | "com.unity.ugui": { 94 | "version": "1.0.0", 95 | "depth": 0, 96 | "source": "builtin", 97 | "dependencies": { 98 | "com.unity.modules.ui": "1.0.0", 99 | "com.unity.modules.imgui": "1.0.0" 100 | } 101 | }, 102 | "com.unity.visualscripting": { 103 | "version": "1.8.0", 104 | "depth": 0, 105 | "source": "registry", 106 | "dependencies": { 107 | "com.unity.ugui": "1.0.0", 108 | "com.unity.modules.jsonserialize": "1.0.0" 109 | }, 110 | "url": "https://packages.unity.com" 111 | }, 112 | "com.unity.modules.ai": { 113 | "version": "1.0.0", 114 | "depth": 0, 115 | "source": "builtin", 116 | "dependencies": {} 117 | }, 118 | "com.unity.modules.androidjni": { 119 | "version": "1.0.0", 120 | "depth": 0, 121 | "source": "builtin", 122 | "dependencies": {} 123 | }, 124 | "com.unity.modules.animation": { 125 | "version": "1.0.0", 126 | "depth": 0, 127 | "source": "builtin", 128 | "dependencies": {} 129 | }, 130 | "com.unity.modules.assetbundle": { 131 | "version": "1.0.0", 132 | "depth": 0, 133 | "source": "builtin", 134 | "dependencies": {} 135 | }, 136 | "com.unity.modules.audio": { 137 | "version": "1.0.0", 138 | "depth": 0, 139 | "source": "builtin", 140 | "dependencies": {} 141 | }, 142 | "com.unity.modules.cloth": { 143 | "version": "1.0.0", 144 | "depth": 0, 145 | "source": "builtin", 146 | "dependencies": { 147 | "com.unity.modules.physics": "1.0.0" 148 | } 149 | }, 150 | "com.unity.modules.director": { 151 | "version": "1.0.0", 152 | "depth": 0, 153 | "source": "builtin", 154 | "dependencies": { 155 | "com.unity.modules.audio": "1.0.0", 156 | "com.unity.modules.animation": "1.0.0" 157 | } 158 | }, 159 | "com.unity.modules.imageconversion": { 160 | "version": "1.0.0", 161 | "depth": 0, 162 | "source": "builtin", 163 | "dependencies": {} 164 | }, 165 | "com.unity.modules.imgui": { 166 | "version": "1.0.0", 167 | "depth": 0, 168 | "source": "builtin", 169 | "dependencies": {} 170 | }, 171 | "com.unity.modules.jsonserialize": { 172 | "version": "1.0.0", 173 | "depth": 0, 174 | "source": "builtin", 175 | "dependencies": {} 176 | }, 177 | "com.unity.modules.particlesystem": { 178 | "version": "1.0.0", 179 | "depth": 0, 180 | "source": "builtin", 181 | "dependencies": {} 182 | }, 183 | "com.unity.modules.physics": { 184 | "version": "1.0.0", 185 | "depth": 0, 186 | "source": "builtin", 187 | "dependencies": {} 188 | }, 189 | "com.unity.modules.physics2d": { 190 | "version": "1.0.0", 191 | "depth": 0, 192 | "source": "builtin", 193 | "dependencies": {} 194 | }, 195 | "com.unity.modules.screencapture": { 196 | "version": "1.0.0", 197 | "depth": 0, 198 | "source": "builtin", 199 | "dependencies": { 200 | "com.unity.modules.imageconversion": "1.0.0" 201 | } 202 | }, 203 | "com.unity.modules.subsystems": { 204 | "version": "1.0.0", 205 | "depth": 1, 206 | "source": "builtin", 207 | "dependencies": { 208 | "com.unity.modules.jsonserialize": "1.0.0" 209 | } 210 | }, 211 | "com.unity.modules.terrain": { 212 | "version": "1.0.0", 213 | "depth": 0, 214 | "source": "builtin", 215 | "dependencies": {} 216 | }, 217 | "com.unity.modules.terrainphysics": { 218 | "version": "1.0.0", 219 | "depth": 0, 220 | "source": "builtin", 221 | "dependencies": { 222 | "com.unity.modules.physics": "1.0.0", 223 | "com.unity.modules.terrain": "1.0.0" 224 | } 225 | }, 226 | "com.unity.modules.tilemap": { 227 | "version": "1.0.0", 228 | "depth": 0, 229 | "source": "builtin", 230 | "dependencies": { 231 | "com.unity.modules.physics2d": "1.0.0" 232 | } 233 | }, 234 | "com.unity.modules.ui": { 235 | "version": "1.0.0", 236 | "depth": 0, 237 | "source": "builtin", 238 | "dependencies": {} 239 | }, 240 | "com.unity.modules.uielements": { 241 | "version": "1.0.0", 242 | "depth": 0, 243 | "source": "builtin", 244 | "dependencies": { 245 | "com.unity.modules.ui": "1.0.0", 246 | "com.unity.modules.imgui": "1.0.0", 247 | "com.unity.modules.jsonserialize": "1.0.0", 248 | "com.unity.modules.uielementsnative": "1.0.0" 249 | } 250 | }, 251 | "com.unity.modules.uielementsnative": { 252 | "version": "1.0.0", 253 | "depth": 1, 254 | "source": "builtin", 255 | "dependencies": { 256 | "com.unity.modules.ui": "1.0.0", 257 | "com.unity.modules.imgui": "1.0.0", 258 | "com.unity.modules.jsonserialize": "1.0.0" 259 | } 260 | }, 261 | "com.unity.modules.umbra": { 262 | "version": "1.0.0", 263 | "depth": 0, 264 | "source": "builtin", 265 | "dependencies": {} 266 | }, 267 | "com.unity.modules.unityanalytics": { 268 | "version": "1.0.0", 269 | "depth": 0, 270 | "source": "builtin", 271 | "dependencies": { 272 | "com.unity.modules.unitywebrequest": "1.0.0", 273 | "com.unity.modules.jsonserialize": "1.0.0" 274 | } 275 | }, 276 | "com.unity.modules.unitywebrequest": { 277 | "version": "1.0.0", 278 | "depth": 0, 279 | "source": "builtin", 280 | "dependencies": {} 281 | }, 282 | "com.unity.modules.unitywebrequestassetbundle": { 283 | "version": "1.0.0", 284 | "depth": 0, 285 | "source": "builtin", 286 | "dependencies": { 287 | "com.unity.modules.assetbundle": "1.0.0", 288 | "com.unity.modules.unitywebrequest": "1.0.0" 289 | } 290 | }, 291 | "com.unity.modules.unitywebrequestaudio": { 292 | "version": "1.0.0", 293 | "depth": 0, 294 | "source": "builtin", 295 | "dependencies": { 296 | "com.unity.modules.unitywebrequest": "1.0.0", 297 | "com.unity.modules.audio": "1.0.0" 298 | } 299 | }, 300 | "com.unity.modules.unitywebrequesttexture": { 301 | "version": "1.0.0", 302 | "depth": 0, 303 | "source": "builtin", 304 | "dependencies": { 305 | "com.unity.modules.unitywebrequest": "1.0.0", 306 | "com.unity.modules.imageconversion": "1.0.0" 307 | } 308 | }, 309 | "com.unity.modules.unitywebrequestwww": { 310 | "version": "1.0.0", 311 | "depth": 0, 312 | "source": "builtin", 313 | "dependencies": { 314 | "com.unity.modules.unitywebrequest": "1.0.0", 315 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 316 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 317 | "com.unity.modules.audio": "1.0.0", 318 | "com.unity.modules.assetbundle": "1.0.0", 319 | "com.unity.modules.imageconversion": "1.0.0" 320 | } 321 | }, 322 | "com.unity.modules.vehicles": { 323 | "version": "1.0.0", 324 | "depth": 0, 325 | "source": "builtin", 326 | "dependencies": { 327 | "com.unity.modules.physics": "1.0.0" 328 | } 329 | }, 330 | "com.unity.modules.video": { 331 | "version": "1.0.0", 332 | "depth": 0, 333 | "source": "builtin", 334 | "dependencies": { 335 | "com.unity.modules.audio": "1.0.0", 336 | "com.unity.modules.ui": "1.0.0", 337 | "com.unity.modules.unitywebrequest": "1.0.0" 338 | } 339 | }, 340 | "com.unity.modules.vr": { 341 | "version": "1.0.0", 342 | "depth": 0, 343 | "source": "builtin", 344 | "dependencies": { 345 | "com.unity.modules.jsonserialize": "1.0.0", 346 | "com.unity.modules.physics": "1.0.0", 347 | "com.unity.modules.xr": "1.0.0" 348 | } 349 | }, 350 | "com.unity.modules.wind": { 351 | "version": "1.0.0", 352 | "depth": 0, 353 | "source": "builtin", 354 | "dependencies": {} 355 | }, 356 | "com.unity.modules.xr": { 357 | "version": "1.0.0", 358 | "depth": 0, 359 | "source": "builtin", 360 | "dependencies": { 361 | "com.unity.modules.physics": "1.0.0", 362 | "com.unity.modules.jsonserialize": "1.0.0", 363 | "com.unity.modules.subsystems": "1.0.0" 364 | } 365 | } 366 | } 367 | } 368 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Volume: 1 8 | Rolloff Scale: 1 9 | Doppler Factor: 1 10 | Default Speaker Mode: 2 11 | m_SampleRate: 0 12 | m_DSPBufferSize: 1024 13 | m_VirtualVoiceCount: 512 14 | m_RealVoiceCount: 32 15 | m_SpatializerPlugin: 16 | m_AmbisonicDecoderPlugin: 17 | m_DisableAudio: 0 18 | m_VirtualizeEffects: 1 19 | m_RequestedDSPBufferSize: 1024 20 | -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 11 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_DefaultSolverIterations: 6 13 | m_DefaultSolverVelocityIterations: 1 14 | m_QueriesHitBackfaces: 0 15 | m_QueriesHitTriggers: 1 16 | m_EnableAdaptiveForce: 0 17 | m_ClothInterCollisionDistance: 0 18 | m_ClothInterCollisionStiffness: 0 19 | m_ContactsGeneration: 1 20 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 21 | m_AutoSimulation: 1 22 | m_AutoSyncTransforms: 0 23 | m_ReuseCollisionCallbacks: 1 24 | m_ClothInterCollisionSettingsToggle: 0 25 | m_ContactPairsMode: 0 26 | m_BroadphaseType: 0 27 | m_WorldBounds: 28 | m_Center: {x: 0, y: 0, z: 0} 29 | m_Extent: {x: 250, y: 250, z: 250} 30 | m_WorldSubdivisions: 8 31 | m_FrictionType: 0 32 | m_EnableEnhancedDeterminism: 0 33 | m_EnableUnifiedHeightmaps: 1 34 | m_DefaultMaxAngluarSpeed: 7 35 | -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: [] 8 | m_configObjects: {} 9 | -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 11 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 0 10 | m_DefaultBehaviorMode: 0 11 | m_PrefabRegularEnvironment: {fileID: 0} 12 | m_PrefabUIEnvironment: {fileID: 0} 13 | m_SpritePackerMode: 0 14 | m_SpritePackerPaddingPower: 1 15 | m_EtcTextureCompressorBehavior: 1 16 | m_EtcTextureFastCompressor: 1 17 | m_EtcTextureNormalCompressor: 2 18 | m_EtcTextureBestCompressor: 4 19 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp;asmref 20 | m_ProjectGenerationRootNamespace: 21 | m_CollabEditorSettings: 22 | inProgressEnabled: 1 23 | m_EnableTextureStreamingInEditMode: 1 24 | m_EnableTextureStreamingInPlayMode: 1 25 | m_AsyncShaderCompilation: 1 26 | m_EnterPlayModeOptionsEnabled: 0 27 | m_EnterPlayModeOptions: 3 28 | m_ShowLightmapResolutionOverlay: 1 29 | m_UseLegacyProbeSampleCount: 0 30 | m_SerializeInlineMappingsOnOneLine: 1 31 | -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 13 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 38 | m_PreloadedShaders: [] 39 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 40 | type: 0} 41 | m_CustomRenderPipeline: {fileID: 0} 42 | m_TransparencySortMode: 0 43 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 44 | m_DefaultRenderingPath: 1 45 | m_DefaultMobileRenderingPath: 1 46 | m_TierSettings: [] 47 | m_LightmapStripping: 0 48 | m_FogStripping: 0 49 | m_InstancingStripping: 0 50 | m_LightmapKeepPlain: 1 51 | m_LightmapKeepDirCombined: 1 52 | m_LightmapKeepDynamicPlain: 1 53 | m_LightmapKeepDynamicDirCombined: 1 54 | m_LightmapKeepShadowMask: 1 55 | m_LightmapKeepSubtractive: 1 56 | m_FogKeepLinear: 1 57 | m_FogKeepExp: 1 58 | m_FogKeepExp2: 1 59 | m_AlbedoSwatchInfos: [] 60 | m_LightsUseLinearIntensity: 0 61 | m_LightsUseColorTemperature: 0 62 | m_LogWhenShaderIsCompiled: 0 63 | m_AllowEnlightenSupportForUpgradedProject: 0 64 | -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!13 &1 4 | InputManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Axes: 8 | - serializedVersion: 3 9 | m_Name: Horizontal 10 | descriptiveName: 11 | descriptiveNegativeName: 12 | negativeButton: left 13 | positiveButton: right 14 | altNegativeButton: a 15 | altPositiveButton: d 16 | gravity: 3 17 | dead: 0.001 18 | sensitivity: 3 19 | snap: 1 20 | invert: 0 21 | type: 0 22 | axis: 0 23 | joyNum: 0 24 | - serializedVersion: 3 25 | m_Name: Vertical 26 | descriptiveName: 27 | descriptiveNegativeName: 28 | negativeButton: down 29 | positiveButton: up 30 | altNegativeButton: s 31 | altPositiveButton: w 32 | gravity: 3 33 | dead: 0.001 34 | sensitivity: 3 35 | snap: 1 36 | invert: 0 37 | type: 0 38 | axis: 0 39 | joyNum: 0 40 | - serializedVersion: 3 41 | m_Name: Fire1 42 | descriptiveName: 43 | descriptiveNegativeName: 44 | negativeButton: 45 | positiveButton: left ctrl 46 | altNegativeButton: 47 | altPositiveButton: mouse 0 48 | gravity: 1000 49 | dead: 0.001 50 | sensitivity: 1000 51 | snap: 0 52 | invert: 0 53 | type: 0 54 | axis: 0 55 | joyNum: 0 56 | - serializedVersion: 3 57 | m_Name: Fire2 58 | descriptiveName: 59 | descriptiveNegativeName: 60 | negativeButton: 61 | positiveButton: left alt 62 | altNegativeButton: 63 | altPositiveButton: mouse 1 64 | gravity: 1000 65 | dead: 0.001 66 | sensitivity: 1000 67 | snap: 0 68 | invert: 0 69 | type: 0 70 | axis: 0 71 | joyNum: 0 72 | - serializedVersion: 3 73 | m_Name: Fire3 74 | descriptiveName: 75 | descriptiveNegativeName: 76 | negativeButton: 77 | positiveButton: left shift 78 | altNegativeButton: 79 | altPositiveButton: mouse 2 80 | gravity: 1000 81 | dead: 0.001 82 | sensitivity: 1000 83 | snap: 0 84 | invert: 0 85 | type: 0 86 | axis: 0 87 | joyNum: 0 88 | - serializedVersion: 3 89 | m_Name: Jump 90 | descriptiveName: 91 | descriptiveNegativeName: 92 | negativeButton: 93 | positiveButton: space 94 | altNegativeButton: 95 | altPositiveButton: 96 | gravity: 1000 97 | dead: 0.001 98 | sensitivity: 1000 99 | snap: 0 100 | invert: 0 101 | type: 0 102 | axis: 0 103 | joyNum: 0 104 | - serializedVersion: 3 105 | m_Name: Mouse X 106 | descriptiveName: 107 | descriptiveNegativeName: 108 | negativeButton: 109 | positiveButton: 110 | altNegativeButton: 111 | altPositiveButton: 112 | gravity: 0 113 | dead: 0 114 | sensitivity: 0.1 115 | snap: 0 116 | invert: 0 117 | type: 1 118 | axis: 0 119 | joyNum: 0 120 | - serializedVersion: 3 121 | m_Name: Mouse Y 122 | descriptiveName: 123 | descriptiveNegativeName: 124 | negativeButton: 125 | positiveButton: 126 | altNegativeButton: 127 | altPositiveButton: 128 | gravity: 0 129 | dead: 0 130 | sensitivity: 0.1 131 | snap: 0 132 | invert: 0 133 | type: 1 134 | axis: 1 135 | joyNum: 0 136 | - serializedVersion: 3 137 | m_Name: Mouse ScrollWheel 138 | descriptiveName: 139 | descriptiveNegativeName: 140 | negativeButton: 141 | positiveButton: 142 | altNegativeButton: 143 | altPositiveButton: 144 | gravity: 0 145 | dead: 0 146 | sensitivity: 0.1 147 | snap: 0 148 | invert: 0 149 | type: 1 150 | axis: 2 151 | joyNum: 0 152 | - serializedVersion: 3 153 | m_Name: Horizontal 154 | descriptiveName: 155 | descriptiveNegativeName: 156 | negativeButton: 157 | positiveButton: 158 | altNegativeButton: 159 | altPositiveButton: 160 | gravity: 0 161 | dead: 0.19 162 | sensitivity: 1 163 | snap: 0 164 | invert: 0 165 | type: 2 166 | axis: 0 167 | joyNum: 0 168 | - serializedVersion: 3 169 | m_Name: Vertical 170 | descriptiveName: 171 | descriptiveNegativeName: 172 | negativeButton: 173 | positiveButton: 174 | altNegativeButton: 175 | altPositiveButton: 176 | gravity: 0 177 | dead: 0.19 178 | sensitivity: 1 179 | snap: 0 180 | invert: 1 181 | type: 2 182 | axis: 1 183 | joyNum: 0 184 | - serializedVersion: 3 185 | m_Name: Fire1 186 | descriptiveName: 187 | descriptiveNegativeName: 188 | negativeButton: 189 | positiveButton: joystick button 0 190 | altNegativeButton: 191 | altPositiveButton: 192 | gravity: 1000 193 | dead: 0.001 194 | sensitivity: 1000 195 | snap: 0 196 | invert: 0 197 | type: 0 198 | axis: 0 199 | joyNum: 0 200 | - serializedVersion: 3 201 | m_Name: Fire2 202 | descriptiveName: 203 | descriptiveNegativeName: 204 | negativeButton: 205 | positiveButton: joystick button 1 206 | altNegativeButton: 207 | altPositiveButton: 208 | gravity: 1000 209 | dead: 0.001 210 | sensitivity: 1000 211 | snap: 0 212 | invert: 0 213 | type: 0 214 | axis: 0 215 | joyNum: 0 216 | - serializedVersion: 3 217 | m_Name: Fire3 218 | descriptiveName: 219 | descriptiveNegativeName: 220 | negativeButton: 221 | positiveButton: joystick button 2 222 | altNegativeButton: 223 | altPositiveButton: 224 | gravity: 1000 225 | dead: 0.001 226 | sensitivity: 1000 227 | snap: 0 228 | invert: 0 229 | type: 0 230 | axis: 0 231 | joyNum: 0 232 | - serializedVersion: 3 233 | m_Name: Jump 234 | descriptiveName: 235 | descriptiveNegativeName: 236 | negativeButton: 237 | positiveButton: joystick button 3 238 | altNegativeButton: 239 | altPositiveButton: 240 | gravity: 1000 241 | dead: 0.001 242 | sensitivity: 1000 243 | snap: 0 244 | invert: 0 245 | type: 0 246 | axis: 0 247 | joyNum: 0 248 | - serializedVersion: 3 249 | m_Name: Submit 250 | descriptiveName: 251 | descriptiveNegativeName: 252 | negativeButton: 253 | positiveButton: return 254 | altNegativeButton: 255 | altPositiveButton: joystick button 0 256 | gravity: 1000 257 | dead: 0.001 258 | sensitivity: 1000 259 | snap: 0 260 | invert: 0 261 | type: 0 262 | axis: 0 263 | joyNum: 0 264 | - serializedVersion: 3 265 | m_Name: Submit 266 | descriptiveName: 267 | descriptiveNegativeName: 268 | negativeButton: 269 | positiveButton: enter 270 | altNegativeButton: 271 | altPositiveButton: space 272 | gravity: 1000 273 | dead: 0.001 274 | sensitivity: 1000 275 | snap: 0 276 | invert: 0 277 | type: 0 278 | axis: 0 279 | joyNum: 0 280 | - serializedVersion: 3 281 | m_Name: Cancel 282 | descriptiveName: 283 | descriptiveNegativeName: 284 | negativeButton: 285 | positiveButton: escape 286 | altNegativeButton: 287 | altPositiveButton: joystick button 1 288 | gravity: 1000 289 | dead: 0.001 290 | sensitivity: 1000 291 | snap: 0 292 | invert: 0 293 | type: 0 294 | axis: 0 295 | joyNum: 0 296 | - serializedVersion: 3 297 | m_Name: UpDown 298 | descriptiveName: 299 | descriptiveNegativeName: 300 | negativeButton: q 301 | positiveButton: e 302 | altNegativeButton: 303 | altPositiveButton: 304 | gravity: 3 305 | dead: 0.001 306 | sensitivity: 3 307 | snap: 1 308 | invert: 0 309 | type: 0 310 | axis: 0 311 | joyNum: 0 312 | m_UsePhysicalKeys: 0 313 | -------------------------------------------------------------------------------- /ProjectSettings/MemorySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!387306366 &1 4 | MemorySettings: 5 | m_ObjectHideFlags: 0 6 | m_EditorMemorySettings: 7 | m_MainAllocatorBlockSize: -1 8 | m_ThreadAllocatorBlockSize: -1 9 | m_MainGfxBlockSize: -1 10 | m_ThreadGfxBlockSize: -1 11 | m_CacheBlockSize: -1 12 | m_TypetreeBlockSize: -1 13 | m_ProfilerBlockSize: -1 14 | m_ProfilerEditorBlockSize: -1 15 | m_BucketAllocatorGranularity: -1 16 | m_BucketAllocatorBucketsCount: -1 17 | m_BucketAllocatorBlockSize: -1 18 | m_BucketAllocatorBlockCount: -1 19 | m_ProfilerBucketAllocatorGranularity: -1 20 | m_ProfilerBucketAllocatorBucketsCount: -1 21 | m_ProfilerBucketAllocatorBlockSize: -1 22 | m_ProfilerBucketAllocatorBlockCount: -1 23 | m_TempAllocatorSizeMain: -1 24 | m_JobTempAllocatorBlockSize: -1 25 | m_BackgroundJobTempAllocatorBlockSize: -1 26 | m_JobTempAllocatorReducedBlockSize: -1 27 | m_TempAllocatorSizeGIBakingWorker: -1 28 | m_TempAllocatorSizeNavMeshWorker: -1 29 | m_TempAllocatorSizeAudioWorker: -1 30 | m_TempAllocatorSizeCloudWorker: -1 31 | m_TempAllocatorSizeGfx: -1 32 | m_TempAllocatorSizeJobWorker: -1 33 | m_TempAllocatorSizeBackgroundWorker: -1 34 | m_TempAllocatorSizePreloadManager: -1 35 | m_PlatformMemorySettings: {} 36 | -------------------------------------------------------------------------------- /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/PackageManagerSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &1 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 61 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 13964, guid: 0000000000000000e000000000000000, type: 0} 13 | m_Name: 14 | m_EditorClassIdentifier: 15 | m_EnablePreReleasePackages: 0 16 | m_EnablePackageDependencies: 0 17 | m_AdvancedSettingsExpanded: 1 18 | m_ScopedRegistriesSettingsExpanded: 1 19 | m_SeeAllPackageVersions: 0 20 | oneTimeWarningShown: 0 21 | m_Registries: 22 | - m_Id: main 23 | m_Name: 24 | m_Url: https://packages.unity.com 25 | m_Scopes: [] 26 | m_IsDefault: 1 27 | m_Capabilities: 7 28 | m_UserSelectedRegistryName: 29 | m_UserAddingNewScopedRegistry: 0 30 | m_RegistryInfoDraft: 31 | m_Modified: 0 32 | m_ErrorMessage: 33 | m_UserModificationsInstanceId: -830 34 | m_OriginalInstanceId: -832 35 | m_LoadAssets: 0 36 | -------------------------------------------------------------------------------- /ProjectSettings/Packages/com.unity.testtools.codecoverage/Settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "m_Name": "Settings", 3 | "m_Path": "ProjectSettings/Packages/com.unity.testtools.codecoverage/Settings.json", 4 | "m_Dictionary": { 5 | "m_DictionaryValues": [] 6 | } 7 | } -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 4 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_BaumgarteScale: 0.2 17 | m_BaumgarteTimeOfImpactScale: 0.75 18 | m_TimeToSleep: 0.5 19 | m_LinearSleepTolerance: 0.01 20 | m_AngularSleepTolerance: 2 21 | m_DefaultContactOffset: 0.01 22 | m_JobOptions: 23 | serializedVersion: 2 24 | useMultithreading: 0 25 | useConsistencySorting: 0 26 | m_InterpolationPosesPerJob: 100 27 | m_NewContactsPerJob: 30 28 | m_CollideContactsPerJob: 100 29 | m_ClearFlagsPerJob: 200 30 | m_ClearBodyForcesPerJob: 200 31 | m_SyncDiscreteFixturesPerJob: 50 32 | m_SyncContinuousFixturesPerJob: 50 33 | m_FindNearestContactsPerJob: 100 34 | m_UpdateTriggerContactsPerJob: 100 35 | m_IslandSolverCostThreshold: 100 36 | m_IslandSolverBodyCostScale: 1 37 | m_IslandSolverContactCostScale: 10 38 | m_IslandSolverJointCostScale: 10 39 | m_IslandSolverBodiesPerJob: 50 40 | m_IslandSolverContactsPerJob: 50 41 | m_AutoSimulation: 1 42 | m_QueriesHitTriggers: 1 43 | m_QueriesStartInColliders: 1 44 | m_CallbacksOnDisable: 1 45 | m_ReuseCollisionCallbacks: 1 46 | m_AutoSyncTransforms: 0 47 | m_AlwaysShowColliders: 0 48 | m_ShowColliderSleep: 1 49 | m_ShowColliderContacts: 0 50 | m_ShowColliderAABB: 0 51 | m_ContactArrowScale: 0.2 52 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 53 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 54 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 55 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 56 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 57 | -------------------------------------------------------------------------------- /ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1386491679 &1 4 | PresetManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_DefaultPresets: {} 8 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!129 &1 4 | PlayerSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 23 7 | productGUID: 37e9f6a69fc074bc48f40a36e34331d5 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: octree-planet-terrain 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: 1920 46 | defaultScreenHeight: 1080 47 | defaultScreenWidthWeb: 960 48 | defaultScreenHeightWeb: 600 49 | m_StereoRenderingPath: 0 50 | m_ActiveColorSpace: 0 51 | m_MTRendering: 1 52 | mipStripping: 0 53 | numberOfMipsStripped: 0 54 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 55 | iosShowActivityIndicatorOnLoading: -1 56 | androidShowActivityIndicatorOnLoading: -1 57 | iosUseCustomAppBackgroundBehavior: 0 58 | iosAllowHTTPDownload: 1 59 | allowedAutorotateToPortrait: 1 60 | allowedAutorotateToPortraitUpsideDown: 1 61 | allowedAutorotateToLandscapeRight: 1 62 | allowedAutorotateToLandscapeLeft: 1 63 | useOSAutorotation: 1 64 | use32BitDisplayBuffer: 1 65 | preserveFramebufferAlpha: 0 66 | disableDepthAndStencilBuffers: 0 67 | androidStartInFullscreen: 1 68 | androidRenderOutsideSafeArea: 1 69 | androidUseSwappy: 1 70 | androidBlitType: 0 71 | androidResizableWindow: 0 72 | androidDefaultWindowWidth: 1920 73 | androidDefaultWindowHeight: 1080 74 | androidMinimumWindowWidth: 400 75 | androidMinimumWindowHeight: 300 76 | androidFullscreenMode: 1 77 | defaultIsNativeResolution: 1 78 | macRetinaSupport: 1 79 | runInBackground: 1 80 | captureSingleScreen: 0 81 | muteOtherAudioSources: 0 82 | Prepare IOS For Recording: 0 83 | Force IOS Speakers When Recording: 0 84 | deferSystemGesturesMode: 0 85 | hideHomeButton: 0 86 | submitAnalytics: 1 87 | usePlayerLog: 1 88 | bakeCollisionMeshes: 0 89 | forceSingleInstance: 0 90 | useFlipModelSwapchain: 1 91 | resizableWindow: 0 92 | useMacAppStoreValidation: 0 93 | macAppStoreCategory: public.app-category.games 94 | gpuSkinning: 1 95 | xboxPIXTextureCapture: 0 96 | xboxEnableAvatar: 0 97 | xboxEnableKinect: 0 98 | xboxEnableKinectAutoTracking: 0 99 | xboxEnableFitness: 0 100 | visibleInBackground: 1 101 | allowFullscreenSwitch: 1 102 | fullscreenMode: 1 103 | xboxSpeechDB: 0 104 | xboxEnableHeadOrientation: 0 105 | xboxEnableGuest: 0 106 | xboxEnablePIXSampling: 0 107 | metalFramebufferOnly: 0 108 | xboxOneResolution: 0 109 | xboxOneSResolution: 0 110 | xboxOneXResolution: 3 111 | xboxOneMonoLoggingLevel: 0 112 | xboxOneLoggingLevel: 1 113 | xboxOneDisableEsram: 0 114 | xboxOneEnableTypeOptimization: 0 115 | xboxOnePresentImmediateThreshold: 0 116 | switchQueueCommandMemory: 0 117 | switchQueueControlMemory: 16384 118 | switchQueueComputeMemory: 262144 119 | switchNVNShaderPoolsGranularity: 33554432 120 | switchNVNDefaultPoolsGranularity: 16777216 121 | switchNVNOtherPoolsGranularity: 16777216 122 | switchNVNMaxPublicTextureIDCount: 0 123 | switchNVNMaxPublicSamplerIDCount: 0 124 | stadiaPresentMode: 0 125 | stadiaTargetFramerate: 0 126 | vulkanNumSwapchainBuffers: 3 127 | vulkanEnableSetSRGBWrite: 0 128 | vulkanEnablePreTransform: 1 129 | vulkanEnableLateAcquireNextImage: 0 130 | vulkanEnableCommandBufferRecycling: 1 131 | m_SupportedAspectRatios: 132 | 4:3: 1 133 | 5:4: 1 134 | 16:10: 1 135 | 16:9: 1 136 | Others: 1 137 | bundleVersion: 0.1 138 | preloadedAssets: [] 139 | metroInputSource: 0 140 | wsaTransparentSwapchain: 0 141 | m_HolographicPauseOnTrackingLoss: 1 142 | xboxOneDisableKinectGpuReservation: 1 143 | xboxOneEnable7thCore: 1 144 | vrSettings: 145 | enable360StereoCapture: 0 146 | isWsaHolographicRemotingEnabled: 0 147 | enableFrameTimingStats: 0 148 | enableOpenGLProfilerGPURecorders: 1 149 | useHDRDisplay: 0 150 | D3DHDRBitDepth: 0 151 | m_ColorGamuts: 00000000 152 | targetPixelDensity: 30 153 | resolutionScalingMode: 0 154 | androidSupportedAspectRatio: 1 155 | androidMaxAspectRatio: 2.1 156 | applicationIdentifier: {} 157 | buildNumber: 158 | Standalone: 0 159 | iPhone: 0 160 | tvOS: 0 161 | overrideDefaultApplicationIdentifier: 0 162 | AndroidBundleVersionCode: 1 163 | AndroidMinSdkVersion: 22 164 | AndroidTargetSdkVersion: 0 165 | AndroidPreferredInstallLocation: 1 166 | aotOptions: 167 | stripEngineCode: 1 168 | iPhoneStrippingLevel: 0 169 | iPhoneScriptCallOptimization: 0 170 | ForceInternetPermission: 0 171 | ForceSDCardPermission: 0 172 | CreateWallpaper: 0 173 | APKExpansionFiles: 0 174 | keepLoadedShadersAlive: 0 175 | StripUnusedMeshComponents: 1 176 | VertexChannelCompressionMask: 4054 177 | iPhoneSdkVersion: 988 178 | iOSTargetOSVersionString: 11.0 179 | tvOSSdkVersion: 0 180 | tvOSRequireExtendedGameController: 0 181 | tvOSTargetOSVersionString: 11.0 182 | uIPrerenderedIcon: 0 183 | uIRequiresPersistentWiFi: 0 184 | uIRequiresFullScreen: 1 185 | uIStatusBarHidden: 1 186 | uIExitOnSuspend: 0 187 | uIStatusBarStyle: 0 188 | appleTVSplashScreen: {fileID: 0} 189 | appleTVSplashScreen2x: {fileID: 0} 190 | tvOSSmallIconLayers: [] 191 | tvOSSmallIconLayers2x: [] 192 | tvOSLargeIconLayers: [] 193 | tvOSLargeIconLayers2x: [] 194 | tvOSTopShelfImageLayers: [] 195 | tvOSTopShelfImageLayers2x: [] 196 | tvOSTopShelfImageWideLayers: [] 197 | tvOSTopShelfImageWideLayers2x: [] 198 | iOSLaunchScreenType: 0 199 | iOSLaunchScreenPortrait: {fileID: 0} 200 | iOSLaunchScreenLandscape: {fileID: 0} 201 | iOSLaunchScreenBackgroundColor: 202 | serializedVersion: 2 203 | rgba: 0 204 | iOSLaunchScreenFillPct: 100 205 | iOSLaunchScreenSize: 100 206 | iOSLaunchScreenCustomXibPath: 207 | iOSLaunchScreeniPadType: 0 208 | iOSLaunchScreeniPadImage: {fileID: 0} 209 | iOSLaunchScreeniPadBackgroundColor: 210 | serializedVersion: 2 211 | rgba: 0 212 | iOSLaunchScreeniPadFillPct: 100 213 | iOSLaunchScreeniPadSize: 100 214 | iOSLaunchScreeniPadCustomXibPath: 215 | iOSLaunchScreenCustomStoryboardPath: 216 | iOSLaunchScreeniPadCustomStoryboardPath: 217 | iOSDeviceRequirements: [] 218 | iOSURLSchemes: [] 219 | macOSURLSchemes: [] 220 | iOSBackgroundModes: 0 221 | iOSMetalForceHardShadows: 0 222 | metalEditorSupport: 1 223 | metalAPIValidation: 1 224 | iOSRenderExtraFrameOnPause: 0 225 | iosCopyPluginsCodeInsteadOfSymlink: 0 226 | appleDeveloperTeamID: 227 | iOSManualSigningProvisioningProfileID: 228 | tvOSManualSigningProvisioningProfileID: 229 | iOSManualSigningProvisioningProfileType: 0 230 | tvOSManualSigningProvisioningProfileType: 0 231 | appleEnableAutomaticSigning: 0 232 | iOSRequireARKit: 0 233 | iOSAutomaticallyDetectAndAddCapabilities: 1 234 | appleEnableProMotion: 0 235 | shaderPrecisionModel: 0 236 | clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea 237 | templatePackageId: com.unity.template.3d@8.1.0 238 | templateDefaultScene: Assets/Scenes/SampleScene.unity 239 | useCustomMainManifest: 0 240 | useCustomLauncherManifest: 0 241 | useCustomMainGradleTemplate: 0 242 | useCustomLauncherGradleManifest: 0 243 | useCustomBaseGradleTemplate: 0 244 | useCustomGradlePropertiesTemplate: 0 245 | useCustomProguardFile: 0 246 | AndroidTargetArchitectures: 1 247 | AndroidTargetDevices: 0 248 | AndroidSplashScreenScale: 0 249 | androidSplashScreen: {fileID: 0} 250 | AndroidKeystoreName: 251 | AndroidKeyaliasName: 252 | AndroidBuildApkPerCpuArchitecture: 0 253 | AndroidTVCompatibility: 0 254 | AndroidIsGame: 1 255 | AndroidEnableTango: 0 256 | androidEnableBanner: 1 257 | androidUseLowAccuracyLocation: 0 258 | androidUseCustomKeystore: 0 259 | m_AndroidBanners: 260 | - width: 320 261 | height: 180 262 | banner: {fileID: 0} 263 | androidGamepadSupportLevel: 0 264 | chromeosInputEmulation: 1 265 | AndroidMinifyWithR8: 0 266 | AndroidMinifyRelease: 0 267 | AndroidMinifyDebug: 0 268 | AndroidValidateAppBundleSize: 1 269 | AndroidAppBundleSizeToValidate: 150 270 | m_BuildTargetIcons: [] 271 | m_BuildTargetPlatformIcons: [] 272 | m_BuildTargetBatching: 273 | - m_BuildTarget: Standalone 274 | m_StaticBatching: 1 275 | m_DynamicBatching: 0 276 | - m_BuildTarget: tvOS 277 | m_StaticBatching: 1 278 | m_DynamicBatching: 0 279 | - m_BuildTarget: Android 280 | m_StaticBatching: 1 281 | m_DynamicBatching: 0 282 | - m_BuildTarget: iPhone 283 | m_StaticBatching: 1 284 | m_DynamicBatching: 0 285 | - m_BuildTarget: WebGL 286 | m_StaticBatching: 0 287 | m_DynamicBatching: 0 288 | m_BuildTargetGraphicsJobs: 289 | - m_BuildTarget: MacStandaloneSupport 290 | m_GraphicsJobs: 0 291 | - m_BuildTarget: Switch 292 | m_GraphicsJobs: 1 293 | - m_BuildTarget: MetroSupport 294 | m_GraphicsJobs: 1 295 | - m_BuildTarget: AppleTVSupport 296 | m_GraphicsJobs: 0 297 | - m_BuildTarget: BJMSupport 298 | m_GraphicsJobs: 1 299 | - m_BuildTarget: LinuxStandaloneSupport 300 | m_GraphicsJobs: 1 301 | - m_BuildTarget: PS4Player 302 | m_GraphicsJobs: 1 303 | - m_BuildTarget: iOSSupport 304 | m_GraphicsJobs: 0 305 | - m_BuildTarget: WindowsStandaloneSupport 306 | m_GraphicsJobs: 1 307 | - m_BuildTarget: XboxOnePlayer 308 | m_GraphicsJobs: 1 309 | - m_BuildTarget: LuminSupport 310 | m_GraphicsJobs: 0 311 | - m_BuildTarget: AndroidPlayer 312 | m_GraphicsJobs: 0 313 | - m_BuildTarget: WebGLSupport 314 | m_GraphicsJobs: 0 315 | m_BuildTargetGraphicsJobMode: 316 | - m_BuildTarget: PS4Player 317 | m_GraphicsJobMode: 0 318 | - m_BuildTarget: XboxOnePlayer 319 | m_GraphicsJobMode: 0 320 | m_BuildTargetGraphicsAPIs: 321 | - m_BuildTarget: AndroidPlayer 322 | m_APIs: 150000000b000000 323 | m_Automatic: 1 324 | - m_BuildTarget: iOSSupport 325 | m_APIs: 10000000 326 | m_Automatic: 1 327 | - m_BuildTarget: AppleTVSupport 328 | m_APIs: 10000000 329 | m_Automatic: 1 330 | - m_BuildTarget: WebGLSupport 331 | m_APIs: 0b000000 332 | m_Automatic: 1 333 | m_BuildTargetVRSettings: 334 | - m_BuildTarget: Standalone 335 | m_Enabled: 0 336 | m_Devices: 337 | - Oculus 338 | - OpenVR 339 | openGLRequireES31: 0 340 | openGLRequireES31AEP: 0 341 | openGLRequireES32: 0 342 | m_TemplateCustomTags: {} 343 | mobileMTRendering: 344 | Android: 1 345 | iPhone: 1 346 | tvOS: 1 347 | m_BuildTargetGroupLightmapEncodingQuality: 348 | - m_BuildTarget: Android 349 | m_EncodingQuality: 1 350 | - m_BuildTarget: iPhone 351 | m_EncodingQuality: 1 352 | - m_BuildTarget: tvOS 353 | m_EncodingQuality: 1 354 | m_BuildTargetGroupLightmapSettings: [] 355 | m_BuildTargetNormalMapEncoding: 356 | - m_BuildTarget: Android 357 | m_Encoding: 1 358 | - m_BuildTarget: iPhone 359 | m_Encoding: 1 360 | - m_BuildTarget: tvOS 361 | m_Encoding: 1 362 | m_BuildTargetDefaultTextureCompressionFormat: 363 | - m_BuildTarget: Android 364 | m_Format: 3 365 | playModeTestRunnerEnabled: 0 366 | runPlayModeTestAsEditModeTest: 0 367 | actionOnDotNetUnhandledException: 1 368 | enableInternalProfiler: 0 369 | logObjCUncaughtExceptions: 1 370 | enableCrashReportAPI: 0 371 | cameraUsageDescription: 372 | locationUsageDescription: 373 | microphoneUsageDescription: 374 | bluetoothUsageDescription: 375 | switchNMETAOverride: 376 | switchNetLibKey: 377 | switchSocketMemoryPoolSize: 6144 378 | switchSocketAllocatorPoolSize: 128 379 | switchSocketConcurrencyLimit: 14 380 | switchScreenResolutionBehavior: 2 381 | switchUseCPUProfiler: 0 382 | switchUseGOLDLinker: 0 383 | switchLTOSetting: 0 384 | switchApplicationID: 0x01004b9000490000 385 | switchNSODependencies: 386 | switchTitleNames_0: 387 | switchTitleNames_1: 388 | switchTitleNames_2: 389 | switchTitleNames_3: 390 | switchTitleNames_4: 391 | switchTitleNames_5: 392 | switchTitleNames_6: 393 | switchTitleNames_7: 394 | switchTitleNames_8: 395 | switchTitleNames_9: 396 | switchTitleNames_10: 397 | switchTitleNames_11: 398 | switchTitleNames_12: 399 | switchTitleNames_13: 400 | switchTitleNames_14: 401 | switchTitleNames_15: 402 | switchPublisherNames_0: 403 | switchPublisherNames_1: 404 | switchPublisherNames_2: 405 | switchPublisherNames_3: 406 | switchPublisherNames_4: 407 | switchPublisherNames_5: 408 | switchPublisherNames_6: 409 | switchPublisherNames_7: 410 | switchPublisherNames_8: 411 | switchPublisherNames_9: 412 | switchPublisherNames_10: 413 | switchPublisherNames_11: 414 | switchPublisherNames_12: 415 | switchPublisherNames_13: 416 | switchPublisherNames_14: 417 | switchPublisherNames_15: 418 | switchIcons_0: {fileID: 0} 419 | switchIcons_1: {fileID: 0} 420 | switchIcons_2: {fileID: 0} 421 | switchIcons_3: {fileID: 0} 422 | switchIcons_4: {fileID: 0} 423 | switchIcons_5: {fileID: 0} 424 | switchIcons_6: {fileID: 0} 425 | switchIcons_7: {fileID: 0} 426 | switchIcons_8: {fileID: 0} 427 | switchIcons_9: {fileID: 0} 428 | switchIcons_10: {fileID: 0} 429 | switchIcons_11: {fileID: 0} 430 | switchIcons_12: {fileID: 0} 431 | switchIcons_13: {fileID: 0} 432 | switchIcons_14: {fileID: 0} 433 | switchIcons_15: {fileID: 0} 434 | switchSmallIcons_0: {fileID: 0} 435 | switchSmallIcons_1: {fileID: 0} 436 | switchSmallIcons_2: {fileID: 0} 437 | switchSmallIcons_3: {fileID: 0} 438 | switchSmallIcons_4: {fileID: 0} 439 | switchSmallIcons_5: {fileID: 0} 440 | switchSmallIcons_6: {fileID: 0} 441 | switchSmallIcons_7: {fileID: 0} 442 | switchSmallIcons_8: {fileID: 0} 443 | switchSmallIcons_9: {fileID: 0} 444 | switchSmallIcons_10: {fileID: 0} 445 | switchSmallIcons_11: {fileID: 0} 446 | switchSmallIcons_12: {fileID: 0} 447 | switchSmallIcons_13: {fileID: 0} 448 | switchSmallIcons_14: {fileID: 0} 449 | switchSmallIcons_15: {fileID: 0} 450 | switchManualHTML: 451 | switchAccessibleURLs: 452 | switchLegalInformation: 453 | switchMainThreadStackSize: 1048576 454 | switchPresenceGroupId: 455 | switchLogoHandling: 0 456 | switchReleaseVersion: 0 457 | switchDisplayVersion: 1.0.0 458 | switchStartupUserAccount: 0 459 | switchTouchScreenUsage: 0 460 | switchSupportedLanguagesMask: 0 461 | switchLogoType: 0 462 | switchApplicationErrorCodeCategory: 463 | switchUserAccountSaveDataSize: 0 464 | switchUserAccountSaveDataJournalSize: 0 465 | switchApplicationAttribute: 0 466 | switchCardSpecSize: -1 467 | switchCardSpecClock: -1 468 | switchRatingsMask: 0 469 | switchRatingsInt_0: 0 470 | switchRatingsInt_1: 0 471 | switchRatingsInt_2: 0 472 | switchRatingsInt_3: 0 473 | switchRatingsInt_4: 0 474 | switchRatingsInt_5: 0 475 | switchRatingsInt_6: 0 476 | switchRatingsInt_7: 0 477 | switchRatingsInt_8: 0 478 | switchRatingsInt_9: 0 479 | switchRatingsInt_10: 0 480 | switchRatingsInt_11: 0 481 | switchRatingsInt_12: 0 482 | switchLocalCommunicationIds_0: 483 | switchLocalCommunicationIds_1: 484 | switchLocalCommunicationIds_2: 485 | switchLocalCommunicationIds_3: 486 | switchLocalCommunicationIds_4: 487 | switchLocalCommunicationIds_5: 488 | switchLocalCommunicationIds_6: 489 | switchLocalCommunicationIds_7: 490 | switchParentalControl: 0 491 | switchAllowsScreenshot: 1 492 | switchAllowsVideoCapturing: 1 493 | switchAllowsRuntimeAddOnContentInstall: 0 494 | switchDataLossConfirmation: 0 495 | switchUserAccountLockEnabled: 0 496 | switchSystemResourceMemory: 16777216 497 | switchSupportedNpadStyles: 22 498 | switchNativeFsCacheSize: 32 499 | switchIsHoldTypeHorizontal: 0 500 | switchSupportedNpadCount: 8 501 | switchSocketConfigEnabled: 0 502 | switchTcpInitialSendBufferSize: 32 503 | switchTcpInitialReceiveBufferSize: 64 504 | switchTcpAutoSendBufferSizeMax: 256 505 | switchTcpAutoReceiveBufferSizeMax: 256 506 | switchUdpSendBufferSize: 9 507 | switchUdpReceiveBufferSize: 42 508 | switchSocketBufferEfficiency: 4 509 | switchSocketInitializeEnabled: 1 510 | switchNetworkInterfaceManagerInitializeEnabled: 1 511 | switchPlayerConnectionEnabled: 1 512 | switchUseNewStyleFilepaths: 0 513 | switchUseMicroSleepForYield: 1 514 | switchEnableRamDiskSupport: 0 515 | switchMicroSleepForYieldTime: 25 516 | switchRamDiskSpaceSize: 12 517 | ps4NPAgeRating: 12 518 | ps4NPTitleSecret: 519 | ps4NPTrophyPackPath: 520 | ps4ParentalLevel: 11 521 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 522 | ps4Category: 0 523 | ps4MasterVersion: 01.00 524 | ps4AppVersion: 01.00 525 | ps4AppType: 0 526 | ps4ParamSfxPath: 527 | ps4VideoOutPixelFormat: 0 528 | ps4VideoOutInitialWidth: 1920 529 | ps4VideoOutBaseModeInitialWidth: 1920 530 | ps4VideoOutReprojectionRate: 60 531 | ps4PronunciationXMLPath: 532 | ps4PronunciationSIGPath: 533 | ps4BackgroundImagePath: 534 | ps4StartupImagePath: 535 | ps4StartupImagesFolder: 536 | ps4IconImagesFolder: 537 | ps4SaveDataImagePath: 538 | ps4SdkOverride: 539 | ps4BGMPath: 540 | ps4ShareFilePath: 541 | ps4ShareOverlayImagePath: 542 | ps4PrivacyGuardImagePath: 543 | ps4ExtraSceSysFile: 544 | ps4NPtitleDatPath: 545 | ps4RemotePlayKeyAssignment: -1 546 | ps4RemotePlayKeyMappingDir: 547 | ps4PlayTogetherPlayerCount: 0 548 | ps4EnterButtonAssignment: 1 549 | ps4ApplicationParam1: 0 550 | ps4ApplicationParam2: 0 551 | ps4ApplicationParam3: 0 552 | ps4ApplicationParam4: 0 553 | ps4DownloadDataSize: 0 554 | ps4GarlicHeapSize: 2048 555 | ps4ProGarlicHeapSize: 2560 556 | playerPrefsMaxSize: 32768 557 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 558 | ps4pnSessions: 1 559 | ps4pnPresence: 1 560 | ps4pnFriends: 1 561 | ps4pnGameCustomData: 1 562 | playerPrefsSupport: 0 563 | enableApplicationExit: 0 564 | resetTempFolder: 1 565 | restrictedAudioUsageRights: 0 566 | ps4UseResolutionFallback: 0 567 | ps4ReprojectionSupport: 0 568 | ps4UseAudio3dBackend: 0 569 | ps4UseLowGarlicFragmentationMode: 1 570 | ps4SocialScreenEnabled: 0 571 | ps4ScriptOptimizationLevel: 0 572 | ps4Audio3dVirtualSpeakerCount: 14 573 | ps4attribCpuUsage: 0 574 | ps4PatchPkgPath: 575 | ps4PatchLatestPkgPath: 576 | ps4PatchChangeinfoPath: 577 | ps4PatchDayOne: 0 578 | ps4attribUserManagement: 0 579 | ps4attribMoveSupport: 0 580 | ps4attrib3DSupport: 0 581 | ps4attribShareSupport: 0 582 | ps4attribExclusiveVR: 0 583 | ps4disableAutoHideSplash: 0 584 | ps4videoRecordingFeaturesUsed: 0 585 | ps4contentSearchFeaturesUsed: 0 586 | ps4CompatibilityPS5: 0 587 | ps4GPU800MHz: 1 588 | ps4attribEyeToEyeDistanceSettingVR: 0 589 | ps4IncludedModules: [] 590 | ps4attribVROutputEnabled: 0 591 | monoEnv: 592 | splashScreenBackgroundSourceLandscape: {fileID: 0} 593 | splashScreenBackgroundSourcePortrait: {fileID: 0} 594 | blurSplashScreenBackground: 1 595 | spritePackerPolicy: 596 | webGLMemorySize: 16 597 | webGLExceptionSupport: 1 598 | webGLNameFilesAsHashes: 0 599 | webGLDataCaching: 1 600 | webGLDebugSymbols: 0 601 | webGLEmscriptenArgs: 602 | webGLModulesDirectory: 603 | webGLTemplate: APPLICATION:Default 604 | webGLAnalyzeBuildSize: 0 605 | webGLUseEmbeddedResources: 0 606 | webGLCompressionFormat: 1 607 | webGLWasmArithmeticExceptions: 0 608 | webGLLinkerTarget: 1 609 | webGLThreadsSupport: 0 610 | webGLDecompressionFallback: 0 611 | scriptingDefineSymbols: {} 612 | additionalCompilerArguments: {} 613 | platformArchitecture: {} 614 | scriptingBackend: {} 615 | il2cppCompilerConfiguration: {} 616 | managedStrippingLevel: {} 617 | incrementalIl2cppBuild: {} 618 | suppressCommonWarnings: 1 619 | allowUnsafeCode: 0 620 | useDeterministicCompilation: 1 621 | enableRoslynAnalyzers: 1 622 | additionalIl2CppArgs: 623 | scriptingRuntimeVersion: 1 624 | gcIncremental: 1 625 | assemblyVersionValidation: 1 626 | gcWBarrierValidation: 0 627 | apiCompatibilityLevelPerPlatform: {} 628 | m_RenderingPath: 1 629 | m_MobileRenderingPath: 1 630 | metroPackageName: Template_3D 631 | metroPackageVersion: 632 | metroCertificatePath: 633 | metroCertificatePassword: 634 | metroCertificateSubject: 635 | metroCertificateIssuer: 636 | metroCertificateNotAfter: 0000000000000000 637 | metroApplicationDescription: Template_3D 638 | wsaImages: {} 639 | metroTileShortName: 640 | metroTileShowName: 0 641 | metroMediumTileShowName: 0 642 | metroLargeTileShowName: 0 643 | metroWideTileShowName: 0 644 | metroSupportStreamingInstall: 0 645 | metroLastRequiredScene: 0 646 | metroDefaultTileSize: 1 647 | metroTileForegroundText: 2 648 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 649 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, a: 1} 650 | metroSplashScreenUseBackgroundColor: 0 651 | platformCapabilities: {} 652 | metroTargetDeviceFamilies: {} 653 | metroFTAName: 654 | metroFTAFileTypes: [] 655 | metroProtocolName: 656 | vcxProjDefaultLanguage: 657 | XboxOneProductId: 658 | XboxOneUpdateKey: 659 | XboxOneSandboxId: 660 | XboxOneContentId: 661 | XboxOneTitleId: 662 | XboxOneSCId: 663 | XboxOneGameOsOverridePath: 664 | XboxOnePackagingOverridePath: 665 | XboxOneAppManifestOverridePath: 666 | XboxOneVersion: 1.0.0.0 667 | XboxOnePackageEncryption: 0 668 | XboxOnePackageUpdateGranularity: 2 669 | XboxOneDescription: 670 | XboxOneLanguage: 671 | - enus 672 | XboxOneCapability: [] 673 | XboxOneGameRating: {} 674 | XboxOneIsContentPackage: 0 675 | XboxOneEnhancedXboxCompatibilityMode: 0 676 | XboxOneEnableGPUVariability: 1 677 | XboxOneSockets: {} 678 | XboxOneSplashScreen: {fileID: 0} 679 | XboxOneAllowedProductIds: [] 680 | XboxOnePersistentLocalStorageSize: 0 681 | XboxOneXTitleMemory: 8 682 | XboxOneOverrideIdentityName: 683 | XboxOneOverrideIdentityPublisher: 684 | vrEditorSettings: {} 685 | cloudServicesEnabled: 686 | UNet: 1 687 | luminIcon: 688 | m_Name: 689 | m_ModelFolderPath: 690 | m_PortalFolderPath: 691 | luminCert: 692 | m_CertPath: 693 | m_SignPackage: 1 694 | luminIsChannelApp: 0 695 | luminVersion: 696 | m_VersionCode: 1 697 | m_VersionName: 698 | apiCompatibilityLevel: 6 699 | activeInputHandler: 0 700 | cloudProjectId: 701 | framebufferDepthMemorylessMode: 0 702 | qualitySettingsNames: [] 703 | projectName: 704 | organizationId: 705 | cloudEnabled: 0 706 | legacyClampBlendShapeWeights: 0 707 | playerDataPath: 708 | forceSRGBBlit: 1 709 | virtualTexturingSupportEnabled: 0 710 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2021.3.27f1 2 | m_EditorVersionWithRevision: 2021.3.27f1 (ca3ffb99bcc6) 3 | -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!47 &1 4 | QualitySettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_CurrentQuality: 5 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Very Low 11 | pixelLightCount: 0 12 | shadows: 0 13 | shadowResolution: 0 14 | shadowProjection: 1 15 | shadowCascades: 1 16 | shadowDistance: 15 17 | shadowNearPlaneOffset: 3 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | shadowmaskMode: 0 21 | blendWeights: 1 22 | textureQuality: 1 23 | anisotropicTextures: 0 24 | antiAliasing: 0 25 | softParticles: 0 26 | softVegetation: 0 27 | realtimeReflectionProbes: 0 28 | billboardsFaceCameraPosition: 0 29 | vSyncCount: 0 30 | lodBias: 0.3 31 | maximumLODLevel: 0 32 | streamingMipmapsActive: 0 33 | streamingMipmapsAddAllCameras: 1 34 | streamingMipmapsMemoryBudget: 512 35 | streamingMipmapsRenderersPerFrame: 512 36 | streamingMipmapsMaxLevelReduction: 2 37 | streamingMipmapsMaxFileIORequests: 1024 38 | particleRaycastBudget: 4 39 | asyncUploadTimeSlice: 2 40 | asyncUploadBufferSize: 16 41 | asyncUploadPersistentBuffer: 1 42 | resolutionScalingFixedDPIFactor: 1 43 | excludedTargetPlatforms: [] 44 | - serializedVersion: 2 45 | name: Low 46 | pixelLightCount: 0 47 | shadows: 0 48 | shadowResolution: 0 49 | shadowProjection: 1 50 | shadowCascades: 1 51 | shadowDistance: 20 52 | shadowNearPlaneOffset: 3 53 | shadowCascade2Split: 0.33333334 54 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 55 | shadowmaskMode: 0 56 | blendWeights: 2 57 | textureQuality: 0 58 | anisotropicTextures: 0 59 | antiAliasing: 0 60 | softParticles: 0 61 | softVegetation: 0 62 | realtimeReflectionProbes: 0 63 | billboardsFaceCameraPosition: 0 64 | vSyncCount: 0 65 | lodBias: 0.4 66 | maximumLODLevel: 0 67 | streamingMipmapsActive: 0 68 | streamingMipmapsAddAllCameras: 1 69 | streamingMipmapsMemoryBudget: 512 70 | streamingMipmapsRenderersPerFrame: 512 71 | streamingMipmapsMaxLevelReduction: 2 72 | streamingMipmapsMaxFileIORequests: 1024 73 | particleRaycastBudget: 16 74 | asyncUploadTimeSlice: 2 75 | asyncUploadBufferSize: 16 76 | asyncUploadPersistentBuffer: 1 77 | resolutionScalingFixedDPIFactor: 1 78 | excludedTargetPlatforms: [] 79 | - serializedVersion: 2 80 | name: Medium 81 | pixelLightCount: 1 82 | shadows: 1 83 | shadowResolution: 0 84 | shadowProjection: 1 85 | shadowCascades: 1 86 | shadowDistance: 20 87 | shadowNearPlaneOffset: 3 88 | shadowCascade2Split: 0.33333334 89 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 90 | shadowmaskMode: 0 91 | blendWeights: 2 92 | textureQuality: 0 93 | anisotropicTextures: 1 94 | antiAliasing: 0 95 | softParticles: 0 96 | softVegetation: 0 97 | realtimeReflectionProbes: 0 98 | billboardsFaceCameraPosition: 0 99 | vSyncCount: 1 100 | lodBias: 0.7 101 | maximumLODLevel: 0 102 | streamingMipmapsActive: 0 103 | streamingMipmapsAddAllCameras: 1 104 | streamingMipmapsMemoryBudget: 512 105 | streamingMipmapsRenderersPerFrame: 512 106 | streamingMipmapsMaxLevelReduction: 2 107 | streamingMipmapsMaxFileIORequests: 1024 108 | particleRaycastBudget: 64 109 | asyncUploadTimeSlice: 2 110 | asyncUploadBufferSize: 16 111 | asyncUploadPersistentBuffer: 1 112 | resolutionScalingFixedDPIFactor: 1 113 | excludedTargetPlatforms: [] 114 | - serializedVersion: 2 115 | name: High 116 | pixelLightCount: 2 117 | shadows: 2 118 | shadowResolution: 1 119 | shadowProjection: 1 120 | shadowCascades: 2 121 | shadowDistance: 40 122 | shadowNearPlaneOffset: 3 123 | shadowCascade2Split: 0.33333334 124 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 125 | shadowmaskMode: 1 126 | blendWeights: 2 127 | textureQuality: 0 128 | anisotropicTextures: 1 129 | antiAliasing: 0 130 | softParticles: 0 131 | softVegetation: 1 132 | realtimeReflectionProbes: 1 133 | billboardsFaceCameraPosition: 1 134 | vSyncCount: 1 135 | lodBias: 1 136 | maximumLODLevel: 0 137 | streamingMipmapsActive: 0 138 | streamingMipmapsAddAllCameras: 1 139 | streamingMipmapsMemoryBudget: 512 140 | streamingMipmapsRenderersPerFrame: 512 141 | streamingMipmapsMaxLevelReduction: 2 142 | streamingMipmapsMaxFileIORequests: 1024 143 | particleRaycastBudget: 256 144 | asyncUploadTimeSlice: 2 145 | asyncUploadBufferSize: 16 146 | asyncUploadPersistentBuffer: 1 147 | resolutionScalingFixedDPIFactor: 1 148 | excludedTargetPlatforms: [] 149 | - serializedVersion: 2 150 | name: Very High 151 | pixelLightCount: 3 152 | shadows: 2 153 | shadowResolution: 2 154 | shadowProjection: 1 155 | shadowCascades: 2 156 | shadowDistance: 70 157 | shadowNearPlaneOffset: 3 158 | shadowCascade2Split: 0.33333334 159 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 160 | shadowmaskMode: 1 161 | blendWeights: 4 162 | textureQuality: 0 163 | anisotropicTextures: 2 164 | antiAliasing: 2 165 | softParticles: 1 166 | softVegetation: 1 167 | realtimeReflectionProbes: 1 168 | billboardsFaceCameraPosition: 1 169 | vSyncCount: 1 170 | lodBias: 1.5 171 | maximumLODLevel: 0 172 | streamingMipmapsActive: 0 173 | streamingMipmapsAddAllCameras: 1 174 | streamingMipmapsMemoryBudget: 512 175 | streamingMipmapsRenderersPerFrame: 512 176 | streamingMipmapsMaxLevelReduction: 2 177 | streamingMipmapsMaxFileIORequests: 1024 178 | particleRaycastBudget: 1024 179 | asyncUploadTimeSlice: 2 180 | asyncUploadBufferSize: 16 181 | asyncUploadPersistentBuffer: 1 182 | resolutionScalingFixedDPIFactor: 1 183 | excludedTargetPlatforms: [] 184 | - serializedVersion: 2 185 | name: Ultra 186 | pixelLightCount: 4 187 | shadows: 2 188 | shadowResolution: 2 189 | shadowProjection: 1 190 | shadowCascades: 4 191 | shadowDistance: 150 192 | shadowNearPlaneOffset: 3 193 | shadowCascade2Split: 0.33333334 194 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 195 | shadowmaskMode: 1 196 | blendWeights: 4 197 | textureQuality: 0 198 | anisotropicTextures: 2 199 | antiAliasing: 2 200 | softParticles: 1 201 | softVegetation: 1 202 | realtimeReflectionProbes: 1 203 | billboardsFaceCameraPosition: 1 204 | vSyncCount: 1 205 | lodBias: 2 206 | maximumLODLevel: 0 207 | streamingMipmapsActive: 0 208 | streamingMipmapsAddAllCameras: 1 209 | streamingMipmapsMemoryBudget: 512 210 | streamingMipmapsRenderersPerFrame: 512 211 | streamingMipmapsMaxLevelReduction: 2 212 | streamingMipmapsMaxFileIORequests: 1024 213 | particleRaycastBudget: 4096 214 | asyncUploadTimeSlice: 2 215 | asyncUploadBufferSize: 16 216 | asyncUploadPersistentBuffer: 1 217 | resolutionScalingFixedDPIFactor: 1 218 | excludedTargetPlatforms: [] 219 | m_PerPlatformDefaultQuality: 220 | Android: 2 221 | Lumin: 5 222 | Nintendo 3DS: 5 223 | Nintendo Switch: 5 224 | PS4: 5 225 | PSP2: 2 226 | Stadia: 5 227 | Standalone: 5 228 | WebGL: 3 229 | Windows Store Apps: 5 230 | XboxOne: 5 231 | iPhone: 2 232 | tvOS: 2 233 | -------------------------------------------------------------------------------- /ProjectSettings/SceneTemplateSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "templatePinStates": [], 3 | "dependencyTypeInfos": [ 4 | { 5 | "userAdded": false, 6 | "type": "UnityEngine.AnimationClip", 7 | "ignore": false, 8 | "defaultInstantiationMode": 0, 9 | "supportsModification": true 10 | }, 11 | { 12 | "userAdded": false, 13 | "type": "UnityEditor.Animations.AnimatorController", 14 | "ignore": false, 15 | "defaultInstantiationMode": 0, 16 | "supportsModification": true 17 | }, 18 | { 19 | "userAdded": false, 20 | "type": "UnityEngine.AnimatorOverrideController", 21 | "ignore": false, 22 | "defaultInstantiationMode": 0, 23 | "supportsModification": true 24 | }, 25 | { 26 | "userAdded": false, 27 | "type": "UnityEditor.Audio.AudioMixerController", 28 | "ignore": false, 29 | "defaultInstantiationMode": 0, 30 | "supportsModification": true 31 | }, 32 | { 33 | "userAdded": false, 34 | "type": "UnityEngine.ComputeShader", 35 | "ignore": true, 36 | "defaultInstantiationMode": 1, 37 | "supportsModification": true 38 | }, 39 | { 40 | "userAdded": false, 41 | "type": "UnityEngine.Cubemap", 42 | "ignore": false, 43 | "defaultInstantiationMode": 0, 44 | "supportsModification": true 45 | }, 46 | { 47 | "userAdded": false, 48 | "type": "UnityEngine.GameObject", 49 | "ignore": false, 50 | "defaultInstantiationMode": 0, 51 | "supportsModification": true 52 | }, 53 | { 54 | "userAdded": false, 55 | "type": "UnityEditor.LightingDataAsset", 56 | "ignore": false, 57 | "defaultInstantiationMode": 0, 58 | "supportsModification": false 59 | }, 60 | { 61 | "userAdded": false, 62 | "type": "UnityEngine.LightingSettings", 63 | "ignore": false, 64 | "defaultInstantiationMode": 0, 65 | "supportsModification": true 66 | }, 67 | { 68 | "userAdded": false, 69 | "type": "UnityEngine.Material", 70 | "ignore": false, 71 | "defaultInstantiationMode": 0, 72 | "supportsModification": true 73 | }, 74 | { 75 | "userAdded": false, 76 | "type": "UnityEditor.MonoScript", 77 | "ignore": true, 78 | "defaultInstantiationMode": 1, 79 | "supportsModification": true 80 | }, 81 | { 82 | "userAdded": false, 83 | "type": "UnityEngine.PhysicMaterial", 84 | "ignore": false, 85 | "defaultInstantiationMode": 0, 86 | "supportsModification": true 87 | }, 88 | { 89 | "userAdded": false, 90 | "type": "UnityEngine.PhysicsMaterial2D", 91 | "ignore": false, 92 | "defaultInstantiationMode": 0, 93 | "supportsModification": true 94 | }, 95 | { 96 | "userAdded": false, 97 | "type": "UnityEngine.Rendering.PostProcessing.PostProcessProfile", 98 | "ignore": false, 99 | "defaultInstantiationMode": 0, 100 | "supportsModification": true 101 | }, 102 | { 103 | "userAdded": false, 104 | "type": "UnityEngine.Rendering.PostProcessing.PostProcessResources", 105 | "ignore": false, 106 | "defaultInstantiationMode": 0, 107 | "supportsModification": true 108 | }, 109 | { 110 | "userAdded": false, 111 | "type": "UnityEngine.Rendering.VolumeProfile", 112 | "ignore": false, 113 | "defaultInstantiationMode": 0, 114 | "supportsModification": true 115 | }, 116 | { 117 | "userAdded": false, 118 | "type": "UnityEditor.SceneAsset", 119 | "ignore": false, 120 | "defaultInstantiationMode": 0, 121 | "supportsModification": false 122 | }, 123 | { 124 | "userAdded": false, 125 | "type": "UnityEngine.Shader", 126 | "ignore": true, 127 | "defaultInstantiationMode": 1, 128 | "supportsModification": true 129 | }, 130 | { 131 | "userAdded": false, 132 | "type": "UnityEngine.ShaderVariantCollection", 133 | "ignore": true, 134 | "defaultInstantiationMode": 1, 135 | "supportsModification": true 136 | }, 137 | { 138 | "userAdded": false, 139 | "type": "UnityEngine.Texture", 140 | "ignore": false, 141 | "defaultInstantiationMode": 0, 142 | "supportsModification": true 143 | }, 144 | { 145 | "userAdded": false, 146 | "type": "UnityEngine.Texture2D", 147 | "ignore": false, 148 | "defaultInstantiationMode": 0, 149 | "supportsModification": true 150 | }, 151 | { 152 | "userAdded": false, 153 | "type": "UnityEngine.Timeline.TimelineAsset", 154 | "ignore": false, 155 | "defaultInstantiationMode": 0, 156 | "supportsModification": true 157 | } 158 | ], 159 | "defaultDependencyTypeInfo": { 160 | "userAdded": false, 161 | "type": "", 162 | "ignore": false, 163 | "defaultInstantiationMode": 1, 164 | "supportsModification": true 165 | }, 166 | "newSceneOverride": 0 167 | } -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - 17 | - 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 1 7 | m_Enabled: 0 8 | m_TestMode: 0 9 | m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events 10 | m_EventUrl: https://cdp.cloud.unity3d.com/v1/events 11 | m_ConfigUrl: https://config.uca.cloud.unity3d.com 12 | m_DashboardUrl: https://dashboard.unity3d.com 13 | m_TestInitMode: 0 14 | CrashReportingSettings: 15 | m_EventUrl: https://perf-events.cloud.unity3d.com 16 | m_Enabled: 0 17 | m_LogBufferSize: 10 18 | m_CaptureEditorExceptions: 1 19 | UnityPurchasingSettings: 20 | m_Enabled: 0 21 | m_TestMode: 0 22 | UnityAnalyticsSettings: 23 | m_Enabled: 0 24 | m_TestMode: 0 25 | m_InitializeOnStartup: 1 26 | UnityAdsSettings: 27 | m_Enabled: 0 28 | m_InitializeOnStartup: 1 29 | m_TestMode: 0 30 | m_IosGameId: 31 | m_AndroidGameId: 32 | m_GameIds: {} 33 | m_GameId: 34 | PerformanceReportingSettings: 35 | m_Enabled: 0 36 | -------------------------------------------------------------------------------- /ProjectSettings/VFXManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!937362698 &1 4 | VFXManager: 5 | m_ObjectHideFlags: 0 6 | m_IndirectShader: {fileID: 0} 7 | m_CopyBufferShader: {fileID: 0} 8 | m_SortShader: {fileID: 0} 9 | m_StripUpdateShader: {fileID: 0} 10 | m_RenderPipeSettingsPath: 11 | m_FixedTimeStep: 0.016666668 12 | m_MaxDeltaTime: 0.05 13 | -------------------------------------------------------------------------------- /ProjectSettings/VersionControlSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!890905787 &1 4 | VersionControlSettings: 5 | m_ObjectHideFlags: 0 6 | m_Mode: Visible Meta Files 7 | m_CollabEditorSettings: 8 | inProgressEnabled: 1 9 | -------------------------------------------------------------------------------- /ProjectSettings/XRSettings.asset: -------------------------------------------------------------------------------- 1 | { 2 | "m_SettingKeys": [ 3 | "VR Device Disabled", 4 | "VR Device User Alert" 5 | ], 6 | "m_SettingValues": [ 7 | "False", 8 | "False" 9 | ] 10 | } -------------------------------------------------------------------------------- /ProjectSettings/boot.config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaperPrototype/test-octree-planet-terrain-unity/b7e37b75f0cb128d8681b718c2361e216c60b3a7/ProjectSettings/boot.config -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![planet voxel octree LOD](/banner.png) 2 | 3 | "Let the planets begin" 4 | 5 | [Abdiel Lopez] 6 | -------------------------------------------------------------------------------- /banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PaperPrototype/test-octree-planet-terrain-unity/b7e37b75f0cb128d8681b718c2361e216c60b3a7/banner.png --------------------------------------------------------------------------------