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,500 @@
1
+ %YAML 1.1
2
+ %TAG !u! tag:unity3d.com,2011:
3
+ --- !u!114 &-2701624132641174716
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: 3041
16
+ id: 1012331248
17
+ parent: {fileID: 5034091255030050022}
18
+ chiildren: []
19
+ enabled: 1
20
+ showDeleteButton: 1
21
+ rect:
22
+ serializedVersion: 2
23
+ x: 90
24
+ y: 102
25
+ width: 200
26
+ height: 37
27
+ deleteRect:
28
+ serializedVersion: 2
29
+ x: 260
30
+ y: 111
31
+ width: 18
32
+ height: 18
33
+ leafType: 5
34
+ number: 61
35
+ customLeafMesh: {fileID: 0}
36
+ maxRadius: 0.25
37
+ size: 2.17
38
+ overrideNormals: 0
39
+ minWeight: -0.9253112
40
+ maxWeight: 0.37883818
41
+ length: 3.82
42
+ lengthCurve:
43
+ serializedVersion: 2
44
+ m_Curve: []
45
+ m_PreInfinity: 2
46
+ m_PostInfinity: 2
47
+ m_RotationOrder: 4
48
+ uLoops: 3
49
+ resolution: 2.5
50
+ gravityStrength: 0.51
51
+ --- !u!114 &11400000
52
+ MonoBehaviour:
53
+ m_ObjectHideFlags: 0
54
+ m_CorrespondingSourceObject: {fileID: 0}
55
+ m_PrefabInstance: {fileID: 0}
56
+ m_PrefabAsset: {fileID: 0}
57
+ m_GameObject: {fileID: 0}
58
+ m_Enabled: 1
59
+ m_EditorHideFlags: 0
60
+ m_Script: {fileID: 11500000, guid: 58c179839cc7e1e4bb7fdb33c0866483, type: 3}
61
+ m_Name: Palm
62
+ m_EditorClassIdentifier:
63
+ treeFunctions:
64
+ - {fileID: 8099976426881714061}
65
+ - {fileID: 4809237348176265460}
66
+ - {fileID: 5034091255030050022}
67
+ - {fileID: -2701624132641174716}
68
+ - {fileID: 8417813452391419470}
69
+ --- !u!114 &4809237348176265460
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: b0a7c716bf67b2c4ca1923c770d36116, type: 3}
79
+ m_Name: Grow
80
+ m_EditorClassIdentifier:
81
+ seed: 5180
82
+ id: 1573974368
83
+ parent: {fileID: 8099976426881714061}
84
+ chiildren:
85
+ - {fileID: 5034091255030050022}
86
+ enabled: 1
87
+ showDeleteButton: 1
88
+ rect:
89
+ serializedVersion: 2
90
+ x: 30
91
+ y: 34
92
+ width: 200
93
+ height: 37
94
+ deleteRect:
95
+ serializedVersion: 2
96
+ x: 200
97
+ y: 43
98
+ width: 18
99
+ height: 18
100
+ length: 3
101
+ lengthCurve:
102
+ serializedVersion: 2
103
+ m_Curve:
104
+ - serializedVersion: 3
105
+ time: 0
106
+ value: 1
107
+ inSlope: 0
108
+ outSlope: -0.19999999
109
+ tangentMode: 0
110
+ weightedMode: 0
111
+ inWeight: 0.33333334
112
+ outWeight: 0.33333334
113
+ - serializedVersion: 3
114
+ time: 1
115
+ value: 0.8
116
+ inSlope: -0.19999999
117
+ outSlope: 0
118
+ tangentMode: 0
119
+ weightedMode: 0
120
+ inWeight: 0.33333334
121
+ outWeight: 0.33333334
122
+ m_PreInfinity: 2
123
+ m_PostInfinity: 2
124
+ m_RotationOrder: 4
125
+ resolution: 10.65
126
+ splitProba: 0
127
+ splitAngle: 0.5
128
+ maxSplits: 2
129
+ radius:
130
+ serializedVersion: 2
131
+ m_Curve:
132
+ - serializedVersion: 3
133
+ time: 0
134
+ value: 1
135
+ inSlope: 0
136
+ outSlope: 0
137
+ tangentMode: 0
138
+ weightedMode: 0
139
+ inWeight: 0.33333334
140
+ outWeight: 0.33333334
141
+ - serializedVersion: 3
142
+ time: 0.96643066
143
+ value: 0.5602112
144
+ inSlope: -0.5
145
+ outSlope: -0.5
146
+ tangentMode: 0
147
+ weightedMode: 0
148
+ inWeight: 0.33333334
149
+ outWeight: 0.33333334
150
+ m_PreInfinity: 2
151
+ m_PostInfinity: 2
152
+ m_RotationOrder: 4
153
+ splitProbaCurve:
154
+ serializedVersion: 2
155
+ m_Curve:
156
+ - serializedVersion: 3
157
+ time: 0
158
+ value: 0.5
159
+ inSlope: 0
160
+ outSlope: 0.5
161
+ tangentMode: 0
162
+ weightedMode: 0
163
+ inWeight: 0.33333334
164
+ outWeight: 0.33333334
165
+ - serializedVersion: 3
166
+ time: 1
167
+ value: 1
168
+ inSlope: 0.5
169
+ outSlope: 0
170
+ tangentMode: 0
171
+ weightedMode: 0
172
+ inWeight: 0.33333334
173
+ outWeight: 0.33333334
174
+ m_PreInfinity: 2
175
+ m_PostInfinity: 2
176
+ m_RotationOrder: 4
177
+ splitRadius: 0.8
178
+ randomness: 0.027
179
+ upAttraction: 0.5
180
+ gravityStrength: 0.1
181
+ --- !u!114 &5034091255030050022
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: 33897084c7891e54eb6df4c02cb4118d, type: 3}
191
+ m_Name: Branch
192
+ m_EditorClassIdentifier:
193
+ seed: 6958
194
+ id: 702065156
195
+ parent: {fileID: 4809237348176265460}
196
+ chiildren:
197
+ - {fileID: -2701624132641174716}
198
+ enabled: 1
199
+ showDeleteButton: 1
200
+ rect:
201
+ serializedVersion: 2
202
+ x: 60
203
+ y: 68
204
+ width: 200
205
+ height: 37
206
+ deleteRect:
207
+ serializedVersion: 2
208
+ x: 230
209
+ y: 77
210
+ width: 18
211
+ height: 18
212
+ length: 0.12
213
+ lengthCurve:
214
+ serializedVersion: 2
215
+ m_Curve:
216
+ - serializedVersion: 3
217
+ time: 0
218
+ value: 1
219
+ inSlope: 0
220
+ outSlope: -0.19999999
221
+ tangentMode: 0
222
+ weightedMode: 0
223
+ inWeight: 0.33333334
224
+ outWeight: 0.33333334
225
+ - serializedVersion: 3
226
+ time: 1
227
+ value: 0.8
228
+ inSlope: -0.19999999
229
+ outSlope: 0
230
+ tangentMode: 0
231
+ weightedMode: 0
232
+ inWeight: 0.33333334
233
+ outWeight: 0.33333334
234
+ m_PreInfinity: 2
235
+ m_PostInfinity: 2
236
+ m_RotationOrder: 4
237
+ resolution: 1
238
+ number: 165
239
+ splitProba: 0.2
240
+ angle: 0.56
241
+ shape:
242
+ serializedVersion: 2
243
+ m_Curve:
244
+ - serializedVersion: 3
245
+ time: 0
246
+ value: 1
247
+ inSlope: 0
248
+ outSlope: -1
249
+ tangentMode: 0
250
+ weightedMode: 0
251
+ inWeight: 0.33333334
252
+ outWeight: 0.33333334
253
+ - serializedVersion: 3
254
+ time: 1
255
+ value: 0
256
+ inSlope: -1
257
+ outSlope: 0
258
+ tangentMode: 0
259
+ weightedMode: 0
260
+ inWeight: 0.33333334
261
+ outWeight: 0.33333334
262
+ m_PreInfinity: 2
263
+ m_PostInfinity: 2
264
+ m_RotationOrder: 4
265
+ splitProbaCurve:
266
+ serializedVersion: 2
267
+ m_Curve:
268
+ - serializedVersion: 3
269
+ time: 0
270
+ value: 0.5
271
+ inSlope: 0
272
+ outSlope: 0.5
273
+ tangentMode: 0
274
+ weightedMode: 0
275
+ inWeight: 0.33333334
276
+ outWeight: 0.33333334
277
+ - serializedVersion: 3
278
+ time: 1
279
+ value: 1
280
+ inSlope: 0.5
281
+ outSlope: 0
282
+ tangentMode: 0
283
+ weightedMode: 0
284
+ inWeight: 0.33333334
285
+ outWeight: 0.33333334
286
+ m_PreInfinity: 2
287
+ m_PostInfinity: 2
288
+ m_RotationOrder: 4
289
+ radius: 0.415
290
+ randomness: 0.3
291
+ upAttraction: 0.7
292
+ start: 0.2
293
+ gravityStrength: 0.1
294
+ --- !u!114 &8099976426881714061
295
+ MonoBehaviour:
296
+ m_ObjectHideFlags: 0
297
+ m_CorrespondingSourceObject: {fileID: 0}
298
+ m_PrefabInstance: {fileID: 0}
299
+ m_PrefabAsset: {fileID: 0}
300
+ m_GameObject: {fileID: 0}
301
+ m_Enabled: 1
302
+ m_EditorHideFlags: 0
303
+ m_Script: {fileID: 11500000, guid: 156ba2a5f4fc7bf47b493b7cbf9c7f19, type: 3}
304
+ m_Name: Trunk
305
+ m_EditorClassIdentifier:
306
+ seed: 3787
307
+ id: 139483156
308
+ parent: {fileID: 0}
309
+ chiildren:
310
+ - {fileID: 4809237348176265460}
311
+ - {fileID: 8417813452391419470}
312
+ enabled: 1
313
+ showDeleteButton: 0
314
+ rect:
315
+ serializedVersion: 2
316
+ x: 0
317
+ y: 0
318
+ width: 200
319
+ height: 37
320
+ deleteRect:
321
+ serializedVersion: 2
322
+ x: 0
323
+ y: 0
324
+ width: 0
325
+ height: 0
326
+ radiusMultiplier: 0.3
327
+ radius:
328
+ serializedVersion: 2
329
+ m_Curve:
330
+ - serializedVersion: 3
331
+ time: 0
332
+ value: 1
333
+ inSlope: -1.0429686
334
+ outSlope: -1.0429686
335
+ tangentMode: 0
336
+ weightedMode: 0
337
+ inWeight: 0.33333334
338
+ outWeight: 0.33333334
339
+ - serializedVersion: 3
340
+ time: 0.9721247
341
+ value: 0.5039699
342
+ inSlope: -0.5195113
343
+ outSlope: -0.5195113
344
+ tangentMode: 0
345
+ weightedMode: 0
346
+ inWeight: 0.33333334
347
+ outWeight: 0.33333334
348
+ m_PreInfinity: 2
349
+ m_PostInfinity: 2
350
+ m_RotationOrder: 4
351
+ length: 13.8
352
+ number: 1
353
+ randomness: 0.053
354
+ originAttraction: 0.009
355
+ resolution: 1.5
356
+ rootShape:
357
+ serializedVersion: 2
358
+ m_Curve:
359
+ - serializedVersion: 3
360
+ time: 0
361
+ value: 1
362
+ inSlope: -2
363
+ outSlope: -2
364
+ tangentMode: 0
365
+ weightedMode: 0
366
+ inWeight: 0.33333334
367
+ outWeight: 0.33333334
368
+ - serializedVersion: 3
369
+ time: 1
370
+ value: 0
371
+ inSlope: 0
372
+ outSlope: 0
373
+ tangentMode: 0
374
+ weightedMode: 0
375
+ inWeight: 0.33333334
376
+ outWeight: 0.33333334
377
+ m_PreInfinity: 2
378
+ m_PostInfinity: 2
379
+ m_RotationOrder: 4
380
+ rootRadius: 0.25
381
+ rootInnerRadius: 0
382
+ rootHeight: 1
383
+ rootResolution: 3
384
+ flareNumber: 4
385
+ spinAmount: 0.1
386
+ displacementStrength: 0.42
387
+ displacementSize: 3.03
388
+ heightOffset: 0.5
389
+ --- !u!114 &8417813452391419470
390
+ MonoBehaviour:
391
+ m_ObjectHideFlags: 0
392
+ m_CorrespondingSourceObject: {fileID: 0}
393
+ m_PrefabInstance: {fileID: 0}
394
+ m_PrefabAsset: {fileID: 0}
395
+ m_GameObject: {fileID: 0}
396
+ m_Enabled: 1
397
+ m_EditorHideFlags: 0
398
+ m_Script: {fileID: 11500000, guid: 33897084c7891e54eb6df4c02cb4118d, type: 3}
399
+ m_Name: Branch
400
+ m_EditorClassIdentifier:
401
+ seed: 6727
402
+ id: 1885493735
403
+ parent: {fileID: 8099976426881714061}
404
+ chiildren: []
405
+ enabled: 1
406
+ showDeleteButton: 1
407
+ rect:
408
+ serializedVersion: 2
409
+ x: 30
410
+ y: 136
411
+ width: 200
412
+ height: 37
413
+ deleteRect:
414
+ serializedVersion: 2
415
+ x: 200
416
+ y: 145
417
+ width: 18
418
+ height: 18
419
+ length: 0.09
420
+ lengthCurve:
421
+ serializedVersion: 2
422
+ m_Curve:
423
+ - serializedVersion: 3
424
+ time: 0
425
+ value: 1
426
+ inSlope: 0
427
+ outSlope: 0
428
+ tangentMode: 0
429
+ weightedMode: 0
430
+ inWeight: 0.33333334
431
+ outWeight: 0.33333334
432
+ - serializedVersion: 3
433
+ time: 0.9666748
434
+ value: 0.40000153
435
+ inSlope: 0
436
+ outSlope: 0
437
+ tangentMode: 0
438
+ weightedMode: 0
439
+ inWeight: 0.33333334
440
+ outWeight: 0.33333334
441
+ m_PreInfinity: 2
442
+ m_PostInfinity: 2
443
+ m_RotationOrder: 0
444
+ resolution: 0.94
445
+ number: 149
446
+ splitProba: 0
447
+ angle: 0.474
448
+ shape:
449
+ serializedVersion: 2
450
+ m_Curve:
451
+ - serializedVersion: 3
452
+ time: 0
453
+ value: 1
454
+ inSlope: 0
455
+ outSlope: 0
456
+ tangentMode: 0
457
+ weightedMode: 0
458
+ inWeight: 0.33333334
459
+ outWeight: 0.33333334
460
+ - serializedVersion: 3
461
+ time: 0.99584144
462
+ value: 0.3187485
463
+ inSlope: -0.63747764
464
+ outSlope: -0.63747764
465
+ tangentMode: 0
466
+ weightedMode: 0
467
+ inWeight: 0.33333334
468
+ outWeight: 0.33333334
469
+ m_PreInfinity: 2
470
+ m_PostInfinity: 2
471
+ m_RotationOrder: 0
472
+ splitProbaCurve:
473
+ serializedVersion: 2
474
+ m_Curve:
475
+ - serializedVersion: 3
476
+ time: 0
477
+ value: 0.5
478
+ inSlope: 0
479
+ outSlope: 0.5
480
+ tangentMode: 0
481
+ weightedMode: 0
482
+ inWeight: 0.33333334
483
+ outWeight: 0.33333334
484
+ - serializedVersion: 3
485
+ time: 1
486
+ value: 1
487
+ inSlope: 0.5
488
+ outSlope: 0
489
+ tangentMode: 0
490
+ weightedMode: 0
491
+ inWeight: 0.33333334
492
+ outWeight: 0.33333334
493
+ m_PreInfinity: 2
494
+ m_PostInfinity: 2
495
+ m_RotationOrder: 4
496
+ radius: 0.343
497
+ randomness: 0.225
498
+ upAttraction: 0.5
499
+ start: 0.008
500
+ gravityStrength: 0.1
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 7b47765fd1fd69446b0b265f9a3705ab
3
+ NativeFormatImporter:
4
+ externalObjects: {}
5
+ mainObjectFileID: 0
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant: