com.warwlock.mtree 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/npm.yml +19 -0
- package/CHANGELOG.md +17 -0
- package/CHANGELOG.md.meta +7 -0
- package/Documentation~/Documentation.md +3 -0
- package/Editor/BranchEditor.cs +545 -0
- package/Editor/BranchEditor.cs.meta +16 -0
- package/Editor/EditorCallbacks.cs +69 -0
- package/Editor/EditorCallbacks.cs.meta +11 -0
- package/Editor/MTree.Editor.asmdef +18 -0
- package/Editor/MTree.Editor.asmdef.meta +7 -0
- package/Editor/MenuItem.cs +31 -0
- package/Editor/MenuItem.cs.meta +11 -0
- package/Editor/MtreeBezierInspector.cs +161 -0
- package/Editor/MtreeBezierInspector.cs.meta +11 -0
- package/Editor/MtreeEditor.cs +434 -0
- package/Editor/MtreeEditor.cs.meta +11 -0
- package/Editor/TemplateInspector.cs +66 -0
- package/Editor/TemplateInspector.cs.meta +12 -0
- package/Editor/ValuesEditor.cs +18 -0
- package/Editor/ValuesEditor.cs.meta +11 -0
- package/Editor/VertexColorAdjustmentEditor.cs +169 -0
- package/Editor/VertexColorAdjustmentEditor.cs.meta +11 -0
- package/Editor.meta +8 -0
- package/LICENSE +21 -0
- package/LICENSE.meta +7 -0
- package/README.md +68 -0
- package/README.md.meta +7 -0
- package/Resources/Mtree/MtreeBillboardCamera.prefab +204 -0
- package/Resources/Mtree/MtreeBillboardCamera.prefab.meta +8 -0
- package/Resources/Mtree/Sprites/DeleteCrossSprite.png +0 -0
- package/Resources/Mtree/Sprites/DeleteCrossSprite.png.meta +116 -0
- package/Resources/Mtree/Sprites/TreeFunctionSprite.png +0 -0
- package/Resources/Mtree/Sprites/TreeFunctionSprite.png.meta +116 -0
- package/Resources/Mtree/Sprites/TreeFunctionSpriteSelected.psd +0 -0
- package/Resources/Mtree/Sprites/TreeFunctionSpriteSelected.psd.meta +116 -0
- package/Resources/Mtree/Sprites.meta +8 -0
- package/Resources/Mtree/Vertex Color Editor/Mtree Vertex Color GameObject.prefab +104 -0
- package/Resources/Mtree/Vertex Color Editor/Mtree Vertex Color GameObject.prefab.meta +7 -0
- package/Resources/Mtree/Vertex Color Editor.meta +8 -0
- package/Resources/Mtree/branches.fbx +0 -0
- package/Resources/Mtree/branches.fbx.meta +137 -0
- package/Resources/Mtree.meta +8 -0
- package/Resources.meta +8 -0
- package/Runtime/AO/DensityAO.cs +203 -0
- package/Runtime/AO/DensityAO.cs.meta +11 -0
- package/Runtime/AO/KDTree.cs +169 -0
- package/Runtime/AO/KDTree.cs.meta +11 -0
- package/Runtime/AO/WeightedRandom.cs +74 -0
- package/Runtime/AO/WeightedRandom.cs.meta +11 -0
- package/Runtime/AO.meta +8 -0
- package/Runtime/Bezier/Bezier.cs +69 -0
- package/Runtime/Bezier/Bezier.cs.meta +11 -0
- package/Runtime/Bezier/MtreeBezier.cs +185 -0
- package/Runtime/Bezier/MtreeBezier.cs.meta +11 -0
- package/Runtime/Bezier.meta +8 -0
- package/Runtime/ExampleSceneManager.cs +165 -0
- package/Runtime/ExampleSceneManager.cs.meta +11 -0
- package/Runtime/LODValues.cs +44 -0
- package/Runtime/LODValues.cs.meta +11 -0
- package/Runtime/LeafPoint.cs +135 -0
- package/Runtime/LeafPoint.cs.meta +11 -0
- package/Runtime/MTree.Runtime.asmdef +3 -0
- package/Runtime/MTree.Runtime.asmdef.meta +7 -0
- package/Runtime/MTree.cs +569 -0
- package/Runtime/MTree.cs.meta +11 -0
- package/Runtime/MtreeComponent.cs +482 -0
- package/Runtime/MtreeComponent.cs.meta +11 -0
- package/Runtime/MtreeVariables.cs +11 -0
- package/Runtime/MtreeVariables.cs.meta +11 -0
- package/Runtime/MtreeWind.cs +94 -0
- package/Runtime/MtreeWind.cs.meta +11 -0
- package/Runtime/Node.cs +331 -0
- package/Runtime/Node.cs.meta +11 -0
- package/Runtime/SimplexNoise.cs +166 -0
- package/Runtime/SimplexNoise.cs.meta +11 -0
- package/Runtime/Splines.cs +379 -0
- package/Runtime/Splines.cs.meta +11 -0
- package/Runtime/TreeBilboard.cs +290 -0
- package/Runtime/TreeBilboard.cs.meta +11 -0
- package/Runtime/TreeFunctions/BranchFunction.cs +92 -0
- package/Runtime/TreeFunctions/BranchFunction.cs.meta +11 -0
- package/Runtime/TreeFunctions/GrowFunction.cs +81 -0
- package/Runtime/TreeFunctions/GrowFunction.cs.meta +11 -0
- package/Runtime/TreeFunctions/LeafFunction.cs +111 -0
- package/Runtime/TreeFunctions/LeafFunction.cs.meta +11 -0
- package/Runtime/TreeFunctions/RootsFunction.cs +77 -0
- package/Runtime/TreeFunctions/RootsFunction.cs.meta +11 -0
- package/Runtime/TreeFunctions/SplitFunction.cs +50 -0
- package/Runtime/TreeFunctions/SplitFunction.cs.meta +11 -0
- package/Runtime/TreeFunctions/TreeFunctionAsset.cs +105 -0
- package/Runtime/TreeFunctions/TreeFunctionAsset.cs.meta +11 -0
- package/Runtime/TreeFunctions/TrunkFunction.cs +88 -0
- package/Runtime/TreeFunctions/TrunkFunction.cs.meta +11 -0
- package/Runtime/TreeFunctions.meta +8 -0
- package/Runtime/TreePoint.cs +27 -0
- package/Runtime/TreePoint.cs.meta +11 -0
- package/Runtime/TreeTemplate.cs +50 -0
- package/Runtime/TreeTemplate.cs.meta +12 -0
- package/Runtime/Utils.cs +268 -0
- package/Runtime/Utils.cs.meta +11 -0
- package/Runtime/VSProIntegration.cs +132 -0
- package/Runtime/VSProIntegration.cs.meta +11 -0
- package/Runtime.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Birch.asset +364 -0
- package/Samples~/ExampleTemplates/Examples/Birch.asset.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Bush.asset +385 -0
- package/Samples~/ExampleTemplates/Examples/Bush.asset.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Eastern Pine.asset +482 -0
- package/Samples~/ExampleTemplates/Examples/Eastern Pine.asset.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/FantasyTree.asset +406 -0
- package/Samples~/ExampleTemplates/Examples/FantasyTree.asset.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Fern.asset +291 -0
- package/Samples~/ExampleTemplates/Examples/Fern.asset.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/High Poly.asset +300 -0
- package/Samples~/ExampleTemplates/Examples/High Poly.asset.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/LightingData.asset +0 -0
- package/Samples~/ExampleTemplates/Examples/LightingData.asset.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark Birch Outline.mat +196 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark Birch Outline.mat.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark Birch.mat +196 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark Birch.mat.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark Fern.mat +181 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark Fern.mat.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark HighPoly.mat +201 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark HighPoly.mat.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark Oak.mat +208 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark Oak.mat.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark Palm.mat +180 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark Palm.mat.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark Pine.mat +206 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark Pine.mat.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark Ponderossa.mat +206 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark Ponderossa.mat.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark Poplar.mat +172 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark Poplar.mat.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Bark.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Example Scene/Floor.mat +392 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Example Scene/Floor.mat.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Example Scene.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Fern.mat +202 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Fern.mat.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs HighPoly.mat +265 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs HighPoly.mat.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Needles.mat +267 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Needles.mat.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Palm.mat +232 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Palm.mat.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Palmate.mat +250 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Palmate.mat.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Pine.mat +247 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Pine.mat.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Poplar.mat +223 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Poplar.mat.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Serrate Outline.mat +262 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Serrate Outline.mat.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Serrate.mat +281 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Serrate.mat.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Stone Pine.mat +267 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Stone Pine.mat.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Willow.mat +236 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Willow.mat.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Materials/Leafs.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Materials.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Oak.asset +364 -0
- package/Samples~/ExampleTemplates/Examples/Oak.asset.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Old Oak.asset +364 -0
- package/Samples~/ExampleTemplates/Examples/Old Oak.asset.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Palm.asset +500 -0
- package/Samples~/ExampleTemplates/Examples/Palm.asset.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Pine 2.asset +387 -0
- package/Samples~/ExampleTemplates/Examples/Pine 2.asset.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Pine.asset +405 -0
- package/Samples~/ExampleTemplates/Examples/Pine.asset.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Ponderossa Pine.asset +478 -0
- package/Samples~/ExampleTemplates/Examples/Ponderossa Pine.asset.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Poplar.asset +309 -0
- package/Samples~/ExampleTemplates/Examples/Poplar.asset.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/ReflectionProbe-0.exr +0 -0
- package/Samples~/ExampleTemplates/Examples/ReflectionProbe-0.exr.meta +117 -0
- package/Samples~/ExampleTemplates/Examples/Small Pine.asset +273 -0
- package/Samples~/ExampleTemplates/Examples/Small Pine.asset.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Small Tree.asset +364 -0
- package/Samples~/ExampleTemplates/Examples/Small Tree.asset.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Birch_C.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Birch_C.png.meta +74 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Birch_N.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Birch_N.png.meta +96 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Damaged_C.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Damaged_C.png.meta +116 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Damaged_N.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Damaged_N.png.meta +116 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Decidious_1_C.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Decidious_1_C.png.meta +132 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Decidious_1_N.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Decidious_1_N.png.meta +116 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Decidious_2_C.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Decidious_2_C.png.meta +132 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Decidious_3_C.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Decidious_3_C.png.meta +132 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Decidious_3_N.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Decidious_3_N.png.meta +116 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Decidious_4_C.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Decidious_4_C.png.meta +132 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Decidious_4_N.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Decidious_4_N.png.meta +116 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Oak_C.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Oak_C.png.meta +74 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Oak_N.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Oak_N.png.meta +96 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Palm_C.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Palm_C.png.meta +74 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Palm_N.bmp +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Palm_N.bmp.meta +96 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Pine_C.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Pine_C.png.meta +74 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Pine_N.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Pine_N.png.meta +96 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Bark.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch Serrate_C.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch Serrate_C.png.meta +96 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch Serrate_N.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch Serrate_N.png.meta +96 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Needles_C.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Needles_C.png.meta +99 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Needles_N.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Needles_N.png.meta +96 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Palmate_C.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Palmate_C.png.meta +99 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Palmate_N.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Palmate_N.png.meta +96 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Pine_1_C.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Pine_1_C.png.meta +88 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Pine_1_N.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Pine_1_N.png.meta +96 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Pine_2_C.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Pine_2_C.png.meta +96 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Pine_2_N.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Pine_2_N.png.meta +96 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Poplar_C.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Poplar_C.png.meta +96 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Poplar_N.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Poplar_N.png.meta +96 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Branch.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Color Ramp/Ramp_PSD.psd +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Color Ramp/Ramp_PSD.psd.meta +76 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Color Ramp/Ramp_Toon.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Color Ramp/Ramp_Toon.png.meta +76 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Color Ramp.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Single Leafs/Leaf_Fern_C.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Single Leafs/Leaf_Fern_C.png.meta +99 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Single Leafs/Leaf_Fern_N.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Single Leafs/Leaf_Fern_N.png.meta +88 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Single Leafs/Leaf_Palm_C.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Single Leafs/Leaf_Palm_C.png.meta +88 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Single Leafs/Leaf_Palm_N.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Single Leafs/Leaf_Palm_N.png.meta +88 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Single Leafs/Leaf_Willow_C.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Single Leafs/Leaf_Willow_C.png.meta +99 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Single Leafs/Leaf_Willow_N.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Single Leafs/Leaf_Willow_N.png.meta +88 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Single Leafs/Single_Serrated_C.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Single Leafs/Single_Serrated_C.png.meta +96 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Single Leafs/Single_Serrated_N.png +0 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Single Leafs/Single_Serrated_N.png.meta +96 -0
- package/Samples~/ExampleTemplates/Examples/Textures/Single Leafs.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Textures.meta +8 -0
- package/Samples~/ExampleTemplates/Examples/Willow.asset +364 -0
- package/Samples~/ExampleTemplates/Examples/Willow.asset.meta +8 -0
- package/Samples~/ExampleTemplates/Examples.meta +8 -0
- package/Samples~/ExampleTemplates/Examples.unity +12660 -0
- package/Samples~/ExampleTemplates/Examples.unity.meta +7 -0
- package/Samples~/ExampleTemplates.meta +8 -0
- package/Shaders/BarkShader.shadergraph +17215 -0
- package/Shaders/BarkShader.shadergraph.meta +10 -0
- package/Shaders/Editor/BarkEditor.cs +100 -0
- package/Shaders/Editor/BarkEditor.cs.meta +11 -0
- package/Shaders/Editor/LeafEditor.cs +173 -0
- package/Shaders/Editor/LeafEditor.cs.meta +11 -0
- package/Shaders/Editor.meta +8 -0
- package/Shaders/LeafShader.shadergraph +34803 -0
- package/Shaders/LeafShader.shadergraph.meta +10 -0
- package/Shaders/MTree.Shaders.asmdef +3 -0
- package/Shaders/MTree.Shaders.asmdef.meta +7 -0
- package/Shaders/leafFunctions.hlsl +201 -0
- package/Shaders/leafFunctions.hlsl.meta +7 -0
- package/Shaders/vertexFunc.hlsl +55 -0
- package/Shaders/vertexFunc.hlsl.meta +7 -0
- package/Shaders.meta +8 -0
- package/package.json +36 -0
- package/package.json.meta +7 -0
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
%YAML 1.1
|
|
2
|
+
%TAG !u! tag:unity3d.com,2011:
|
|
3
|
+
--- !u!114 &-9223259927736716915
|
|
4
|
+
MonoBehaviour:
|
|
5
|
+
m_ObjectHideFlags: 0
|
|
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: 11500000, guid: 33897084c7891e54eb6df4c02cb4118d, type: 3}
|
|
13
|
+
m_Name: Branch
|
|
14
|
+
m_EditorClassIdentifier:
|
|
15
|
+
seed: 6173
|
|
16
|
+
id: -110587656
|
|
17
|
+
parent: {fileID: 2266496048177974799}
|
|
18
|
+
chiildren:
|
|
19
|
+
- {fileID: -2163750069577410043}
|
|
20
|
+
enabled: 1
|
|
21
|
+
showDeleteButton: 1
|
|
22
|
+
rect:
|
|
23
|
+
serializedVersion: 2
|
|
24
|
+
x: 30
|
|
25
|
+
y: 34
|
|
26
|
+
width: 200
|
|
27
|
+
height: 37
|
|
28
|
+
deleteRect:
|
|
29
|
+
serializedVersion: 2
|
|
30
|
+
x: 200
|
|
31
|
+
y: 43
|
|
32
|
+
width: 18
|
|
33
|
+
height: 18
|
|
34
|
+
length: 3.87
|
|
35
|
+
lengthCurve:
|
|
36
|
+
serializedVersion: 2
|
|
37
|
+
m_Curve:
|
|
38
|
+
- serializedVersion: 3
|
|
39
|
+
time: -0.0059280396
|
|
40
|
+
value: 0.99438477
|
|
41
|
+
inSlope: -0.49721047
|
|
42
|
+
outSlope: -0.49721047
|
|
43
|
+
tangentMode: 0
|
|
44
|
+
weightedMode: 0
|
|
45
|
+
inWeight: 0.33333334
|
|
46
|
+
outWeight: 0.33333334
|
|
47
|
+
- serializedVersion: 3
|
|
48
|
+
time: 1.0094299
|
|
49
|
+
value: 0.03135681
|
|
50
|
+
inSlope: -1.3668406
|
|
51
|
+
outSlope: -1.3668406
|
|
52
|
+
tangentMode: 0
|
|
53
|
+
weightedMode: 0
|
|
54
|
+
inWeight: 0.33333334
|
|
55
|
+
outWeight: 0.33333334
|
|
56
|
+
m_PreInfinity: 2
|
|
57
|
+
m_PostInfinity: 2
|
|
58
|
+
m_RotationOrder: 4
|
|
59
|
+
resolution: 1
|
|
60
|
+
number: 57
|
|
61
|
+
splitProba: 0.23
|
|
62
|
+
angle: 1.05
|
|
63
|
+
shape:
|
|
64
|
+
serializedVersion: 2
|
|
65
|
+
m_Curve:
|
|
66
|
+
- serializedVersion: 3
|
|
67
|
+
time: 0
|
|
68
|
+
value: 1
|
|
69
|
+
inSlope: 0
|
|
70
|
+
outSlope: -1
|
|
71
|
+
tangentMode: 0
|
|
72
|
+
weightedMode: 0
|
|
73
|
+
inWeight: 0.33333334
|
|
74
|
+
outWeight: 0.33333334
|
|
75
|
+
- serializedVersion: 3
|
|
76
|
+
time: 1
|
|
77
|
+
value: 0
|
|
78
|
+
inSlope: -1
|
|
79
|
+
outSlope: 0
|
|
80
|
+
tangentMode: 0
|
|
81
|
+
weightedMode: 0
|
|
82
|
+
inWeight: 0.33333334
|
|
83
|
+
outWeight: 0.33333334
|
|
84
|
+
m_PreInfinity: 2
|
|
85
|
+
m_PostInfinity: 2
|
|
86
|
+
m_RotationOrder: 4
|
|
87
|
+
splitProbaCurve:
|
|
88
|
+
serializedVersion: 2
|
|
89
|
+
m_Curve:
|
|
90
|
+
- serializedVersion: 3
|
|
91
|
+
time: 0
|
|
92
|
+
value: 0.5
|
|
93
|
+
inSlope: 0
|
|
94
|
+
outSlope: 0.5
|
|
95
|
+
tangentMode: 0
|
|
96
|
+
weightedMode: 0
|
|
97
|
+
inWeight: 0.33333334
|
|
98
|
+
outWeight: 0.33333334
|
|
99
|
+
- serializedVersion: 3
|
|
100
|
+
time: 1
|
|
101
|
+
value: 1
|
|
102
|
+
inSlope: 0.5
|
|
103
|
+
outSlope: 0
|
|
104
|
+
tangentMode: 0
|
|
105
|
+
weightedMode: 0
|
|
106
|
+
inWeight: 0.33333334
|
|
107
|
+
outWeight: 0.33333334
|
|
108
|
+
m_PreInfinity: 2
|
|
109
|
+
m_PostInfinity: 2
|
|
110
|
+
m_RotationOrder: 4
|
|
111
|
+
radius: 0.288
|
|
112
|
+
randomness: 0.17
|
|
113
|
+
upAttraction: 0.229
|
|
114
|
+
start: 0.324
|
|
115
|
+
gravityStrength: 1.81
|
|
116
|
+
--- !u!114 &-2163750069577410043
|
|
117
|
+
MonoBehaviour:
|
|
118
|
+
m_ObjectHideFlags: 0
|
|
119
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
120
|
+
m_PrefabInstance: {fileID: 0}
|
|
121
|
+
m_PrefabAsset: {fileID: 0}
|
|
122
|
+
m_GameObject: {fileID: 0}
|
|
123
|
+
m_Enabled: 1
|
|
124
|
+
m_EditorHideFlags: 0
|
|
125
|
+
m_Script: {fileID: 11500000, guid: 85d8cd2303af54543a4524493d539ae8, type: 3}
|
|
126
|
+
m_Name: Leaves
|
|
127
|
+
m_EditorClassIdentifier:
|
|
128
|
+
seed: 8259
|
|
129
|
+
id: 1916498424
|
|
130
|
+
parent: {fileID: -9223259927736716915}
|
|
131
|
+
chiildren: []
|
|
132
|
+
enabled: 1
|
|
133
|
+
showDeleteButton: 1
|
|
134
|
+
rect:
|
|
135
|
+
serializedVersion: 2
|
|
136
|
+
x: 60
|
|
137
|
+
y: 68
|
|
138
|
+
width: 200
|
|
139
|
+
height: 37
|
|
140
|
+
deleteRect:
|
|
141
|
+
serializedVersion: 2
|
|
142
|
+
x: 230
|
|
143
|
+
y: 77
|
|
144
|
+
width: 18
|
|
145
|
+
height: 18
|
|
146
|
+
leafType: 4
|
|
147
|
+
number: 1037
|
|
148
|
+
customLeafMesh: {fileID: 0}
|
|
149
|
+
maxRadius: 0.266
|
|
150
|
+
size: 0.98
|
|
151
|
+
overrideNormals: 0
|
|
152
|
+
minWeight: 0.050622415
|
|
153
|
+
maxWeight: 0.4834025
|
|
154
|
+
length: 0
|
|
155
|
+
lengthCurve:
|
|
156
|
+
serializedVersion: 2
|
|
157
|
+
m_Curve: []
|
|
158
|
+
m_PreInfinity: 2
|
|
159
|
+
m_PostInfinity: 2
|
|
160
|
+
m_RotationOrder: 4
|
|
161
|
+
uLoops: 0
|
|
162
|
+
resolution: 0
|
|
163
|
+
gravityStrength: 0
|
|
164
|
+
--- !u!114 &11400000
|
|
165
|
+
MonoBehaviour:
|
|
166
|
+
m_ObjectHideFlags: 0
|
|
167
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
168
|
+
m_PrefabInstance: {fileID: 0}
|
|
169
|
+
m_PrefabAsset: {fileID: 0}
|
|
170
|
+
m_GameObject: {fileID: 0}
|
|
171
|
+
m_Enabled: 1
|
|
172
|
+
m_EditorHideFlags: 0
|
|
173
|
+
m_Script: {fileID: 11500000, guid: 58c179839cc7e1e4bb7fdb33c0866483, type: 3}
|
|
174
|
+
m_Name: Pine 2
|
|
175
|
+
m_EditorClassIdentifier:
|
|
176
|
+
treeFunctions:
|
|
177
|
+
- {fileID: 2266496048177974799}
|
|
178
|
+
- {fileID: -9223259927736716915}
|
|
179
|
+
- {fileID: -2163750069577410043}
|
|
180
|
+
- {fileID: 4103935332284436284}
|
|
181
|
+
--- !u!114 &2266496048177974799
|
|
182
|
+
MonoBehaviour:
|
|
183
|
+
m_ObjectHideFlags: 0
|
|
184
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
185
|
+
m_PrefabInstance: {fileID: 0}
|
|
186
|
+
m_PrefabAsset: {fileID: 0}
|
|
187
|
+
m_GameObject: {fileID: 0}
|
|
188
|
+
m_Enabled: 1
|
|
189
|
+
m_EditorHideFlags: 0
|
|
190
|
+
m_Script: {fileID: 11500000, guid: 156ba2a5f4fc7bf47b493b7cbf9c7f19, type: 3}
|
|
191
|
+
m_Name: Trunk
|
|
192
|
+
m_EditorClassIdentifier:
|
|
193
|
+
seed: 9315
|
|
194
|
+
id: -161211370
|
|
195
|
+
parent: {fileID: 0}
|
|
196
|
+
chiildren:
|
|
197
|
+
- {fileID: -9223259927736716915}
|
|
198
|
+
- {fileID: 4103935332284436284}
|
|
199
|
+
enabled: 1
|
|
200
|
+
showDeleteButton: 0
|
|
201
|
+
rect:
|
|
202
|
+
serializedVersion: 2
|
|
203
|
+
x: 0
|
|
204
|
+
y: 0
|
|
205
|
+
width: 200
|
|
206
|
+
height: 37
|
|
207
|
+
deleteRect:
|
|
208
|
+
serializedVersion: 2
|
|
209
|
+
x: 0
|
|
210
|
+
y: 0
|
|
211
|
+
width: 0
|
|
212
|
+
height: 0
|
|
213
|
+
radiusMultiplier: 0.2
|
|
214
|
+
radius:
|
|
215
|
+
serializedVersion: 2
|
|
216
|
+
m_Curve:
|
|
217
|
+
- serializedVersion: 3
|
|
218
|
+
time: 0
|
|
219
|
+
value: 1
|
|
220
|
+
inSlope: 0
|
|
221
|
+
outSlope: 0
|
|
222
|
+
tangentMode: 0
|
|
223
|
+
weightedMode: 0
|
|
224
|
+
inWeight: 0.33333334
|
|
225
|
+
outWeight: 0.33333334
|
|
226
|
+
- serializedVersion: 3
|
|
227
|
+
time: 1
|
|
228
|
+
value: 0
|
|
229
|
+
inSlope: -2.2184865
|
|
230
|
+
outSlope: -2.2184865
|
|
231
|
+
tangentMode: 0
|
|
232
|
+
weightedMode: 0
|
|
233
|
+
inWeight: 0.33333334
|
|
234
|
+
outWeight: 0.33333334
|
|
235
|
+
m_PreInfinity: 2
|
|
236
|
+
m_PostInfinity: 2
|
|
237
|
+
m_RotationOrder: 4
|
|
238
|
+
length: 20
|
|
239
|
+
number: 1
|
|
240
|
+
randomness: 0.015
|
|
241
|
+
originAttraction: 0.643
|
|
242
|
+
resolution: 1.5
|
|
243
|
+
rootShape:
|
|
244
|
+
serializedVersion: 2
|
|
245
|
+
m_Curve:
|
|
246
|
+
- serializedVersion: 3
|
|
247
|
+
time: 0
|
|
248
|
+
value: 1
|
|
249
|
+
inSlope: -2
|
|
250
|
+
outSlope: -2
|
|
251
|
+
tangentMode: 0
|
|
252
|
+
weightedMode: 0
|
|
253
|
+
inWeight: 0.33333334
|
|
254
|
+
outWeight: 0.33333334
|
|
255
|
+
- serializedVersion: 3
|
|
256
|
+
time: 1
|
|
257
|
+
value: 0
|
|
258
|
+
inSlope: 0
|
|
259
|
+
outSlope: 0
|
|
260
|
+
tangentMode: 0
|
|
261
|
+
weightedMode: 0
|
|
262
|
+
inWeight: 0.33333334
|
|
263
|
+
outWeight: 0.33333334
|
|
264
|
+
m_PreInfinity: 2
|
|
265
|
+
m_PostInfinity: 2
|
|
266
|
+
m_RotationOrder: 4
|
|
267
|
+
rootRadius: 0.73
|
|
268
|
+
rootInnerRadius: 0
|
|
269
|
+
rootHeight: 0.79
|
|
270
|
+
rootResolution: 3.84
|
|
271
|
+
flareNumber: 5
|
|
272
|
+
spinAmount: 0.1
|
|
273
|
+
displacementStrength: 0.39
|
|
274
|
+
displacementSize: 0.32
|
|
275
|
+
heightOffset: 0.5
|
|
276
|
+
--- !u!114 &4103935332284436284
|
|
277
|
+
MonoBehaviour:
|
|
278
|
+
m_ObjectHideFlags: 0
|
|
279
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
280
|
+
m_PrefabInstance: {fileID: 0}
|
|
281
|
+
m_PrefabAsset: {fileID: 0}
|
|
282
|
+
m_GameObject: {fileID: 0}
|
|
283
|
+
m_Enabled: 1
|
|
284
|
+
m_EditorHideFlags: 0
|
|
285
|
+
m_Script: {fileID: 11500000, guid: 33897084c7891e54eb6df4c02cb4118d, type: 3}
|
|
286
|
+
m_Name: Branch
|
|
287
|
+
m_EditorClassIdentifier:
|
|
288
|
+
seed: 7810
|
|
289
|
+
id: -1949621675
|
|
290
|
+
parent: {fileID: 2266496048177974799}
|
|
291
|
+
chiildren: []
|
|
292
|
+
enabled: 1
|
|
293
|
+
showDeleteButton: 1
|
|
294
|
+
rect:
|
|
295
|
+
serializedVersion: 2
|
|
296
|
+
x: 30
|
|
297
|
+
y: 102
|
|
298
|
+
width: 200
|
|
299
|
+
height: 37
|
|
300
|
+
deleteRect:
|
|
301
|
+
serializedVersion: 2
|
|
302
|
+
x: 200
|
|
303
|
+
y: 111
|
|
304
|
+
width: 18
|
|
305
|
+
height: 18
|
|
306
|
+
length: 0.87
|
|
307
|
+
lengthCurve:
|
|
308
|
+
serializedVersion: 2
|
|
309
|
+
m_Curve:
|
|
310
|
+
- serializedVersion: 3
|
|
311
|
+
time: -0.017787933
|
|
312
|
+
value: 0.3977661
|
|
313
|
+
inSlope: 2
|
|
314
|
+
outSlope: 2
|
|
315
|
+
tangentMode: 0
|
|
316
|
+
weightedMode: 0
|
|
317
|
+
inWeight: 0.33333334
|
|
318
|
+
outWeight: 0.33333334
|
|
319
|
+
- serializedVersion: 3
|
|
320
|
+
time: 1
|
|
321
|
+
value: 1
|
|
322
|
+
inSlope: 0
|
|
323
|
+
outSlope: 0
|
|
324
|
+
tangentMode: 0
|
|
325
|
+
weightedMode: 0
|
|
326
|
+
inWeight: 0.33333334
|
|
327
|
+
outWeight: 0.33333334
|
|
328
|
+
m_PreInfinity: 2
|
|
329
|
+
m_PostInfinity: 2
|
|
330
|
+
m_RotationOrder: 4
|
|
331
|
+
resolution: 5.83
|
|
332
|
+
number: 66
|
|
333
|
+
splitProba: 0.2
|
|
334
|
+
angle: 1.18
|
|
335
|
+
shape:
|
|
336
|
+
serializedVersion: 2
|
|
337
|
+
m_Curve:
|
|
338
|
+
- serializedVersion: 3
|
|
339
|
+
time: 0
|
|
340
|
+
value: 1
|
|
341
|
+
inSlope: 0
|
|
342
|
+
outSlope: 0
|
|
343
|
+
tangentMode: 0
|
|
344
|
+
weightedMode: 0
|
|
345
|
+
inWeight: 0.33333334
|
|
346
|
+
outWeight: 0.33333334
|
|
347
|
+
- serializedVersion: 3
|
|
348
|
+
time: 0.91249996
|
|
349
|
+
value: 0.54480267
|
|
350
|
+
inSlope: -1
|
|
351
|
+
outSlope: -1
|
|
352
|
+
tangentMode: 0
|
|
353
|
+
weightedMode: 0
|
|
354
|
+
inWeight: 0.33333334
|
|
355
|
+
outWeight: 0.33333334
|
|
356
|
+
m_PreInfinity: 2
|
|
357
|
+
m_PostInfinity: 2
|
|
358
|
+
m_RotationOrder: 4
|
|
359
|
+
splitProbaCurve:
|
|
360
|
+
serializedVersion: 2
|
|
361
|
+
m_Curve:
|
|
362
|
+
- serializedVersion: 3
|
|
363
|
+
time: 0
|
|
364
|
+
value: 0.5
|
|
365
|
+
inSlope: 0
|
|
366
|
+
outSlope: 0.5
|
|
367
|
+
tangentMode: 0
|
|
368
|
+
weightedMode: 0
|
|
369
|
+
inWeight: 0.33333334
|
|
370
|
+
outWeight: 0.33333334
|
|
371
|
+
- serializedVersion: 3
|
|
372
|
+
time: 1
|
|
373
|
+
value: 1
|
|
374
|
+
inSlope: 0.5
|
|
375
|
+
outSlope: 0
|
|
376
|
+
tangentMode: 0
|
|
377
|
+
weightedMode: 0
|
|
378
|
+
inWeight: 0.33333334
|
|
379
|
+
outWeight: 0.33333334
|
|
380
|
+
m_PreInfinity: 2
|
|
381
|
+
m_PostInfinity: 2
|
|
382
|
+
m_RotationOrder: 4
|
|
383
|
+
radius: 0.11
|
|
384
|
+
randomness: 0.3
|
|
385
|
+
upAttraction: 0.7
|
|
386
|
+
start: 0.061
|
|
387
|
+
gravityStrength: 0.1
|