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,478 @@
1
+ %YAML 1.1
2
+ %TAG !u! tag:unity3d.com,2011:
3
+ --- !u!114 &-8538932332794794600
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: c81997976e05f6e45819b5dda33c654d, type: 3}
13
+ m_Name: Roots
14
+ m_EditorClassIdentifier:
15
+ seed: 2904
16
+ id: -1541031477
17
+ parent: {fileID: 6854771514275161255}
18
+ chiildren: []
19
+ enabled: 1
20
+ showDeleteButton: 1
21
+ rect:
22
+ serializedVersion: 2
23
+ x: 30
24
+ y: 136
25
+ width: 200
26
+ height: 37
27
+ deleteRect:
28
+ serializedVersion: 2
29
+ x: 200
30
+ y: 145
31
+ width: 18
32
+ height: 18
33
+ length: 1.5
34
+ resolution: 7.83
35
+ number: 15
36
+ splitProba: 0.308
37
+ angle: 0.315
38
+ shape:
39
+ serializedVersion: 2
40
+ m_Curve:
41
+ - serializedVersion: 3
42
+ time: 0
43
+ value: 1
44
+ inSlope: 0
45
+ outSlope: 0
46
+ tangentMode: 0
47
+ weightedMode: 0
48
+ inWeight: 0
49
+ outWeight: 0
50
+ - serializedVersion: 3
51
+ time: 0.9791565
52
+ value: 0.51885986
53
+ inSlope: 0
54
+ outSlope: 0
55
+ tangentMode: 0
56
+ weightedMode: 0
57
+ inWeight: 0
58
+ outWeight: 0
59
+ m_PreInfinity: 2
60
+ m_PostInfinity: 2
61
+ m_RotationOrder: 4
62
+ splitProbaCurve:
63
+ serializedVersion: 2
64
+ m_Curve:
65
+ - serializedVersion: 3
66
+ time: 0
67
+ value: 0.5
68
+ inSlope: 0
69
+ outSlope: 0.5
70
+ tangentMode: 0
71
+ weightedMode: 0
72
+ inWeight: 0
73
+ outWeight: 0
74
+ - serializedVersion: 3
75
+ time: 1
76
+ value: 1
77
+ inSlope: 0.5
78
+ outSlope: 0
79
+ tangentMode: 0
80
+ weightedMode: 0
81
+ inWeight: 0
82
+ outWeight: 0
83
+ m_PreInfinity: 2
84
+ m_PostInfinity: 2
85
+ m_RotationOrder: 4
86
+ radius: 0.501
87
+ randomness: 0.058
88
+ start: 0.3
89
+ end: 1.02
90
+ groundHeight: 0
91
+ attractionStrength: 0.87
92
+ --- !u!114 &-8265212677440952957
93
+ MonoBehaviour:
94
+ m_ObjectHideFlags: 0
95
+ m_CorrespondingSourceObject: {fileID: 0}
96
+ m_PrefabInstance: {fileID: 0}
97
+ m_PrefabAsset: {fileID: 0}
98
+ m_GameObject: {fileID: 0}
99
+ m_Enabled: 1
100
+ m_EditorHideFlags: 0
101
+ m_Script: {fileID: 11500000, guid: 33897084c7891e54eb6df4c02cb4118d, type: 3}
102
+ m_Name: Branch
103
+ m_EditorClassIdentifier:
104
+ seed: 1063
105
+ id: -529373926
106
+ parent: {fileID: 6854771514275161255}
107
+ chiildren: []
108
+ enabled: 1
109
+ showDeleteButton: 1
110
+ rect:
111
+ serializedVersion: 2
112
+ x: 30
113
+ y: 102
114
+ width: 200
115
+ height: 37
116
+ deleteRect:
117
+ serializedVersion: 2
118
+ x: 200
119
+ y: 111
120
+ width: 18
121
+ height: 18
122
+ length: 0.87
123
+ lengthCurve:
124
+ serializedVersion: 2
125
+ m_Curve:
126
+ - serializedVersion: 3
127
+ time: -0.017787933
128
+ value: 0.3977661
129
+ inSlope: 2
130
+ outSlope: 2
131
+ tangentMode: 0
132
+ weightedMode: 0
133
+ inWeight: 0.33333334
134
+ outWeight: 0.33333334
135
+ - serializedVersion: 3
136
+ time: 1
137
+ value: 1
138
+ inSlope: 0
139
+ outSlope: 0
140
+ tangentMode: 0
141
+ weightedMode: 0
142
+ inWeight: 0.33333334
143
+ outWeight: 0.33333334
144
+ m_PreInfinity: 2
145
+ m_PostInfinity: 2
146
+ m_RotationOrder: 4
147
+ resolution: 5.83
148
+ number: 66
149
+ splitProba: 0.2
150
+ angle: 1.18
151
+ shape:
152
+ serializedVersion: 2
153
+ m_Curve:
154
+ - serializedVersion: 3
155
+ time: 0
156
+ value: 1
157
+ inSlope: 0
158
+ outSlope: 0
159
+ tangentMode: 0
160
+ weightedMode: 0
161
+ inWeight: 0.33333334
162
+ outWeight: 0.33333334
163
+ - serializedVersion: 3
164
+ time: 0.8708191
165
+ value: 0.5282898
166
+ inSlope: -1
167
+ outSlope: -1
168
+ tangentMode: 0
169
+ weightedMode: 0
170
+ inWeight: 0.33333334
171
+ outWeight: 0.33333334
172
+ m_PreInfinity: 2
173
+ m_PostInfinity: 2
174
+ m_RotationOrder: 4
175
+ splitProbaCurve:
176
+ serializedVersion: 2
177
+ m_Curve:
178
+ - serializedVersion: 3
179
+ time: 0
180
+ value: 0.5
181
+ inSlope: 0
182
+ outSlope: 0.5
183
+ tangentMode: 0
184
+ weightedMode: 0
185
+ inWeight: 0.33333334
186
+ outWeight: 0.33333334
187
+ - serializedVersion: 3
188
+ time: 1
189
+ value: 1
190
+ inSlope: 0.5
191
+ outSlope: 0
192
+ tangentMode: 0
193
+ weightedMode: 0
194
+ inWeight: 0.33333334
195
+ outWeight: 0.33333334
196
+ m_PreInfinity: 2
197
+ m_PostInfinity: 2
198
+ m_RotationOrder: 4
199
+ radius: 0.11
200
+ randomness: 0.291
201
+ upAttraction: 0.7
202
+ start: 0.061
203
+ gravityStrength: 0.1
204
+ --- !u!114 &11400000
205
+ MonoBehaviour:
206
+ m_ObjectHideFlags: 0
207
+ m_CorrespondingSourceObject: {fileID: 0}
208
+ m_PrefabInstance: {fileID: 0}
209
+ m_PrefabAsset: {fileID: 0}
210
+ m_GameObject: {fileID: 0}
211
+ m_Enabled: 1
212
+ m_EditorHideFlags: 0
213
+ m_Script: {fileID: 11500000, guid: 58c179839cc7e1e4bb7fdb33c0866483, type: 3}
214
+ m_Name: Ponderossa Pine
215
+ m_EditorClassIdentifier:
216
+ treeFunctions:
217
+ - {fileID: 6854771514275161255}
218
+ - {fileID: 7170723135271141759}
219
+ - {fileID: 2834342828305941860}
220
+ - {fileID: -8265212677440952957}
221
+ - {fileID: -8538932332794794600}
222
+ --- !u!114 &2834342828305941860
223
+ MonoBehaviour:
224
+ m_ObjectHideFlags: 0
225
+ m_CorrespondingSourceObject: {fileID: 0}
226
+ m_PrefabInstance: {fileID: 0}
227
+ m_PrefabAsset: {fileID: 0}
228
+ m_GameObject: {fileID: 0}
229
+ m_Enabled: 1
230
+ m_EditorHideFlags: 0
231
+ m_Script: {fileID: 11500000, guid: 85d8cd2303af54543a4524493d539ae8, type: 3}
232
+ m_Name: Leaves
233
+ m_EditorClassIdentifier:
234
+ seed: 3563
235
+ id: -2125759115
236
+ parent: {fileID: 7170723135271141759}
237
+ chiildren: []
238
+ enabled: 1
239
+ showDeleteButton: 1
240
+ rect:
241
+ serializedVersion: 2
242
+ x: 60
243
+ y: 68
244
+ width: 200
245
+ height: 37
246
+ deleteRect:
247
+ serializedVersion: 2
248
+ x: 230
249
+ y: 77
250
+ width: 18
251
+ height: 18
252
+ leafType: 4
253
+ number: 904
254
+ customLeafMesh: {fileID: 0}
255
+ maxRadius: 0.202
256
+ size: 2
257
+ overrideNormals: 0
258
+ minWeight: -0.67427385
259
+ maxWeight: 0.593361
260
+ length: 0
261
+ lengthCurve:
262
+ serializedVersion: 2
263
+ m_Curve: []
264
+ m_PreInfinity: 2
265
+ m_PostInfinity: 2
266
+ m_RotationOrder: 4
267
+ uLoops: 0
268
+ resolution: 0
269
+ gravityStrength: 0
270
+ --- !u!114 &6854771514275161255
271
+ MonoBehaviour:
272
+ m_ObjectHideFlags: 0
273
+ m_CorrespondingSourceObject: {fileID: 0}
274
+ m_PrefabInstance: {fileID: 0}
275
+ m_PrefabAsset: {fileID: 0}
276
+ m_GameObject: {fileID: 0}
277
+ m_Enabled: 1
278
+ m_EditorHideFlags: 0
279
+ m_Script: {fileID: 11500000, guid: 156ba2a5f4fc7bf47b493b7cbf9c7f19, type: 3}
280
+ m_Name: Trunk
281
+ m_EditorClassIdentifier:
282
+ seed: 598
283
+ id: 281478457
284
+ parent: {fileID: 0}
285
+ chiildren:
286
+ - {fileID: 7170723135271141759}
287
+ - {fileID: -8265212677440952957}
288
+ - {fileID: -8538932332794794600}
289
+ enabled: 1
290
+ showDeleteButton: 0
291
+ rect:
292
+ serializedVersion: 2
293
+ x: 0
294
+ y: 0
295
+ width: 200
296
+ height: 37
297
+ deleteRect:
298
+ serializedVersion: 2
299
+ x: 0
300
+ y: 0
301
+ width: 0
302
+ height: 0
303
+ radiusMultiplier: 0.33
304
+ radius:
305
+ serializedVersion: 2
306
+ m_Curve:
307
+ - serializedVersion: 3
308
+ time: 0
309
+ value: 1
310
+ inSlope: 0
311
+ outSlope: 0
312
+ tangentMode: 0
313
+ weightedMode: 0
314
+ inWeight: 0.33333334
315
+ outWeight: 0.33333334
316
+ - serializedVersion: 3
317
+ time: 1
318
+ value: 0
319
+ inSlope: -1
320
+ outSlope: -1
321
+ tangentMode: 0
322
+ weightedMode: 0
323
+ inWeight: 0.33333334
324
+ outWeight: 0.33333334
325
+ m_PreInfinity: 2
326
+ m_PostInfinity: 2
327
+ m_RotationOrder: 4
328
+ length: 30
329
+ number: 1
330
+ randomness: 0
331
+ originAttraction: 0.643
332
+ resolution: 1.5
333
+ rootShape:
334
+ serializedVersion: 2
335
+ m_Curve:
336
+ - serializedVersion: 3
337
+ time: 0
338
+ value: 1
339
+ inSlope: -2
340
+ outSlope: -2
341
+ tangentMode: 0
342
+ weightedMode: 0
343
+ inWeight: 0.33333334
344
+ outWeight: 0.33333334
345
+ - serializedVersion: 3
346
+ time: 1
347
+ value: 0
348
+ inSlope: 0
349
+ outSlope: 0
350
+ tangentMode: 0
351
+ weightedMode: 0
352
+ inWeight: 0.33333334
353
+ outWeight: 0.33333334
354
+ m_PreInfinity: 2
355
+ m_PostInfinity: 2
356
+ m_RotationOrder: 4
357
+ rootRadius: 0.75
358
+ rootInnerRadius: 0.212
359
+ rootHeight: 1.81
360
+ rootResolution: 3.84
361
+ flareNumber: 6
362
+ spinAmount: 0
363
+ displacementStrength: -0.38
364
+ displacementSize: 0.88
365
+ heightOffset: 0.5
366
+ --- !u!114 &7170723135271141759
367
+ MonoBehaviour:
368
+ m_ObjectHideFlags: 0
369
+ m_CorrespondingSourceObject: {fileID: 0}
370
+ m_PrefabInstance: {fileID: 0}
371
+ m_PrefabAsset: {fileID: 0}
372
+ m_GameObject: {fileID: 0}
373
+ m_Enabled: 1
374
+ m_EditorHideFlags: 0
375
+ m_Script: {fileID: 11500000, guid: 33897084c7891e54eb6df4c02cb4118d, type: 3}
376
+ m_Name: Branch
377
+ m_EditorClassIdentifier:
378
+ seed: 1271
379
+ id: 1149708779
380
+ parent: {fileID: 6854771514275161255}
381
+ chiildren:
382
+ - {fileID: 2834342828305941860}
383
+ enabled: 1
384
+ showDeleteButton: 1
385
+ rect:
386
+ serializedVersion: 2
387
+ x: 30
388
+ y: 34
389
+ width: 200
390
+ height: 37
391
+ deleteRect:
392
+ serializedVersion: 2
393
+ x: 200
394
+ y: 43
395
+ width: 18
396
+ height: 18
397
+ length: 5.1
398
+ lengthCurve:
399
+ serializedVersion: 2
400
+ m_Curve:
401
+ - serializedVersion: 3
402
+ time: 0.0008590203
403
+ value: 0.31512555
404
+ inSlope: 0.90036774
405
+ outSlope: 0.90036774
406
+ tangentMode: 0
407
+ weightedMode: 0
408
+ inWeight: 0.33333334
409
+ outWeight: 0.33333334
410
+ - serializedVersion: 3
411
+ time: 1.014536
412
+ value: 0.29139578
413
+ inSlope: -0.7074479
414
+ outSlope: -0.7074479
415
+ tangentMode: 0
416
+ weightedMode: 0
417
+ inWeight: 0.33333334
418
+ outWeight: 0.33333334
419
+ m_PreInfinity: 2
420
+ m_PostInfinity: 2
421
+ m_RotationOrder: 0
422
+ resolution: 1
423
+ number: 114
424
+ splitProba: 0.23
425
+ angle: 1.05
426
+ shape:
427
+ serializedVersion: 2
428
+ m_Curve:
429
+ - serializedVersion: 3
430
+ time: 0
431
+ value: 1
432
+ inSlope: 0
433
+ outSlope: -1
434
+ tangentMode: 0
435
+ weightedMode: 0
436
+ inWeight: 0.33333334
437
+ outWeight: 0.33333334
438
+ - serializedVersion: 3
439
+ time: 1
440
+ value: 0
441
+ inSlope: -1
442
+ outSlope: 0
443
+ tangentMode: 0
444
+ weightedMode: 0
445
+ inWeight: 0.33333334
446
+ outWeight: 0.33333334
447
+ m_PreInfinity: 2
448
+ m_PostInfinity: 2
449
+ m_RotationOrder: 4
450
+ splitProbaCurve:
451
+ serializedVersion: 2
452
+ m_Curve:
453
+ - serializedVersion: 3
454
+ time: 0
455
+ value: 0.5
456
+ inSlope: 0
457
+ outSlope: 0.5
458
+ tangentMode: 0
459
+ weightedMode: 0
460
+ inWeight: 0.33333334
461
+ outWeight: 0.33333334
462
+ - serializedVersion: 3
463
+ time: 1
464
+ value: 1
465
+ inSlope: 0.5
466
+ outSlope: 0
467
+ tangentMode: 0
468
+ weightedMode: 0
469
+ inWeight: 0.33333334
470
+ outWeight: 0.33333334
471
+ m_PreInfinity: 2
472
+ m_PostInfinity: 2
473
+ m_RotationOrder: 4
474
+ radius: 0.288
475
+ randomness: 0.17
476
+ upAttraction: 0.229
477
+ start: 0.324
478
+ gravityStrength: 1.05
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 9eb48564353fb7b4a9488eebe2fe2584
3
+ NativeFormatImporter:
4
+ externalObjects: {}
5
+ mainObjectFileID: 11400000
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant: