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,66 @@
1
+ using System.Collections;
2
+ using System.Collections.Generic;
3
+ using UnityEditor;
4
+ using UnityEngine;
5
+
6
+ namespace Mtree
7
+ {
8
+
9
+ [CanEditMultipleObjects]
10
+ [CustomEditor(typeof(TreeTemplate))]
11
+ public class TemplateEditor : Editor
12
+ {
13
+ TreeTemplate template;
14
+ int selectedFuntionIndex = 0;
15
+
16
+ private void OnEnable()
17
+ {
18
+ template = (TreeTemplate)target;
19
+ }
20
+
21
+ public override void OnInspectorGUI()
22
+ {
23
+ EditorGUIUtility.labelWidth = 135;
24
+ int functionCount = template.treeFunctions.Count;
25
+ int rectHeightMultiplier = TreeFunctionAsset.height + TreeFunctionAsset.margin;
26
+ int rectHeight = functionCount * rectHeightMultiplier; // get the height of the drawing window inside inspector
27
+ Event e = Event.current; // Get current event
28
+
29
+ int heighIndex = 0;
30
+ template.treeFunctions[0].UpdateRectRec(ref heighIndex, 0);
31
+
32
+ EditorGUILayout.BeginVertical(EditorStyles.helpBox);
33
+ EditorGUILayout.LabelField("Tree functions", EditorStyles.boldLabel);
34
+
35
+ Rect rect = GUILayoutUtility.GetRect(10, 1000, rectHeight, rectHeight); // Create drawing window
36
+ GUI.BeginClip(rect);
37
+
38
+ for (int i = 0; i < template.treeFunctions.Count; i++)
39
+ template.treeFunctions[i].DrawFunction(i == selectedFuntionIndex, false);
40
+
41
+ GUI.EndClip();
42
+ EditorGUILayout.EndVertical();
43
+
44
+ if (e.type == EventType.MouseDown && e.button == 0) // If mouse button is pressed, get button pressed and act accordingly
45
+ {
46
+ for (int i = 0; i < functionCount; i++)
47
+ {
48
+ TreeFunctionAsset tf = template.treeFunctions[i];
49
+
50
+ if (tf.rect.Contains(e.mousePosition - rect.position))
51
+ {
52
+ selectedFuntionIndex = i;
53
+ GUIUtility.ExitGUI();
54
+ break;
55
+ }
56
+ }
57
+ }
58
+
59
+ EditorGUILayout.BeginVertical(EditorStyles.helpBox);
60
+ TreeFunctionAsset selectedFunction = template.treeFunctions[selectedFuntionIndex];
61
+ selectedFunction.DrawProperties();
62
+ EditorGUILayout.EndVertical();
63
+
64
+ }
65
+ }
66
+ }
@@ -0,0 +1,12 @@
1
+ fileFormatVersion: 2
2
+ guid: 4b9228eb3580610459608efd65915d28
3
+ timeCreated: 1573000790
4
+ licenseType: Store
5
+ MonoImporter:
6
+ serializedVersion: 2
7
+ defaultReferences: []
8
+ executionOrder: 0
9
+ icon: {instanceID: 0}
10
+ userData:
11
+ assetBundleName:
12
+ assetBundleVariant:
@@ -0,0 +1,18 @@
1
+ using System.Collections;
2
+ using System.Collections.Generic;
3
+ using UnityEngine;
4
+
5
+ public class ValuesEditor : MonoBehaviour
6
+ {
7
+ // Start is called before the first frame update
8
+ void Start()
9
+ {
10
+
11
+ }
12
+
13
+ // Update is called once per frame
14
+ void Update()
15
+ {
16
+
17
+ }
18
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: fd211ee3af6674542a6277c512d9e459
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -0,0 +1,169 @@
1
+ using UnityEditor;
2
+ using UnityEngine;
3
+ using System.Collections;
4
+ using System.Collections.Generic;
5
+ using System.Linq;
6
+
7
+ using Mtree;
8
+ public class VertexColorAdjustmentEditor: EditorWindow
9
+ {
10
+ SerializedObject serialObj;
11
+ SerializedProperty serialProp;
12
+ [SerializeField] List<GameObject> gameObjects = new List<GameObject>();
13
+ Color color = Color.magenta;
14
+ float RandomRange = 0.5f;
15
+ bool overrideShaders = false;
16
+ int select = -1;
17
+ static Texture2D black,green;
18
+ Vector2 scroll;
19
+ [MenuItem("Window/Mtree/Open Vertex Color Adjustment Editor...")]
20
+ static void ShowWindow()
21
+ {
22
+ black = BackgroundTexture(Color.black);
23
+ green = BackgroundTexture(new Color(0.2f,0.7f,0,0.5f));
24
+
25
+ GetWindowWithRect<VertexColorAdjustmentEditor>(new Rect(0,0,512,512));
26
+ }
27
+
28
+ void OnGUI()
29
+ {
30
+ var header = new GUIStyle();
31
+ header.fontStyle = FontStyle.Bold;
32
+ header.normal.textColor = Color.white;
33
+
34
+ var bg = new GUIStyle(GUI.skin.box);
35
+ bg.normal.background = black;
36
+
37
+ EditorGUILayout.BeginHorizontal(bg);
38
+ EditorGUILayout.LabelField("Vertex Color Adjustment Tool",header);
39
+ EditorGUILayout.EndHorizontal();
40
+
41
+ scroll = EditorGUILayout.BeginScrollView(scroll,false,false);
42
+ DrawSettings();
43
+ DrawButtons();
44
+ EditorGUILayout.EndScrollView();
45
+
46
+
47
+
48
+ }
49
+ void Awake(){
50
+ ScriptableObject scriptableObj = this;
51
+ serialObj = new SerializedObject (scriptableObj);
52
+ serialProp = serialObj.FindProperty ("gameObjects");
53
+ }
54
+ void DrawSettings(){
55
+
56
+ var bg = new GUIStyle(GUI.skin.box);
57
+ bg.normal.background = green;
58
+
59
+ EditorGUILayout.BeginVertical(bg);
60
+
61
+
62
+
63
+
64
+ EditorGUILayout.PropertyField (serialProp,new GUIContent("GameObjects"), true);
65
+ serialObj.ApplyModifiedProperties ();
66
+
67
+ color = EditorGUILayout.ColorField("Vertex Color",color);
68
+ RandomRange = EditorGUILayout.Slider("Random Range",RandomRange,0,1);
69
+ EditorGUILayout.EndVertical();
70
+ }
71
+
72
+ void DrawButtons(){
73
+ var gs = new GUIStyle(GUI.skin.button);
74
+ gs.richText = true;
75
+
76
+ var bg = new GUIStyle(GUI.skin.box);
77
+ bg.normal.background = green;
78
+
79
+
80
+
81
+ EditorGUILayout.BeginVertical(bg);
82
+
83
+ if(!overrideShaders){
84
+ if(GUILayout.Button("<b>Enable Override Mesh Options!</b> <i>(No Undo)</i>",gs))
85
+ overrideShaders = true;
86
+ }
87
+
88
+ if(!overrideShaders)
89
+ EditorGUI.BeginDisabledGroup(true);
90
+ OverrideShaders();
91
+
92
+
93
+ if(GUILayout.Button("Update all Vertex Colors!")){
94
+
95
+ foreach(var go in gameObjects){
96
+ if(go != null){
97
+ foreach(var f in go.GetComponentsInChildren<MeshFilter>()){
98
+ var mesh = f.sharedMesh;
99
+ var top = mesh.bounds.size.y;
100
+ var col = mesh.colors;
101
+ for(int i = 0; i<col.Length;i++){
102
+ Color random = color * Random.Range((1-RandomRange), 1);
103
+ col[i] = Color.Lerp(Color.clear, new Color(random.r,random.g,random.b,1), mesh.vertices[i].y / top);
104
+
105
+ }
106
+ mesh.colors = col;
107
+ f.sharedMesh = mesh;
108
+ }
109
+ }
110
+ }
111
+ }
112
+ if(!overrideShaders)
113
+ EditorGUI.EndDisabledGroup();
114
+
115
+ EditorGUILayout.EndVertical();
116
+
117
+
118
+ }
119
+ void OverrideShaders(){
120
+
121
+ EditorGUI.BeginChangeCheck();
122
+ select = GUILayout.Toolbar(select,new string[]{"Leaves Shader", "Vertex Color Preview"});
123
+
124
+ if(EditorGUI.EndChangeCheck()){
125
+ ApplyShaders();
126
+ }
127
+ }
128
+ void ApplyShaders(){
129
+
130
+ switch(select){
131
+ case 0:
132
+ foreach(var go in gameObjects){
133
+ if(go != null){
134
+ foreach(var r in go.GetComponentsInChildren<MeshRenderer>()){
135
+ foreach(var m in r.sharedMaterials){
136
+ m.shader = Utils.GetLeafShader();
137
+ m.SetFloat("_WindMode", 3);
138
+ }
139
+ }
140
+ }
141
+ }
142
+ break;
143
+ case 1:
144
+ foreach(var go in gameObjects){
145
+ if(go != null){
146
+ foreach(var r in go.GetComponentsInChildren<MeshRenderer>()){
147
+ foreach(var m in r.sharedMaterials){
148
+ m.shader = Utils.GetVertexColorShader();
149
+
150
+ }
151
+ }
152
+ }
153
+ }
154
+ break;
155
+ }
156
+ }
157
+ static Texture2D BackgroundTexture(Color col){
158
+ var tex = new Texture2D(1,1);
159
+ tex.SetPixel(0,0,col);
160
+ tex.Apply();
161
+ return tex;
162
+ }
163
+ void OnDestroy(){
164
+ if(overrideShaders){
165
+ select = 0;
166
+ ApplyShaders();
167
+ }
168
+ }
169
+ }
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 808eb96e01ddd914ab69aa109d55bff8
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
package/Editor.meta ADDED
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 63fe2ea54ff956544a4545cce90bece4
3
+ folderAsset: yes
4
+ DefaultImporter:
5
+ externalObjects: {}
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Warwlock
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/LICENSE.meta ADDED
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: 5c87e5de0ba3ede4aa3d47e4de76928b
3
+ DefaultImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
package/README.md ADDED
@@ -0,0 +1,68 @@
1
+ # MTree - Open Source
2
+
3
+ **MTree** is a powerful tree creation tool for the Unity Engine. It allows you to create procedural trees directly within the Unity Editor, complete with wind animation, LODs, and mesh merging.
4
+
5
+ Originally a paid asset, the original developer ([MaximeHerpin](https://github.com/MaximeHerpin)) has allowed this tool to be released as Open Source under the MIT License.
6
+
7
+ Features
8
+ ------------
9
+
10
+ * **Procedural Generation:** Create unique trees using inspector-based workflows.
11
+ * **Mesh Export:** Export your generated trees to standard Mesh format to use in your projects without needing MTree scripts at runtime (except for wind).
12
+ * **Wind System:** Includes `MTreeWind.cs` for vertex-displacement wind animations.
13
+ * **LOD Support:** Automatically generates Levels of Detail with dithered corss-fade.
14
+ * **Full Source Code:** Modify and extend the tool as needed.
15
+
16
+
17
+ Compatibility
18
+ ------------
19
+
20
+ * **Unity Versions:** Compatible with most Unity versions including Unity 6.
21
+ * **Render Pipelines:** Works with all Built-in, URP, and HDRP pipelines.
22
+ * *Note:* The materials rely on **Shader Graph**. You must have the Shader Graph package installed.
23
+ * The provided Shader Graphs are compatible across pipelines, but ensure your project is set up to handle Shader Graph materials.
24
+
25
+
26
+ Installation
27
+ ------------
28
+
29
+ ### Option 1: Install via Package Manager (Git URL)
30
+ - Open the **Package Manager** and select **Add package from git URL** from the add menu.
31
+ - Enter **`https://github.com/Warwlock/MTree.git`** to install this package.
32
+ - If Unity could not find **git**, consider installing it [here](https://git-scm.com/downloads).
33
+
34
+ ### Option 2: Manual Install
35
+ - Download the source code as a ZIP file.
36
+ - Extract the folder into your Unity project's `Packages` folder (e.g., `Packages/MTree`).
37
+ - If you want to add it to `Assets` folder, rename `Samples~` folder to `Samples` to include tree templates.
38
+
39
+ ### Include Tree Templates
40
+ - Go to **Package Manager** and select **MTree** package.
41
+ - Under the `Samples` tab, import `Example Templates`.
42
+
43
+
44
+ Documentation
45
+ ------------
46
+
47
+ **https://github.com/Warwlock/MTree/blob/main/Documentation~/Documentation.md**
48
+
49
+
50
+ Contributing
51
+ ------------
52
+
53
+ Contributions are welcome! Since this is now an open-source project, feel free to submit Pull Requests to fix bugs, clean up the Shader Graphs, or improve the overall tree generation system.
54
+
55
+
56
+ License & Origin
57
+ ------------
58
+
59
+ This project is a community-maintained version of MTree.
60
+
61
+ * **Original Creator:** [MaximeHerpin](https://github.com/MaximeHerpin)
62
+ * **License:** MIT License
63
+ * **Source of Permission:** https://discussions.unity.com/t/mtree-tree-creation/713264/875
64
+
65
+ *Note: The original developer stated: "Whoever reads this and has a version of MTree has my permission to publish it with a MIT (or equivalent) license."*
66
+
67
+ ---
68
+ *Big thanks to [mherpin](https://github.com/MaximeHerpin) for creating this tool and giving it to the community!*
package/README.md.meta ADDED
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: 30e0b9105a8e7554b96be1a6a606cf9f
3
+ TextScriptImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -0,0 +1,204 @@
1
+ %YAML 1.1
2
+ %TAG !u! tag:unity3d.com,2011:
3
+ --- !u!1 &1725613446967666
4
+ GameObject:
5
+ m_ObjectHideFlags: 0
6
+ m_CorrespondingSourceObject: {fileID: 0}
7
+ m_PrefabInstance: {fileID: 0}
8
+ m_PrefabAsset: {fileID: 0}
9
+ serializedVersion: 6
10
+ m_Component:
11
+ - component: {fileID: 4285180147207786}
12
+ - component: {fileID: 20116749958293848}
13
+ - component: {fileID: -3076452287674813668}
14
+ m_Layer: 0
15
+ m_Name: MtreeBillboardCamera
16
+ m_TagString: Untagged
17
+ m_Icon: {fileID: 0}
18
+ m_NavMeshLayer: 0
19
+ m_StaticEditorFlags: 0
20
+ m_IsActive: 1
21
+ --- !u!4 &4285180147207786
22
+ Transform:
23
+ m_ObjectHideFlags: 0
24
+ m_CorrespondingSourceObject: {fileID: 0}
25
+ m_PrefabInstance: {fileID: 0}
26
+ m_PrefabAsset: {fileID: 0}
27
+ m_GameObject: {fileID: 1725613446967666}
28
+ m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
29
+ m_LocalPosition: {x: -0.56, y: 10.060921, z: -21.1}
30
+ m_LocalScale: {x: 1, y: 1, z: 1}
31
+ m_Children:
32
+ - {fileID: 3509233315682307996}
33
+ m_Father: {fileID: 0}
34
+ m_RootOrder: 0
35
+ m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
36
+ --- !u!20 &20116749958293848
37
+ Camera:
38
+ m_ObjectHideFlags: 0
39
+ m_CorrespondingSourceObject: {fileID: 0}
40
+ m_PrefabInstance: {fileID: 0}
41
+ m_PrefabAsset: {fileID: 0}
42
+ m_GameObject: {fileID: 1725613446967666}
43
+ m_Enabled: 1
44
+ serializedVersion: 2
45
+ m_ClearFlags: 2
46
+ m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
47
+ m_projectionMatrixMode: 1
48
+ m_GateFitMode: 2
49
+ m_FOVAxisMode: 0
50
+ m_SensorSize: {x: 36, y: 24}
51
+ m_LensShift: {x: 0, y: 0}
52
+ m_FocalLength: 50
53
+ m_NormalizedViewPortRect:
54
+ serializedVersion: 2
55
+ x: 0
56
+ y: 0
57
+ width: 1
58
+ height: 1
59
+ near clip plane: 0.3
60
+ far clip plane: 1000
61
+ field of view: 60
62
+ orthographic: 1
63
+ orthographic size: 5
64
+ m_Depth: 0
65
+ m_CullingMask:
66
+ serializedVersion: 2
67
+ m_Bits: 4294967295
68
+ m_RenderingPath: -1
69
+ m_TargetTexture: {fileID: 0}
70
+ m_TargetDisplay: 0
71
+ m_TargetEye: 3
72
+ m_HDR: 0
73
+ m_AllowMSAA: 0
74
+ m_AllowDynamicResolution: 0
75
+ m_ForceIntoRT: 0
76
+ m_OcclusionCulling: 1
77
+ m_StereoConvergence: 10
78
+ m_StereoSeparation: 0.022
79
+ --- !u!114 &-3076452287674813668
80
+ MonoBehaviour:
81
+ m_ObjectHideFlags: 0
82
+ m_CorrespondingSourceObject: {fileID: 0}
83
+ m_PrefabInstance: {fileID: 0}
84
+ m_PrefabAsset: {fileID: 0}
85
+ m_GameObject: {fileID: 1725613446967666}
86
+ m_Enabled: 1
87
+ m_EditorHideFlags: 0
88
+ m_Script: {fileID: 11500000, guid: a79441f348de89743a2939f4d699eac1, type: 3}
89
+ m_Name:
90
+ m_EditorClassIdentifier:
91
+ m_RenderShadows: 1
92
+ m_RequiresDepthTextureOption: 2
93
+ m_RequiresOpaqueTextureOption: 2
94
+ m_CameraType: 0
95
+ m_Cameras: []
96
+ m_RendererIndex: -1
97
+ m_VolumeLayerMask:
98
+ serializedVersion: 2
99
+ m_Bits: 1
100
+ m_VolumeTrigger: {fileID: 0}
101
+ m_VolumeFrameworkUpdateModeOption: 2
102
+ m_RenderPostProcessing: 0
103
+ m_Antialiasing: 0
104
+ m_AntialiasingQuality: 2
105
+ m_StopNaN: 0
106
+ m_Dithering: 0
107
+ m_ClearDepth: 1
108
+ m_AllowXRRendering: 1
109
+ m_RequiresDepthTexture: 0
110
+ m_RequiresColorTexture: 0
111
+ m_Version: 2
112
+ --- !u!1 &3813935206381573757
113
+ GameObject:
114
+ m_ObjectHideFlags: 0
115
+ m_CorrespondingSourceObject: {fileID: 0}
116
+ m_PrefabInstance: {fileID: 0}
117
+ m_PrefabAsset: {fileID: 0}
118
+ serializedVersion: 6
119
+ m_Component:
120
+ - component: {fileID: 3509233315682307996}
121
+ - component: {fileID: 4975508471406895477}
122
+ m_Layer: 0
123
+ m_Name: Directional Light
124
+ m_TagString: Untagged
125
+ m_Icon: {fileID: 0}
126
+ m_NavMeshLayer: 0
127
+ m_StaticEditorFlags: 0
128
+ m_IsActive: 1
129
+ --- !u!4 &3509233315682307996
130
+ Transform:
131
+ m_ObjectHideFlags: 0
132
+ m_CorrespondingSourceObject: {fileID: 0}
133
+ m_PrefabInstance: {fileID: 0}
134
+ m_PrefabAsset: {fileID: 0}
135
+ m_GameObject: {fileID: 3813935206381573757}
136
+ m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
137
+ m_LocalPosition: {x: 0, y: 0, z: 0}
138
+ m_LocalScale: {x: 1, y: 1, z: 1}
139
+ m_Children: []
140
+ m_Father: {fileID: 4285180147207786}
141
+ m_RootOrder: 0
142
+ m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
143
+ --- !u!108 &4975508471406895477
144
+ Light:
145
+ m_ObjectHideFlags: 0
146
+ m_CorrespondingSourceObject: {fileID: 0}
147
+ m_PrefabInstance: {fileID: 0}
148
+ m_PrefabAsset: {fileID: 0}
149
+ m_GameObject: {fileID: 3813935206381573757}
150
+ m_Enabled: 1
151
+ serializedVersion: 10
152
+ m_Type: 1
153
+ m_Shape: 0
154
+ m_Color: {r: 1, g: 1, b: 1, a: 1}
155
+ m_Intensity: 1
156
+ m_Range: 10
157
+ m_SpotAngle: 30
158
+ m_InnerSpotAngle: 21.80208
159
+ m_CookieSize: 10
160
+ m_Shadows:
161
+ m_Type: 0
162
+ m_Resolution: -1
163
+ m_CustomResolution: -1
164
+ m_Strength: 1
165
+ m_Bias: 0.05
166
+ m_NormalBias: 0.4
167
+ m_NearPlane: 0.2
168
+ m_CullingMatrixOverride:
169
+ e00: 1
170
+ e01: 0
171
+ e02: 0
172
+ e03: 0
173
+ e10: 0
174
+ e11: 1
175
+ e12: 0
176
+ e13: 0
177
+ e20: 0
178
+ e21: 0
179
+ e22: 1
180
+ e23: 0
181
+ e30: 0
182
+ e31: 0
183
+ e32: 0
184
+ e33: 1
185
+ m_UseCullingMatrixOverride: 0
186
+ m_Cookie: {fileID: 0}
187
+ m_DrawHalo: 0
188
+ m_Flare: {fileID: 0}
189
+ m_RenderMode: 0
190
+ m_CullingMask:
191
+ serializedVersion: 2
192
+ m_Bits: 4294967295
193
+ m_RenderingLayerMask: 1
194
+ m_Lightmapping: 4
195
+ m_LightShadowCasterMode: 2
196
+ m_AreaSize: {x: 1, y: 1}
197
+ m_BounceIntensity: 1
198
+ m_ColorTemperature: 6570
199
+ m_UseColorTemperature: 0
200
+ m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
201
+ m_UseBoundingSphereOverride: 0
202
+ m_UseViewFrustumForShadowCasterCull: 1
203
+ m_ShadowRadius: 0
204
+ m_ShadowAngle: 0
@@ -0,0 +1,8 @@
1
+ fileFormatVersion: 2
2
+ guid: 4c40e3d9f8c8915438f861ef4acf8bef
3
+ NativeFormatImporter:
4
+ externalObjects: {}
5
+ mainObjectFileID: 0
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant: