Added all trees

This commit is contained in:
Bartosz Hejduk 2021-07-10 00:25:49 +02:00
parent a12fb28d27
commit dfdc446d72
162 changed files with 1739962 additions and 185271 deletions

View File

@ -71,8 +71,12 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="Assets\Samples\Terrain Tools\0.1.0-preview\Terrain Assets\ThirdPartyNotices.txt" /> <None Include="Assets\Samples\Terrain Tools\0.1.0-preview\Terrain Assets\ThirdPartyNotices.txt" />
<None Include="Assets\LSystems\TreeYoung.txt" />
<None Include="Assets\LSystems\Tree2.txt" /> <None Include="Assets\LSystems\Tree2.txt" />
<None Include="Assets\LSystems\Tree3.txt" /> <None Include="Assets\LSystems\TreeWinter.txt" />
<None Include="Assets\LSystems\TreeSpring.txt" />
<None Include="Assets\LSystems\TreeAtumn.txt" />
<None Include="Assets\LSystems\TreeSummer.txt" />
<None Include="Assets\LSystems\Tree.txt" /> <None Include="Assets\LSystems\Tree.txt" />
<Reference Include="UnityEngine"> <Reference Include="UnityEngine">
<HintPath>C:\Program Files\Unity\Hub\Editor\2021.1.7f1\Editor\Data\Managed\UnityEngine\UnityEngine.dll</HintPath> <HintPath>C:\Program Files\Unity\Hub\Editor\2021.1.7f1\Editor\Data\Managed\UnityEngine\UnityEngine.dll</HintPath>

View File

@ -1,12 +1,9 @@
using System.Collections;
using System.Collections.Generic;
using UnityEditor; using UnityEditor;
using UnityEngine; using UnityEngine;
[CustomEditor(typeof(TurtleLSystem), true)] [CustomEditor(typeof(TreeTurtle), true)]
public class TurtleEditor : Editor public class TurtleEditor : Editor
{ {
TurtleLSystem turtleLSystem; TreeTurtle turtleLSystem;
public override void OnInspectorGUI() public override void OnInspectorGUI()
{ {
@ -25,7 +22,7 @@ public class TurtleEditor : Editor
} }
void OnEnable() void OnEnable()
{ {
turtleLSystem = (TurtleLSystem)target; turtleLSystem = (TreeTurtle)target;
Tools.hidden = true; Tools.hidden = true;
} }
@ -33,4 +30,4 @@ public class TurtleEditor : Editor
{ {
Tools.hidden = false; Tools.hidden = false;
} }
} }

View File

@ -0,0 +1,16 @@
#axiom
I(1,1)
#rules
I(a,b) : a == 1; b <= 5 -> R(0.7)I(1, b + 1)
I(a,b) : a == 1; b == 6 -> R(0.7)I(2, 0)
I(a,b) : a == 2; b == 0 -> B(0.5,1)I(2, b + 1)
B(a,b) : b < 10 -> N\(90)[-B(a,b+1)][L(0.2)]B(a,b+1)
R(a) : a < 1.5 -> R(a+0.14)
B(a,b) : a < 1 -> B(a+0.1, b)
L(a) : a < 3 -> L(a + 0.4)
#end rules

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 4a2f3d9cda8a08248b77898d7921e2a8 guid: b7908cc115dfe984b98aeaf0de17dd52
TextScriptImporter: TextScriptImporter:
externalObjects: {} externalObjects: {}
userData: userData:

View File

@ -0,0 +1,16 @@
#axiom
I(1,1)
#rules
I(a,b) : a == 1; b <= 5 -> R(0.7)I(1, b + 1)
I(a,b) : a == 1; b == 6 -> R(0.7)I(2, 0)
I(a,b) : a == 2; b == 0 -> B(0.5,1)I(2, b + 1)
B(a,b) : b < 10 -> N\(90)[-B(a,b+1)][L(0.2)\(90)L(0.2)]B(a,b+1)
R(a) : a < 1.5 -> R(a+0.14)
B(a,b) : a < 1 -> B(a+0.1, b)
L(a) : a < 3 -> L(a + 0.4)
#end rules

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: d576e7e1c0e761846927072bfc2a2ed6
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 5d675b5086f7e2b46be6fad694724246
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,15 @@
#axiom
I(1,1)
#rules
I(a,b) : a == 1; b <= 5 -> R(0.7)I(1, b + 1)
I(a,b) : a == 1; b == 6 -> R(0.7)I(2, 0)
I(a,b) : a == 2; b == 0 -> B(0.5,1)I(2, b + 1)
B(a,b) : b < 10 -> N\(90)[-B(a,b+1)]B(a,b+1)
R(a) : a < 1.5 -> R(a+0.14)
B(a,b) : a < 1 -> B(a+0.1, b)
#end rules

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 5373fc47a87d59f44b18631554221876
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,16 @@
#axiom
I(1,1)
#rules
I(a,b) : a == 1; b <= 3 -> R(0.5)I(1, b + 1)
I(a,b) : a == 1; b == 4 -> R(0.5)I(2, 0)
I(a,b) : a == 2; b == 0 -> B(0.2,1)I(2, b + 1)
B(a,b) : b < 7 -> N\(90)[-B(a,b+1)][L(0.2)\(90)L(0.2)]B(a,b+1)
R(a) : a < 3 -> R(a+0.14)
B(a,b) : a < 1 -> B(a+0.1, b)
L(a) : a < 1.5 -> L(a + 0.4)
#end rules

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: b1f72bf46157599449f70b87e18ca610
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,84 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &2146415608025864259
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 5532671501312500238}
- component: {fileID: 2314152182219423656}
- component: {fileID: -5507681904500546492}
m_Layer: 0
m_Name: Leaf
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &5532671501312500238
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2146415608025864259}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
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!23 &2314152182219423656
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2146415608025864259}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!33 &-5507681904500546492
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2146415608025864259}
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}

View File

@ -0,0 +1,63 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1001 &3757754654395505985
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 2309086997282399550, guid: 805534cf86857dc4699084c74d9d40f0, type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2309086997282399550, guid: 805534cf86857dc4699084c74d9d40f0, type: 3}
propertyPath: m_LocalPosition.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 2309086997282399550, guid: 805534cf86857dc4699084c74d9d40f0, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2309086997282399550, guid: 805534cf86857dc4699084c74d9d40f0, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2309086997282399550, guid: 805534cf86857dc4699084c74d9d40f0, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2309086997282399550, guid: 805534cf86857dc4699084c74d9d40f0, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2309086997282399550, guid: 805534cf86857dc4699084c74d9d40f0, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 2309086997282399550, guid: 805534cf86857dc4699084c74d9d40f0, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 2309086997282399550, guid: 805534cf86857dc4699084c74d9d40f0, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2309086997282399550, guid: 805534cf86857dc4699084c74d9d40f0, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2309086997282399550, guid: 805534cf86857dc4699084c74d9d40f0, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3116586390520725380, guid: 805534cf86857dc4699084c74d9d40f0, type: 3}
propertyPath: m_Name
value: LeafM
objectReference: {fileID: 0}
- target: {fileID: 3476966651665210961, guid: 805534cf86857dc4699084c74d9d40f0, type: 3}
propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: 1af79b5fc8678fc4789897b28734bebe, type: 2}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 805534cf86857dc4699084c74d9d40f0, type: 3}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: c7e0c814662cbab42b42b54495a994d7 guid: b98ae80fdc4702d418b00a69a7d53b87
PrefabImporter: PrefabImporter:
externalObjects: {} externalObjects: {}
userData: userData:

View File

@ -0,0 +1,79 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Yellow
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 1, g: 0.74924093, b: 0.24056602, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
m_BuildTextureStacks: []

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 1af79b5fc8678fc4789897b28734bebe
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Some files were not shown because too many files have changed in this diff Show More