summaryrefslogtreecommitdiff
path: root/Assets
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-06-12 20:11:02 +0800
committerchai <chaifix@163.com>2021-06-12 20:11:02 +0800
commit2283e4eda5ed0ef8760bef495b6ca60297b36404 (patch)
tree0629333745e353efb119c22ba59809b80236ef54 /Assets
parentcf1f5eccaf46eccafc4b3501b9be9a8234b99cfa (diff)
*misc
Diffstat (limited to 'Assets')
-rw-r--r--Assets/Algorithms/01_Generic/说明.txt.meta (renamed from Assets/Scenes/SampleSceneSettings.lighting.meta)5
-rw-r--r--Assets/Algorithms/02_Geometry/说明.txt.meta7
-rw-r--r--Assets/Algorithms/03_Search/说明.txt.meta7
-rw-r--r--Assets/Algorithms/04_Pathfinding.meta (renamed from Assets/Scenes.meta)2
-rw-r--r--Assets/Algorithms/04_Pathfinding/AStarPathfinding.cs18
-rw-r--r--Assets/Algorithms/04_Pathfinding/AStarPathfinding.cs.meta11
-rw-r--r--Assets/Algorithms/04_Pathfinding/PathFinding.unity (renamed from Assets/Scenes/SampleScene.unity)200
-rw-r--r--Assets/Algorithms/04_Pathfinding/PathFinding.unity.meta (renamed from Assets/Scenes/SampleScene.unity.meta)2
-rw-r--r--Assets/Common.meta8
-rw-r--r--Assets/Scenes/SampleSceneSettings.lighting63
10 files changed, 155 insertions, 168 deletions
diff --git a/Assets/Scenes/SampleSceneSettings.lighting.meta b/Assets/Algorithms/01_Generic/说明.txt.meta
index 8a54000..e6615bd 100644
--- a/Assets/Scenes/SampleSceneSettings.lighting.meta
+++ b/Assets/Algorithms/01_Generic/说明.txt.meta
@@ -1,8 +1,7 @@
fileFormatVersion: 2
-guid: 2f6f590e7949dda4392cdf96d2573e0d
-NativeFormatImporter:
+guid: 090f934784733db4bbd28b04c857cda4
+TextScriptImporter:
externalObjects: {}
- mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:
diff --git a/Assets/Algorithms/02_Geometry/说明.txt.meta b/Assets/Algorithms/02_Geometry/说明.txt.meta
new file mode 100644
index 0000000..8308a43
--- /dev/null
+++ b/Assets/Algorithms/02_Geometry/说明.txt.meta
@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: 4175678562e71954aae8ee2bb15e49e4
+TextScriptImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/Algorithms/03_Search/说明.txt.meta b/Assets/Algorithms/03_Search/说明.txt.meta
new file mode 100644
index 0000000..231fb95
--- /dev/null
+++ b/Assets/Algorithms/03_Search/说明.txt.meta
@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: 1c40061e432b0ed42a672dbe8e834665
+TextScriptImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/Scenes.meta b/Assets/Algorithms/04_Pathfinding.meta
index 067d2c0..e1dfa1f 100644
--- a/Assets/Scenes.meta
+++ b/Assets/Algorithms/04_Pathfinding.meta
@@ -1,5 +1,5 @@
fileFormatVersion: 2
-guid: 0f7a402a3739840479ab98b3330fc8f3
+guid: 397d06bf756e6f24db1de7ae08b644f0
folderAsset: yes
DefaultImporter:
externalObjects: {}
diff --git a/Assets/Algorithms/04_Pathfinding/AStarPathfinding.cs b/Assets/Algorithms/04_Pathfinding/AStarPathfinding.cs
new file mode 100644
index 0000000..80ba51d
--- /dev/null
+++ b/Assets/Algorithms/04_Pathfinding/AStarPathfinding.cs
@@ -0,0 +1,18 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class AStarPathfinding : MonoBehaviour
+{
+ // Start is called before the first frame update
+ void Start()
+ {
+
+ }
+
+ // Update is called once per frame
+ void Update()
+ {
+
+ }
+}
diff --git a/Assets/Algorithms/04_Pathfinding/AStarPathfinding.cs.meta b/Assets/Algorithms/04_Pathfinding/AStarPathfinding.cs.meta
new file mode 100644
index 0000000..5cd6112
--- /dev/null
+++ b/Assets/Algorithms/04_Pathfinding/AStarPathfinding.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 66158ef978f1a7540addceae83d08239
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/Scenes/SampleScene.unity b/Assets/Algorithms/04_Pathfinding/PathFinding.unity
index 411c05e..afeda4c 100644
--- a/Assets/Scenes/SampleScene.unity
+++ b/Assets/Algorithms/04_Pathfinding/PathFinding.unity
@@ -37,7 +37,7 @@ RenderSettings:
m_ReflectionBounces: 1
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
- m_Sun: {fileID: 705507994}
+ m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
@@ -75,18 +75,18 @@ LightmapSettings:
m_BakeBackend: 1
m_PVRSampling: 1
m_PVRDirectSampleCount: 32
- m_PVRSampleCount: 500
+ m_PVRSampleCount: 512
m_PVRBounces: 2
- m_PVREnvironmentSampleCount: 500
+ m_PVREnvironmentSampleCount: 256
m_PVREnvironmentReferencePointCount: 2048
- m_PVRFilteringMode: 2
- m_PVRDenoiserTypeDirect: 0
- m_PVRDenoiserTypeIndirect: 0
- m_PVRDenoiserTypeAO: 0
+ m_PVRFilteringMode: 1
+ m_PVRDenoiserTypeDirect: 1
+ m_PVRDenoiserTypeIndirect: 1
+ m_PVRDenoiserTypeAO: 1
m_PVRFilterTypeDirect: 0
m_PVRFilterTypeIndirect: 0
m_PVRFilterTypeAO: 0
- m_PVREnvironmentMIS: 0
+ m_PVREnvironmentMIS: 1
m_PVRCulling: 1
m_PVRFilteringGaussRadiusDirect: 1
m_PVRFilteringGaussRadiusIndirect: 5
@@ -98,7 +98,7 @@ LightmapSettings:
m_TrainingDataDestination: TrainingData
m_LightProbeSampleCountMultiplier: 4
m_LightingDataAsset: {fileID: 0}
- m_LightingSettings: {fileID: 4890085278179872738, guid: 2f6f590e7949dda4392cdf96d2573e0d, type: 2}
+ m_LightingSettings: {fileID: 0}
--- !u!196 &4
NavMeshSettings:
serializedVersion: 2
@@ -123,7 +123,7 @@ NavMeshSettings:
debug:
m_Flags: 0
m_NavMeshData: {fileID: 0}
---- !u!1 &705507993
+--- !u!1 &490219957
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
@@ -131,8 +131,91 @@ GameObject:
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- - component: {fileID: 705507995}
- - component: {fileID: 705507994}
+ - component: {fileID: 490219960}
+ - component: {fileID: 490219959}
+ - component: {fileID: 490219958}
+ m_Layer: 0
+ m_Name: Main Camera
+ m_TagString: MainCamera
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 1
+--- !u!81 &490219958
+AudioListener:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 490219957}
+ m_Enabled: 1
+--- !u!20 &490219959
+Camera:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 490219957}
+ m_Enabled: 1
+ serializedVersion: 2
+ m_ClearFlags: 1
+ m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
+ m_projectionMatrixMode: 1
+ m_GateFitMode: 2
+ m_FOVAxisMode: 0
+ m_SensorSize: {x: 36, y: 24}
+ m_LensShift: {x: 0, y: 0}
+ m_FocalLength: 50
+ m_NormalizedViewPortRect:
+ serializedVersion: 2
+ x: 0
+ y: 0
+ width: 1
+ height: 1
+ near clip plane: 0.3
+ far clip plane: 1000
+ field of view: 60
+ orthographic: 0
+ orthographic size: 5
+ m_Depth: -1
+ m_CullingMask:
+ serializedVersion: 2
+ m_Bits: 4294967295
+ m_RenderingPath: -1
+ m_TargetTexture: {fileID: 0}
+ m_TargetDisplay: 0
+ m_TargetEye: 3
+ m_HDR: 1
+ m_AllowMSAA: 1
+ m_AllowDynamicResolution: 0
+ m_ForceIntoRT: 0
+ m_OcclusionCulling: 1
+ m_StereoConvergence: 10
+ m_StereoSeparation: 0.022
+--- !u!4 &490219960
+Transform:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 490219957}
+ m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
+ m_LocalPosition: {x: 0, y: 1, z: -10}
+ m_LocalScale: {x: 1, y: 1, z: 1}
+ m_Children: []
+ m_Father: {fileID: 0}
+ m_RootOrder: 0
+ m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+--- !u!1 &1788501447
+GameObject:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ serializedVersion: 6
+ m_Component:
+ - component: {fileID: 1788501449}
+ - component: {fileID: 1788501448}
m_Layer: 0
m_Name: Directional Light
m_TagString: Untagged
@@ -140,13 +223,13 @@ GameObject:
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
---- !u!108 &705507994
+--- !u!108 &1788501448
Light:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
- m_GameObject: {fileID: 705507993}
+ m_GameObject: {fileID: 1788501447}
m_Enabled: 1
serializedVersion: 10
m_Type: 1
@@ -191,7 +274,7 @@ Light:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingLayerMask: 1
- m_Lightmapping: 1
+ m_Lightmapping: 4
m_LightShadowCasterMode: 0
m_AreaSize: {x: 1, y: 1}
m_BounceIntensity: 1
@@ -201,13 +284,13 @@ Light:
m_UseBoundingSphereOverride: 0
m_ShadowRadius: 0
m_ShadowAngle: 0
---- !u!4 &705507995
+--- !u!4 &1788501449
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
- m_GameObject: {fileID: 705507993}
+ m_GameObject: {fileID: 1788501447}
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
m_LocalPosition: {x: 0, y: 3, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
@@ -215,86 +298,3 @@ Transform:
m_Father: {fileID: 0}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
---- !u!1 &963194225
-GameObject:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInstance: {fileID: 0}
- m_PrefabAsset: {fileID: 0}
- serializedVersion: 6
- m_Component:
- - component: {fileID: 963194228}
- - component: {fileID: 963194227}
- - component: {fileID: 963194226}
- m_Layer: 0
- m_Name: Main Camera
- m_TagString: MainCamera
- m_Icon: {fileID: 0}
- m_NavMeshLayer: 0
- m_StaticEditorFlags: 0
- m_IsActive: 1
---- !u!81 &963194226
-AudioListener:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInstance: {fileID: 0}
- m_PrefabAsset: {fileID: 0}
- m_GameObject: {fileID: 963194225}
- m_Enabled: 1
---- !u!20 &963194227
-Camera:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInstance: {fileID: 0}
- m_PrefabAsset: {fileID: 0}
- m_GameObject: {fileID: 963194225}
- m_Enabled: 1
- serializedVersion: 2
- m_ClearFlags: 1
- m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
- m_projectionMatrixMode: 1
- m_GateFitMode: 2
- m_FOVAxisMode: 0
- m_SensorSize: {x: 36, y: 24}
- m_LensShift: {x: 0, y: 0}
- m_FocalLength: 50
- m_NormalizedViewPortRect:
- serializedVersion: 2
- x: 0
- y: 0
- width: 1
- height: 1
- near clip plane: 0.3
- far clip plane: 1000
- field of view: 60
- orthographic: 0
- orthographic size: 5
- m_Depth: -1
- m_CullingMask:
- serializedVersion: 2
- m_Bits: 4294967295
- m_RenderingPath: -1
- m_TargetTexture: {fileID: 0}
- m_TargetDisplay: 0
- m_TargetEye: 3
- m_HDR: 1
- m_AllowMSAA: 1
- m_AllowDynamicResolution: 0
- m_ForceIntoRT: 0
- m_OcclusionCulling: 1
- m_StereoConvergence: 10
- m_StereoSeparation: 0.022
---- !u!4 &963194228
-Transform:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInstance: {fileID: 0}
- m_PrefabAsset: {fileID: 0}
- m_GameObject: {fileID: 963194225}
- m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
- m_LocalPosition: {x: 0, y: 1, z: -10}
- m_LocalScale: {x: 1, y: 1, z: 1}
- m_Children: []
- m_Father: {fileID: 0}
- m_RootOrder: 0
- m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
diff --git a/Assets/Scenes/SampleScene.unity.meta b/Assets/Algorithms/04_Pathfinding/PathFinding.unity.meta
index 952bd1e..79e62ae 100644
--- a/Assets/Scenes/SampleScene.unity.meta
+++ b/Assets/Algorithms/04_Pathfinding/PathFinding.unity.meta
@@ -1,5 +1,5 @@
fileFormatVersion: 2
-guid: 9fc0d4010bbf28b4594072e72b8655ab
+guid: 76e00398d0d0380468c9f9f3ad59d027
DefaultImporter:
externalObjects: {}
userData:
diff --git a/Assets/Common.meta b/Assets/Common.meta
new file mode 100644
index 0000000..ab81fd0
--- /dev/null
+++ b/Assets/Common.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 5629771d46311c14e9adb024edfab837
+folderAsset: yes
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/Scenes/SampleSceneSettings.lighting b/Assets/Scenes/SampleSceneSettings.lighting
deleted file mode 100644
index d9e8591..0000000
--- a/Assets/Scenes/SampleSceneSettings.lighting
+++ /dev/null
@@ -1,63 +0,0 @@
-%YAML 1.1
-%TAG !u! tag:unity3d.com,2011:
---- !u!850595691 &4890085278179872738
-LightingSettings:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInstance: {fileID: 0}
- m_PrefabAsset: {fileID: 0}
- m_Name: SampleSceneSettings
- serializedVersion: 2
- m_GIWorkflowMode: 1
- m_EnableBakedLightmaps: 1
- m_EnableRealtimeLightmaps: 0
- m_RealtimeEnvironmentLighting: 1
- m_BounceScale: 1
- m_AlbedoBoost: 1
- m_IndirectOutputScale: 1
- m_UsingShadowmask: 1
- m_BakeBackend: 1
- m_LightmapMaxSize: 1024
- m_BakeResolution: 40
- m_Padding: 2
- m_TextureCompression: 1
- m_AO: 0
- m_AOMaxDistance: 1
- m_CompAOExponent: 1
- m_CompAOExponentDirect: 0
- m_ExtractAO: 0
- m_MixedBakeMode: 2
- m_LightmapsBakeMode: 1
- m_FilterMode: 1
- m_LightmapParameters: {fileID: 0}
- m_ExportTrainingData: 0
- m_TrainingDataDestination: TrainingData
- m_RealtimeResolution: 2
- m_ForceWhiteAlbedo: 0
- m_ForceUpdates: 0
- m_FinalGather: 0
- m_FinalGatherRayCount: 256
- m_FinalGatherFiltering: 1
- m_PVRCulling: 1
- m_PVRSampling: 1
- m_PVRDirectSampleCount: 32
- m_PVRSampleCount: 500
- m_PVREnvironmentSampleCount: 500
- m_PVREnvironmentReferencePointCount: 2048
- m_LightProbeSampleCountMultiplier: 4
- m_PVRBounces: 2
- m_PVRRussianRouletteStartBounce: 2
- m_PVREnvironmentMIS: 0
- m_PVRFilteringMode: 2
- m_PVRDenoiserTypeDirect: 0
- m_PVRDenoiserTypeIndirect: 0
- m_PVRDenoiserTypeAO: 0
- m_PVRFilterTypeDirect: 0
- m_PVRFilterTypeIndirect: 0
- m_PVRFilterTypeAO: 0
- m_PVRFilteringGaussRadiusDirect: 1
- m_PVRFilteringGaussRadiusIndirect: 5
- m_PVRFilteringGaussRadiusAO: 2
- m_PVRFilteringAtrousPositionSigmaDirect: 0.5
- m_PVRFilteringAtrousPositionSigmaIndirect: 2
- m_PVRFilteringAtrousPositionSigmaAO: 1