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.
Files changed (290) hide show
  1. package/.github/workflows/npm.yml +19 -0
  2. package/CHANGELOG.md +17 -0
  3. package/CHANGELOG.md.meta +7 -0
  4. package/Documentation~/Documentation.md +3 -0
  5. package/Editor/BranchEditor.cs +545 -0
  6. package/Editor/BranchEditor.cs.meta +16 -0
  7. package/Editor/EditorCallbacks.cs +69 -0
  8. package/Editor/EditorCallbacks.cs.meta +11 -0
  9. package/Editor/MTree.Editor.asmdef +18 -0
  10. package/Editor/MTree.Editor.asmdef.meta +7 -0
  11. package/Editor/MenuItem.cs +31 -0
  12. package/Editor/MenuItem.cs.meta +11 -0
  13. package/Editor/MtreeBezierInspector.cs +161 -0
  14. package/Editor/MtreeBezierInspector.cs.meta +11 -0
  15. package/Editor/MtreeEditor.cs +434 -0
  16. package/Editor/MtreeEditor.cs.meta +11 -0
  17. package/Editor/TemplateInspector.cs +66 -0
  18. package/Editor/TemplateInspector.cs.meta +12 -0
  19. package/Editor/ValuesEditor.cs +18 -0
  20. package/Editor/ValuesEditor.cs.meta +11 -0
  21. package/Editor/VertexColorAdjustmentEditor.cs +169 -0
  22. package/Editor/VertexColorAdjustmentEditor.cs.meta +11 -0
  23. package/Editor.meta +8 -0
  24. package/LICENSE +21 -0
  25. package/LICENSE.meta +7 -0
  26. package/README.md +68 -0
  27. package/README.md.meta +7 -0
  28. package/Resources/Mtree/MtreeBillboardCamera.prefab +204 -0
  29. package/Resources/Mtree/MtreeBillboardCamera.prefab.meta +8 -0
  30. package/Resources/Mtree/Sprites/DeleteCrossSprite.png +0 -0
  31. package/Resources/Mtree/Sprites/DeleteCrossSprite.png.meta +116 -0
  32. package/Resources/Mtree/Sprites/TreeFunctionSprite.png +0 -0
  33. package/Resources/Mtree/Sprites/TreeFunctionSprite.png.meta +116 -0
  34. package/Resources/Mtree/Sprites/TreeFunctionSpriteSelected.psd +0 -0
  35. package/Resources/Mtree/Sprites/TreeFunctionSpriteSelected.psd.meta +116 -0
  36. package/Resources/Mtree/Sprites.meta +8 -0
  37. package/Resources/Mtree/Vertex Color Editor/Mtree Vertex Color GameObject.prefab +104 -0
  38. package/Resources/Mtree/Vertex Color Editor/Mtree Vertex Color GameObject.prefab.meta +7 -0
  39. package/Resources/Mtree/Vertex Color Editor.meta +8 -0
  40. package/Resources/Mtree/branches.fbx +0 -0
  41. package/Resources/Mtree/branches.fbx.meta +137 -0
  42. package/Resources/Mtree.meta +8 -0
  43. package/Resources.meta +8 -0
  44. package/Runtime/AO/DensityAO.cs +203 -0
  45. package/Runtime/AO/DensityAO.cs.meta +11 -0
  46. package/Runtime/AO/KDTree.cs +169 -0
  47. package/Runtime/AO/KDTree.cs.meta +11 -0
  48. package/Runtime/AO/WeightedRandom.cs +74 -0
  49. package/Runtime/AO/WeightedRandom.cs.meta +11 -0
  50. package/Runtime/AO.meta +8 -0
  51. package/Runtime/Bezier/Bezier.cs +69 -0
  52. package/Runtime/Bezier/Bezier.cs.meta +11 -0
  53. package/Runtime/Bezier/MtreeBezier.cs +185 -0
  54. package/Runtime/Bezier/MtreeBezier.cs.meta +11 -0
  55. package/Runtime/Bezier.meta +8 -0
  56. package/Runtime/ExampleSceneManager.cs +165 -0
  57. package/Runtime/ExampleSceneManager.cs.meta +11 -0
  58. package/Runtime/LODValues.cs +44 -0
  59. package/Runtime/LODValues.cs.meta +11 -0
  60. package/Runtime/LeafPoint.cs +135 -0
  61. package/Runtime/LeafPoint.cs.meta +11 -0
  62. package/Runtime/MTree.Runtime.asmdef +3 -0
  63. package/Runtime/MTree.Runtime.asmdef.meta +7 -0
  64. package/Runtime/MTree.cs +569 -0
  65. package/Runtime/MTree.cs.meta +11 -0
  66. package/Runtime/MtreeComponent.cs +482 -0
  67. package/Runtime/MtreeComponent.cs.meta +11 -0
  68. package/Runtime/MtreeVariables.cs +11 -0
  69. package/Runtime/MtreeVariables.cs.meta +11 -0
  70. package/Runtime/MtreeWind.cs +94 -0
  71. package/Runtime/MtreeWind.cs.meta +11 -0
  72. package/Runtime/Node.cs +331 -0
  73. package/Runtime/Node.cs.meta +11 -0
  74. package/Runtime/SimplexNoise.cs +166 -0
  75. package/Runtime/SimplexNoise.cs.meta +11 -0
  76. package/Runtime/Splines.cs +379 -0
  77. package/Runtime/Splines.cs.meta +11 -0
  78. package/Runtime/TreeBilboard.cs +290 -0
  79. package/Runtime/TreeBilboard.cs.meta +11 -0
  80. package/Runtime/TreeFunctions/BranchFunction.cs +92 -0
  81. package/Runtime/TreeFunctions/BranchFunction.cs.meta +11 -0
  82. package/Runtime/TreeFunctions/GrowFunction.cs +81 -0
  83. package/Runtime/TreeFunctions/GrowFunction.cs.meta +11 -0
  84. package/Runtime/TreeFunctions/LeafFunction.cs +111 -0
  85. package/Runtime/TreeFunctions/LeafFunction.cs.meta +11 -0
  86. package/Runtime/TreeFunctions/RootsFunction.cs +77 -0
  87. package/Runtime/TreeFunctions/RootsFunction.cs.meta +11 -0
  88. package/Runtime/TreeFunctions/SplitFunction.cs +50 -0
  89. package/Runtime/TreeFunctions/SplitFunction.cs.meta +11 -0
  90. package/Runtime/TreeFunctions/TreeFunctionAsset.cs +105 -0
  91. package/Runtime/TreeFunctions/TreeFunctionAsset.cs.meta +11 -0
  92. package/Runtime/TreeFunctions/TrunkFunction.cs +88 -0
  93. package/Runtime/TreeFunctions/TrunkFunction.cs.meta +11 -0
  94. package/Runtime/TreeFunctions.meta +8 -0
  95. package/Runtime/TreePoint.cs +27 -0
  96. package/Runtime/TreePoint.cs.meta +11 -0
  97. package/Runtime/TreeTemplate.cs +50 -0
  98. package/Runtime/TreeTemplate.cs.meta +12 -0
  99. package/Runtime/Utils.cs +268 -0
  100. package/Runtime/Utils.cs.meta +11 -0
  101. package/Runtime/VSProIntegration.cs +132 -0
  102. package/Runtime/VSProIntegration.cs.meta +11 -0
  103. package/Runtime.meta +8 -0
  104. package/Samples~/ExampleTemplates/Examples/Birch.asset +364 -0
  105. package/Samples~/ExampleTemplates/Examples/Birch.asset.meta +8 -0
  106. package/Samples~/ExampleTemplates/Examples/Bush.asset +385 -0
  107. package/Samples~/ExampleTemplates/Examples/Bush.asset.meta +8 -0
  108. package/Samples~/ExampleTemplates/Examples/Eastern Pine.asset +482 -0
  109. package/Samples~/ExampleTemplates/Examples/Eastern Pine.asset.meta +8 -0
  110. package/Samples~/ExampleTemplates/Examples/FantasyTree.asset +406 -0
  111. package/Samples~/ExampleTemplates/Examples/FantasyTree.asset.meta +8 -0
  112. package/Samples~/ExampleTemplates/Examples/Fern.asset +291 -0
  113. package/Samples~/ExampleTemplates/Examples/Fern.asset.meta +8 -0
  114. package/Samples~/ExampleTemplates/Examples/High Poly.asset +300 -0
  115. package/Samples~/ExampleTemplates/Examples/High Poly.asset.meta +8 -0
  116. package/Samples~/ExampleTemplates/Examples/LightingData.asset +0 -0
  117. package/Samples~/ExampleTemplates/Examples/LightingData.asset.meta +8 -0
  118. package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark Birch Outline.mat +196 -0
  119. package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark Birch Outline.mat.meta +8 -0
  120. package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark Birch.mat +196 -0
  121. package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark Birch.mat.meta +8 -0
  122. package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark Fern.mat +181 -0
  123. package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark Fern.mat.meta +8 -0
  124. package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark HighPoly.mat +201 -0
  125. package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark HighPoly.mat.meta +8 -0
  126. package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark Oak.mat +208 -0
  127. package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark Oak.mat.meta +8 -0
  128. package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark Palm.mat +180 -0
  129. package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark Palm.mat.meta +8 -0
  130. package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark Pine.mat +206 -0
  131. package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark Pine.mat.meta +8 -0
  132. package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark Ponderossa.mat +206 -0
  133. package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark Ponderossa.mat.meta +8 -0
  134. package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark Poplar.mat +172 -0
  135. package/Samples~/ExampleTemplates/Examples/Materials/Bark/Bark Poplar.mat.meta +8 -0
  136. package/Samples~/ExampleTemplates/Examples/Materials/Bark.meta +8 -0
  137. package/Samples~/ExampleTemplates/Examples/Materials/Example Scene/Floor.mat +392 -0
  138. package/Samples~/ExampleTemplates/Examples/Materials/Example Scene/Floor.mat.meta +8 -0
  139. package/Samples~/ExampleTemplates/Examples/Materials/Example Scene.meta +8 -0
  140. package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Fern.mat +202 -0
  141. package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Fern.mat.meta +8 -0
  142. package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs HighPoly.mat +265 -0
  143. package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs HighPoly.mat.meta +8 -0
  144. package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Needles.mat +267 -0
  145. package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Needles.mat.meta +8 -0
  146. package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Palm.mat +232 -0
  147. package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Palm.mat.meta +8 -0
  148. package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Palmate.mat +250 -0
  149. package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Palmate.mat.meta +8 -0
  150. package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Pine.mat +247 -0
  151. package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Pine.mat.meta +8 -0
  152. package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Poplar.mat +223 -0
  153. package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Poplar.mat.meta +8 -0
  154. package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Serrate Outline.mat +262 -0
  155. package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Serrate Outline.mat.meta +8 -0
  156. package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Serrate.mat +281 -0
  157. package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Serrate.mat.meta +8 -0
  158. package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Stone Pine.mat +267 -0
  159. package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Stone Pine.mat.meta +8 -0
  160. package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Willow.mat +236 -0
  161. package/Samples~/ExampleTemplates/Examples/Materials/Leafs/Leafs Willow.mat.meta +8 -0
  162. package/Samples~/ExampleTemplates/Examples/Materials/Leafs.meta +8 -0
  163. package/Samples~/ExampleTemplates/Examples/Materials.meta +8 -0
  164. package/Samples~/ExampleTemplates/Examples/Oak.asset +364 -0
  165. package/Samples~/ExampleTemplates/Examples/Oak.asset.meta +8 -0
  166. package/Samples~/ExampleTemplates/Examples/Old Oak.asset +364 -0
  167. package/Samples~/ExampleTemplates/Examples/Old Oak.asset.meta +8 -0
  168. package/Samples~/ExampleTemplates/Examples/Palm.asset +500 -0
  169. package/Samples~/ExampleTemplates/Examples/Palm.asset.meta +8 -0
  170. package/Samples~/ExampleTemplates/Examples/Pine 2.asset +387 -0
  171. package/Samples~/ExampleTemplates/Examples/Pine 2.asset.meta +8 -0
  172. package/Samples~/ExampleTemplates/Examples/Pine.asset +405 -0
  173. package/Samples~/ExampleTemplates/Examples/Pine.asset.meta +8 -0
  174. package/Samples~/ExampleTemplates/Examples/Ponderossa Pine.asset +478 -0
  175. package/Samples~/ExampleTemplates/Examples/Ponderossa Pine.asset.meta +8 -0
  176. package/Samples~/ExampleTemplates/Examples/Poplar.asset +309 -0
  177. package/Samples~/ExampleTemplates/Examples/Poplar.asset.meta +8 -0
  178. package/Samples~/ExampleTemplates/Examples/ReflectionProbe-0.exr +0 -0
  179. package/Samples~/ExampleTemplates/Examples/ReflectionProbe-0.exr.meta +117 -0
  180. package/Samples~/ExampleTemplates/Examples/Small Pine.asset +273 -0
  181. package/Samples~/ExampleTemplates/Examples/Small Pine.asset.meta +8 -0
  182. package/Samples~/ExampleTemplates/Examples/Small Tree.asset +364 -0
  183. package/Samples~/ExampleTemplates/Examples/Small Tree.asset.meta +8 -0
  184. package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Birch_C.png +0 -0
  185. package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Birch_C.png.meta +74 -0
  186. package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Birch_N.png +0 -0
  187. package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Birch_N.png.meta +96 -0
  188. package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Damaged_C.png +0 -0
  189. package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Damaged_C.png.meta +116 -0
  190. package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Damaged_N.png +0 -0
  191. package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Damaged_N.png.meta +116 -0
  192. package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Decidious_1_C.png +0 -0
  193. package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Decidious_1_C.png.meta +132 -0
  194. package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Decidious_1_N.png +0 -0
  195. package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Decidious_1_N.png.meta +116 -0
  196. package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Decidious_2_C.png +0 -0
  197. package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Decidious_2_C.png.meta +132 -0
  198. package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Decidious_3_C.png +0 -0
  199. package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Decidious_3_C.png.meta +132 -0
  200. package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Decidious_3_N.png +0 -0
  201. package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Decidious_3_N.png.meta +116 -0
  202. package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Decidious_4_C.png +0 -0
  203. package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Decidious_4_C.png.meta +132 -0
  204. package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Decidious_4_N.png +0 -0
  205. package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Decidious_4_N.png.meta +116 -0
  206. package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Oak_C.png +0 -0
  207. package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Oak_C.png.meta +74 -0
  208. package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Oak_N.png +0 -0
  209. package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Oak_N.png.meta +96 -0
  210. package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Palm_C.png +0 -0
  211. package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Palm_C.png.meta +74 -0
  212. package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Palm_N.bmp +0 -0
  213. package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Palm_N.bmp.meta +96 -0
  214. package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Pine_C.png +0 -0
  215. package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Pine_C.png.meta +74 -0
  216. package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Pine_N.png +0 -0
  217. package/Samples~/ExampleTemplates/Examples/Textures/Bark/Bark_Pine_N.png.meta +96 -0
  218. package/Samples~/ExampleTemplates/Examples/Textures/Bark.meta +8 -0
  219. package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch Serrate_C.png +0 -0
  220. package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch Serrate_C.png.meta +96 -0
  221. package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch Serrate_N.png +0 -0
  222. package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch Serrate_N.png.meta +96 -0
  223. package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Needles_C.png +0 -0
  224. package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Needles_C.png.meta +99 -0
  225. package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Needles_N.png +0 -0
  226. package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Needles_N.png.meta +96 -0
  227. package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Palmate_C.png +0 -0
  228. package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Palmate_C.png.meta +99 -0
  229. package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Palmate_N.png +0 -0
  230. package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Palmate_N.png.meta +96 -0
  231. package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Pine_1_C.png +0 -0
  232. package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Pine_1_C.png.meta +88 -0
  233. package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Pine_1_N.png +0 -0
  234. package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Pine_1_N.png.meta +96 -0
  235. package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Pine_2_C.png +0 -0
  236. package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Pine_2_C.png.meta +96 -0
  237. package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Pine_2_N.png +0 -0
  238. package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Pine_2_N.png.meta +96 -0
  239. package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Poplar_C.png +0 -0
  240. package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Poplar_C.png.meta +96 -0
  241. package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Poplar_N.png +0 -0
  242. package/Samples~/ExampleTemplates/Examples/Textures/Branch/Branch_Poplar_N.png.meta +96 -0
  243. package/Samples~/ExampleTemplates/Examples/Textures/Branch.meta +8 -0
  244. package/Samples~/ExampleTemplates/Examples/Textures/Color Ramp/Ramp_PSD.psd +0 -0
  245. package/Samples~/ExampleTemplates/Examples/Textures/Color Ramp/Ramp_PSD.psd.meta +76 -0
  246. package/Samples~/ExampleTemplates/Examples/Textures/Color Ramp/Ramp_Toon.png +0 -0
  247. package/Samples~/ExampleTemplates/Examples/Textures/Color Ramp/Ramp_Toon.png.meta +76 -0
  248. package/Samples~/ExampleTemplates/Examples/Textures/Color Ramp.meta +8 -0
  249. package/Samples~/ExampleTemplates/Examples/Textures/Single Leafs/Leaf_Fern_C.png +0 -0
  250. package/Samples~/ExampleTemplates/Examples/Textures/Single Leafs/Leaf_Fern_C.png.meta +99 -0
  251. package/Samples~/ExampleTemplates/Examples/Textures/Single Leafs/Leaf_Fern_N.png +0 -0
  252. package/Samples~/ExampleTemplates/Examples/Textures/Single Leafs/Leaf_Fern_N.png.meta +88 -0
  253. package/Samples~/ExampleTemplates/Examples/Textures/Single Leafs/Leaf_Palm_C.png +0 -0
  254. package/Samples~/ExampleTemplates/Examples/Textures/Single Leafs/Leaf_Palm_C.png.meta +88 -0
  255. package/Samples~/ExampleTemplates/Examples/Textures/Single Leafs/Leaf_Palm_N.png +0 -0
  256. package/Samples~/ExampleTemplates/Examples/Textures/Single Leafs/Leaf_Palm_N.png.meta +88 -0
  257. package/Samples~/ExampleTemplates/Examples/Textures/Single Leafs/Leaf_Willow_C.png +0 -0
  258. package/Samples~/ExampleTemplates/Examples/Textures/Single Leafs/Leaf_Willow_C.png.meta +99 -0
  259. package/Samples~/ExampleTemplates/Examples/Textures/Single Leafs/Leaf_Willow_N.png +0 -0
  260. package/Samples~/ExampleTemplates/Examples/Textures/Single Leafs/Leaf_Willow_N.png.meta +88 -0
  261. package/Samples~/ExampleTemplates/Examples/Textures/Single Leafs/Single_Serrated_C.png +0 -0
  262. package/Samples~/ExampleTemplates/Examples/Textures/Single Leafs/Single_Serrated_C.png.meta +96 -0
  263. package/Samples~/ExampleTemplates/Examples/Textures/Single Leafs/Single_Serrated_N.png +0 -0
  264. package/Samples~/ExampleTemplates/Examples/Textures/Single Leafs/Single_Serrated_N.png.meta +96 -0
  265. package/Samples~/ExampleTemplates/Examples/Textures/Single Leafs.meta +8 -0
  266. package/Samples~/ExampleTemplates/Examples/Textures.meta +8 -0
  267. package/Samples~/ExampleTemplates/Examples/Willow.asset +364 -0
  268. package/Samples~/ExampleTemplates/Examples/Willow.asset.meta +8 -0
  269. package/Samples~/ExampleTemplates/Examples.meta +8 -0
  270. package/Samples~/ExampleTemplates/Examples.unity +12660 -0
  271. package/Samples~/ExampleTemplates/Examples.unity.meta +7 -0
  272. package/Samples~/ExampleTemplates.meta +8 -0
  273. package/Shaders/BarkShader.shadergraph +17215 -0
  274. package/Shaders/BarkShader.shadergraph.meta +10 -0
  275. package/Shaders/Editor/BarkEditor.cs +100 -0
  276. package/Shaders/Editor/BarkEditor.cs.meta +11 -0
  277. package/Shaders/Editor/LeafEditor.cs +173 -0
  278. package/Shaders/Editor/LeafEditor.cs.meta +11 -0
  279. package/Shaders/Editor.meta +8 -0
  280. package/Shaders/LeafShader.shadergraph +34803 -0
  281. package/Shaders/LeafShader.shadergraph.meta +10 -0
  282. package/Shaders/MTree.Shaders.asmdef +3 -0
  283. package/Shaders/MTree.Shaders.asmdef.meta +7 -0
  284. package/Shaders/leafFunctions.hlsl +201 -0
  285. package/Shaders/leafFunctions.hlsl.meta +7 -0
  286. package/Shaders/vertexFunc.hlsl +55 -0
  287. package/Shaders/vertexFunc.hlsl.meta +7 -0
  288. package/Shaders.meta +8 -0
  289. package/package.json +36 -0
  290. package/package.json.meta +7 -0
@@ -0,0 +1,482 @@
1
+ %YAML 1.1
2
+ %TAG !u! tag:unity3d.com,2011:
3
+ --- !u!114 &-8863865481013532170
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: 85d8cd2303af54543a4524493d539ae8, type: 3}
13
+ m_Name: Leaves
14
+ m_EditorClassIdentifier:
15
+ seed: 822
16
+ id: -1842030932
17
+ parent: {fileID: -913529443162459245}
18
+ chiildren: []
19
+ enabled: 1
20
+ showDeleteButton: 1
21
+ rect:
22
+ serializedVersion: 2
23
+ x: 60
24
+ y: 102
25
+ width: 200
26
+ height: 37
27
+ deleteRect:
28
+ serializedVersion: 2
29
+ x: 230
30
+ y: 111
31
+ width: 18
32
+ height: 18
33
+ leafType: 0
34
+ number: 215
35
+ customLeafMesh: {fileID: 0}
36
+ maxRadius: 0.589
37
+ size: 1.85
38
+ overrideNormals: 1
39
+ minWeight: -0.3469388
40
+ maxWeight: -0.046938837
41
+ length: 2
42
+ lengthCurve:
43
+ serializedVersion: 2
44
+ m_Curve:
45
+ - serializedVersion: 3
46
+ time: 0
47
+ value: 1
48
+ inSlope: 0
49
+ outSlope: -0.5
50
+ tangentMode: 0
51
+ weightedMode: 0
52
+ inWeight: 0.33333334
53
+ outWeight: 0.33333334
54
+ - serializedVersion: 3
55
+ time: 1
56
+ value: 0.5
57
+ inSlope: -0.5
58
+ outSlope: 0
59
+ tangentMode: 0
60
+ weightedMode: 0
61
+ inWeight: 0.33333334
62
+ outWeight: 0.33333334
63
+ m_PreInfinity: 2
64
+ m_PostInfinity: 2
65
+ m_RotationOrder: 4
66
+ uLoops: 2
67
+ resolution: 1
68
+ gravityStrength: 1
69
+ --- !u!114 &-7804732339776450690
70
+ MonoBehaviour:
71
+ m_ObjectHideFlags: 0
72
+ m_CorrespondingSourceObject: {fileID: 0}
73
+ m_PrefabInstance: {fileID: 0}
74
+ m_PrefabAsset: {fileID: 0}
75
+ m_GameObject: {fileID: 0}
76
+ m_Enabled: 1
77
+ m_EditorHideFlags: 0
78
+ m_Script: {fileID: 11500000, guid: 156ba2a5f4fc7bf47b493b7cbf9c7f19, type: 3}
79
+ m_Name: Trunk
80
+ m_EditorClassIdentifier:
81
+ seed: 5373
82
+ id: 469364115
83
+ parent: {fileID: 0}
84
+ chiildren:
85
+ - {fileID: -913529443162459245}
86
+ - {fileID: -7442606293373845013}
87
+ enabled: 1
88
+ showDeleteButton: 0
89
+ rect:
90
+ serializedVersion: 2
91
+ x: 0
92
+ y: 0
93
+ width: 200
94
+ height: 37
95
+ deleteRect:
96
+ serializedVersion: 2
97
+ x: 0
98
+ y: 0
99
+ width: 0
100
+ height: 0
101
+ radiusMultiplier: 0.3
102
+ radius:
103
+ serializedVersion: 2
104
+ m_Curve:
105
+ - serializedVersion: 3
106
+ time: 0
107
+ value: 1
108
+ inSlope: 0
109
+ outSlope: 0
110
+ tangentMode: 0
111
+ weightedMode: 0
112
+ inWeight: 0.33333334
113
+ outWeight: 0.33333334
114
+ - serializedVersion: 3
115
+ time: 1
116
+ value: 0
117
+ inSlope: -1
118
+ outSlope: -1
119
+ tangentMode: 0
120
+ weightedMode: 0
121
+ inWeight: 0.33333334
122
+ outWeight: 0.33333334
123
+ m_PreInfinity: 2
124
+ m_PostInfinity: 2
125
+ m_RotationOrder: 4
126
+ length: 25
127
+ number: 1
128
+ randomness: 0.048
129
+ originAttraction: 0.099
130
+ resolution: 1.5
131
+ rootShape:
132
+ serializedVersion: 2
133
+ m_Curve:
134
+ - serializedVersion: 3
135
+ time: 0
136
+ value: 1
137
+ inSlope: -2
138
+ outSlope: -2
139
+ tangentMode: 0
140
+ weightedMode: 0
141
+ inWeight: 0.33333334
142
+ outWeight: 0.33333334
143
+ - serializedVersion: 3
144
+ time: 1
145
+ value: 0
146
+ inSlope: 0
147
+ outSlope: 0
148
+ tangentMode: 0
149
+ weightedMode: 0
150
+ inWeight: 0.33333334
151
+ outWeight: 0.33333334
152
+ m_PreInfinity: 2
153
+ m_PostInfinity: 2
154
+ m_RotationOrder: 4
155
+ rootRadius: 0.25
156
+ rootInnerRadius: 0.2
157
+ rootHeight: 1
158
+ rootResolution: 3
159
+ flareNumber: 5
160
+ spinAmount: 0.1
161
+ displacementStrength: 1
162
+ displacementSize: 2.5
163
+ heightOffset: 0.5
164
+ --- !u!114 &-7442606293373845013
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: 33897084c7891e54eb6df4c02cb4118d, type: 3}
174
+ m_Name: Branch
175
+ m_EditorClassIdentifier:
176
+ seed: 2318
177
+ id: -713379187
178
+ parent: {fileID: -7804732339776450690}
179
+ chiildren: []
180
+ enabled: 1
181
+ showDeleteButton: 1
182
+ rect:
183
+ serializedVersion: 2
184
+ x: 30
185
+ y: 136
186
+ width: 200
187
+ height: 37
188
+ deleteRect:
189
+ serializedVersion: 2
190
+ x: 200
191
+ y: 145
192
+ width: 18
193
+ height: 18
194
+ length: 1.22
195
+ lengthCurve:
196
+ serializedVersion: 2
197
+ m_Curve:
198
+ - serializedVersion: 3
199
+ time: 0.0041656494
200
+ value: 0.375
201
+ inSlope: 1
202
+ outSlope: 1
203
+ tangentMode: 0
204
+ weightedMode: 0
205
+ inWeight: 0.33333334
206
+ outWeight: 0.33333334
207
+ - serializedVersion: 3
208
+ time: 1
209
+ value: 1
210
+ inSlope: 1
211
+ outSlope: 1
212
+ tangentMode: 0
213
+ weightedMode: 0
214
+ inWeight: 0.33333334
215
+ outWeight: 0.33333334
216
+ m_PreInfinity: 2
217
+ m_PostInfinity: 2
218
+ m_RotationOrder: 4
219
+ resolution: 5.56
220
+ number: 45
221
+ splitProba: 0.07
222
+ angle: 0.98
223
+ shape:
224
+ serializedVersion: 2
225
+ m_Curve:
226
+ - serializedVersion: 3
227
+ time: 0
228
+ value: 1
229
+ inSlope: 0
230
+ outSlope: 0
231
+ tangentMode: 0
232
+ weightedMode: 0
233
+ inWeight: 0.33333334
234
+ outWeight: 0.33333334
235
+ - serializedVersion: 3
236
+ time: 0.9458313
237
+ value: 0.69104004
238
+ inSlope: -0.4994362
239
+ outSlope: -0.4994362
240
+ tangentMode: 0
241
+ weightedMode: 0
242
+ inWeight: 0.1497779
243
+ outWeight: 0.33333334
244
+ m_PreInfinity: 2
245
+ m_PostInfinity: 2
246
+ m_RotationOrder: 4
247
+ splitProbaCurve:
248
+ serializedVersion: 2
249
+ m_Curve:
250
+ - serializedVersion: 3
251
+ time: 0
252
+ value: 1
253
+ inSlope: 0
254
+ outSlope: 0
255
+ tangentMode: 0
256
+ weightedMode: 0
257
+ inWeight: 0.33333334
258
+ outWeight: 0.33333334
259
+ - serializedVersion: 3
260
+ time: 1
261
+ value: 1
262
+ inSlope: 0
263
+ outSlope: 0
264
+ tangentMode: 0
265
+ weightedMode: 0
266
+ inWeight: 0.33333334
267
+ outWeight: 0.33333334
268
+ m_PreInfinity: 2
269
+ m_PostInfinity: 2
270
+ m_RotationOrder: 4
271
+ radius: 0.058
272
+ randomness: 0.234
273
+ upAttraction: 0.7
274
+ start: 0.044
275
+ gravityStrength: 0.1
276
+ --- !u!114 &-5292009550518650842
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: 85d8cd2303af54543a4524493d539ae8, type: 3}
286
+ m_Name: Leaves
287
+ m_EditorClassIdentifier:
288
+ seed: 5433
289
+ id: 1898108357
290
+ parent: {fileID: -913529443162459245}
291
+ chiildren: []
292
+ enabled: 1
293
+ showDeleteButton: 1
294
+ rect:
295
+ serializedVersion: 2
296
+ x: 60
297
+ y: 68
298
+ width: 200
299
+ height: 37
300
+ deleteRect:
301
+ serializedVersion: 2
302
+ x: 230
303
+ y: 77
304
+ width: 18
305
+ height: 18
306
+ leafType: 4
307
+ number: 341
308
+ customLeafMesh: {fileID: 0}
309
+ maxRadius: 0.25
310
+ size: 2.13
311
+ overrideNormals: 1
312
+ minWeight: 0.2
313
+ maxWeight: 0.5
314
+ length: 2
315
+ lengthCurve:
316
+ serializedVersion: 2
317
+ m_Curve:
318
+ - serializedVersion: 3
319
+ time: 0
320
+ value: 1
321
+ inSlope: 0
322
+ outSlope: -0.5
323
+ tangentMode: 0
324
+ weightedMode: 0
325
+ inWeight: 0.33333334
326
+ outWeight: 0.33333334
327
+ - serializedVersion: 3
328
+ time: 1
329
+ value: 0.5
330
+ inSlope: -0.5
331
+ outSlope: 0
332
+ tangentMode: 0
333
+ weightedMode: 0
334
+ inWeight: 0.33333334
335
+ outWeight: 0.33333334
336
+ m_PreInfinity: 2
337
+ m_PostInfinity: 2
338
+ m_RotationOrder: 4
339
+ uLoops: 2
340
+ resolution: 1
341
+ gravityStrength: 1
342
+ --- !u!114 &-913529443162459245
343
+ MonoBehaviour:
344
+ m_ObjectHideFlags: 0
345
+ m_CorrespondingSourceObject: {fileID: 0}
346
+ m_PrefabInstance: {fileID: 0}
347
+ m_PrefabAsset: {fileID: 0}
348
+ m_GameObject: {fileID: 0}
349
+ m_Enabled: 1
350
+ m_EditorHideFlags: 0
351
+ m_Script: {fileID: 11500000, guid: 33897084c7891e54eb6df4c02cb4118d, type: 3}
352
+ m_Name: Branch
353
+ m_EditorClassIdentifier:
354
+ seed: 2854
355
+ id: 200320159
356
+ parent: {fileID: -7804732339776450690}
357
+ chiildren:
358
+ - {fileID: -5292009550518650842}
359
+ - {fileID: -8863865481013532170}
360
+ enabled: 1
361
+ showDeleteButton: 1
362
+ rect:
363
+ serializedVersion: 2
364
+ x: 30
365
+ y: 34
366
+ width: 200
367
+ height: 37
368
+ deleteRect:
369
+ serializedVersion: 2
370
+ x: 200
371
+ y: 43
372
+ width: 18
373
+ height: 18
374
+ length: 6.13
375
+ lengthCurve:
376
+ serializedVersion: 2
377
+ m_Curve:
378
+ - serializedVersion: 3
379
+ time: 0.0041656494
380
+ value: 0.15625
381
+ inSlope: 0.19724064
382
+ outSlope: 0.19724064
383
+ tangentMode: 0
384
+ weightedMode: 0
385
+ inWeight: 0.33333334
386
+ outWeight: 0.33333334
387
+ - serializedVersion: 3
388
+ time: 0.51717657
389
+ value: 0.68759966
390
+ inSlope: 0.5796552
391
+ outSlope: 0.5796552
392
+ tangentMode: 0
393
+ weightedMode: 0
394
+ inWeight: 0.33333334
395
+ outWeight: 0.33333334
396
+ - serializedVersion: 3
397
+ time: 0.9293424
398
+ value: 0.6264081
399
+ inSlope: -0.606534
400
+ outSlope: -0.606534
401
+ tangentMode: 0
402
+ weightedMode: 0
403
+ inWeight: 0.33333334
404
+ outWeight: 0.33333334
405
+ m_PreInfinity: 2
406
+ m_PostInfinity: 2
407
+ m_RotationOrder: 4
408
+ resolution: 1.36
409
+ number: 31
410
+ splitProba: 0.6
411
+ angle: 0.78
412
+ shape:
413
+ serializedVersion: 2
414
+ m_Curve:
415
+ - serializedVersion: 3
416
+ time: 0
417
+ value: 1
418
+ inSlope: 0
419
+ outSlope: -1
420
+ tangentMode: 0
421
+ weightedMode: 0
422
+ inWeight: 0.33333334
423
+ outWeight: 0.33333334
424
+ - serializedVersion: 3
425
+ time: 1
426
+ value: 0
427
+ inSlope: -1
428
+ outSlope: 0
429
+ tangentMode: 0
430
+ weightedMode: 0
431
+ inWeight: 0.33333334
432
+ outWeight: 0.33333334
433
+ m_PreInfinity: 2
434
+ m_PostInfinity: 2
435
+ m_RotationOrder: 4
436
+ splitProbaCurve:
437
+ serializedVersion: 2
438
+ m_Curve:
439
+ - serializedVersion: 3
440
+ time: 0
441
+ value: 0.5
442
+ inSlope: 0.031151384
443
+ outSlope: 0.031151384
444
+ tangentMode: 0
445
+ weightedMode: 0
446
+ inWeight: 0.33333334
447
+ outWeight: 0.33333334
448
+ - serializedVersion: 3
449
+ time: 1
450
+ value: 0.9961319
451
+ inSlope: 1.583612
452
+ outSlope: 1.583612
453
+ tangentMode: 0
454
+ weightedMode: 0
455
+ inWeight: 0.33333334
456
+ outWeight: 0.33333334
457
+ m_PreInfinity: 2
458
+ m_PostInfinity: 2
459
+ m_RotationOrder: 4
460
+ radius: 0.678
461
+ randomness: 0.328
462
+ upAttraction: 0
463
+ start: 0.393
464
+ gravityStrength: 1.09
465
+ --- !u!114 &11400000
466
+ MonoBehaviour:
467
+ m_ObjectHideFlags: 0
468
+ m_CorrespondingSourceObject: {fileID: 0}
469
+ m_PrefabInstance: {fileID: 0}
470
+ m_PrefabAsset: {fileID: 0}
471
+ m_GameObject: {fileID: 0}
472
+ m_Enabled: 1
473
+ m_EditorHideFlags: 0
474
+ m_Script: {fileID: 11500000, guid: 58c179839cc7e1e4bb7fdb33c0866483, type: 3}
475
+ m_Name: Eastern Pine
476
+ m_EditorClassIdentifier:
477
+ treeFunctions:
478
+ - {fileID: -7804732339776450690}
479
+ - {fileID: -913529443162459245}
480
+ - {fileID: -5292009550518650842}
481
+ - {fileID: -8863865481013532170}
482
+ - {fileID: -7442606293373845013}
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 228be7ca90f082149aec2f3a30661068
3
+ NativeFormatImporter:
4
+ externalObjects: {}
5
+ mainObjectFileID: 11400000
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant: