@casmo/tree.js 0.1.1 → 0.3.0

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 (220) hide show
  1. package/README.md +312 -16
  2. package/dist/apply-Cio2t7CZ.js +285 -0
  3. package/dist/apply-Cio2t7CZ.js.map +1 -0
  4. package/dist/bake/index.d.ts +44 -5
  5. package/dist/bake/index.d.ts.map +1 -1
  6. package/dist/definition/crown-shape.d.ts +9 -0
  7. package/dist/definition/crown-shape.d.ts.map +1 -0
  8. package/dist/definition/defaults.d.ts +15 -1
  9. package/dist/definition/defaults.d.ts.map +1 -1
  10. package/dist/definition/index.d.ts +4 -3
  11. package/dist/definition/index.d.ts.map +1 -1
  12. package/dist/definition/migrations.d.ts +0 -8
  13. package/dist/definition/migrations.d.ts.map +1 -1
  14. package/dist/definition/schema.d.ts.map +1 -1
  15. package/dist/definition/types.d.ts +181 -6
  16. package/dist/definition/types.d.ts.map +1 -1
  17. package/dist/effects/mask.d.ts +3 -3
  18. package/dist/effects/mask.d.ts.map +1 -1
  19. package/dist/effects.js +3 -3
  20. package/dist/effects.js.map +1 -1
  21. package/dist/forest/Forest.d.ts +37 -2
  22. package/dist/forest/Forest.d.ts.map +1 -1
  23. package/dist/forest/nodes.d.ts +6 -1
  24. package/dist/forest/nodes.d.ts.map +1 -1
  25. package/dist/{forest-OX9WvAwh.js → forest-ChEaWJrf.js} +1763 -684
  26. package/dist/forest-ChEaWJrf.js.map +1 -0
  27. package/dist/generator/branches.d.ts +2 -2
  28. package/dist/generator/branches.d.ts.map +1 -1
  29. package/dist/generator/crown.d.ts +28 -0
  30. package/dist/generator/crown.d.ts.map +1 -0
  31. package/dist/generator/fruit.d.ts +28 -0
  32. package/dist/generator/fruit.d.ts.map +1 -0
  33. package/dist/generator/growth.d.ts +1 -1
  34. package/dist/generator/growth.d.ts.map +1 -1
  35. package/dist/generator/index.d.ts +5 -4
  36. package/dist/generator/index.d.ts.map +1 -1
  37. package/dist/generator/leaf-shapes.d.ts +33 -1
  38. package/dist/generator/leaf-shapes.d.ts.map +1 -1
  39. package/dist/generator/mesh.d.ts +10 -2
  40. package/dist/generator/mesh.d.ts.map +1 -1
  41. package/dist/generator/occlusion.d.ts +8 -0
  42. package/dist/generator/occlusion.d.ts.map +1 -0
  43. package/dist/generator/roots.d.ts +16 -0
  44. package/dist/generator/roots.d.ts.map +1 -0
  45. package/dist/generator/trunk.d.ts +16 -2
  46. package/dist/generator/trunk.d.ts.map +1 -1
  47. package/dist/generator/types.d.ts +61 -6
  48. package/dist/generator/types.d.ts.map +1 -1
  49. package/dist/growth/index.d.ts +1 -1
  50. package/dist/growth/index.d.ts.map +1 -1
  51. package/dist/growth/tsl.d.ts +2 -0
  52. package/dist/growth/tsl.d.ts.map +1 -1
  53. package/dist/index.d.ts +6 -3
  54. package/dist/index.d.ts.map +1 -1
  55. package/dist/index.js +274 -24
  56. package/dist/index.js.map +1 -1
  57. package/dist/materials/crown-nodes.d.ts +20 -0
  58. package/dist/materials/crown-nodes.d.ts.map +1 -0
  59. package/dist/materials/crown-normals.d.ts +17 -0
  60. package/dist/materials/crown-normals.d.ts.map +1 -0
  61. package/dist/materials/ground-tint.d.ts +13 -0
  62. package/dist/materials/ground-tint.d.ts.map +1 -0
  63. package/dist/materials/index.d.ts +13 -1
  64. package/dist/materials/index.d.ts.map +1 -1
  65. package/dist/materials/leaf-translucency-model.d.ts +14 -0
  66. package/dist/materials/leaf-translucency-model.d.ts.map +1 -0
  67. package/dist/materials/leaf-translucency.d.ts +73 -0
  68. package/dist/materials/leaf-translucency.d.ts.map +1 -0
  69. package/dist/materials/material-features.d.ts +43 -0
  70. package/dist/materials/material-features.d.ts.map +1 -0
  71. package/dist/materials/occlusion.d.ts +10 -0
  72. package/dist/materials/occlusion.d.ts.map +1 -0
  73. package/dist/materials/toon.d.ts +18 -1
  74. package/dist/materials/toon.d.ts.map +1 -1
  75. package/dist/names-BE9he6CS.js +713 -0
  76. package/dist/names-BE9he6CS.js.map +1 -0
  77. package/dist/react/Tree.d.ts +5 -2
  78. package/dist/react/Tree.d.ts.map +1 -1
  79. package/dist/react.js +10 -6
  80. package/dist/react.js.map +1 -1
  81. package/dist/season/nodes.d.ts +16 -0
  82. package/dist/season/nodes.d.ts.map +1 -1
  83. package/dist/season/profile.d.ts +26 -0
  84. package/dist/season/profile.d.ts.map +1 -1
  85. package/dist/species/almond.js +223 -0
  86. package/dist/species/almond.js.map +1 -0
  87. package/dist/species/almond.json +210 -0
  88. package/dist/species/apple.js +230 -0
  89. package/dist/species/apple.js.map +1 -0
  90. package/dist/species/apple.json +220 -0
  91. package/dist/species/ash.js +187 -0
  92. package/dist/species/ash.js.map +1 -0
  93. package/dist/species/ash.json +177 -0
  94. package/dist/species/beech.js +174 -0
  95. package/dist/species/beech.js.map +1 -0
  96. package/dist/species/beech.json +167 -0
  97. package/dist/species/birch.js +170 -0
  98. package/dist/species/birch.js.map +1 -0
  99. package/dist/species/birch.json +163 -0
  100. package/dist/species/catalog.d.ts +61 -0
  101. package/dist/species/catalog.d.ts.map +1 -0
  102. package/dist/species/cedar.js +169 -0
  103. package/dist/species/cedar.js.map +1 -0
  104. package/dist/species/cedar.json +168 -0
  105. package/dist/species/cherry.js +237 -0
  106. package/dist/species/cherry.js.map +1 -0
  107. package/dist/species/cherry.json +224 -0
  108. package/dist/species/chestnut.js +230 -0
  109. package/dist/species/chestnut.js.map +1 -0
  110. package/dist/species/chestnut.json +220 -0
  111. package/dist/species/douglas-fir.js +174 -0
  112. package/dist/species/douglas-fir.js.map +1 -0
  113. package/dist/species/douglas-fir.json +170 -0
  114. package/dist/species/elm.js +173 -0
  115. package/dist/species/elm.js.map +1 -0
  116. package/dist/species/elm.json +163 -0
  117. package/dist/species/hemlock.js +175 -0
  118. package/dist/species/hemlock.js.map +1 -0
  119. package/dist/species/hemlock.json +171 -0
  120. package/dist/species/hickory.js +200 -0
  121. package/dist/species/hickory.js.map +1 -0
  122. package/dist/species/hickory.json +192 -0
  123. package/dist/species/index.d.ts +10 -0
  124. package/dist/species/index.d.ts.map +1 -0
  125. package/dist/species/juniper.js +158 -0
  126. package/dist/species/juniper.js.map +1 -0
  127. package/dist/species/juniper.json +154 -0
  128. package/dist/species/loaders.d.ts +7 -0
  129. package/dist/species/loaders.d.ts.map +1 -0
  130. package/dist/species/mahogany.js +201 -0
  131. package/dist/species/mahogany.js.map +1 -0
  132. package/dist/species/mahogany.json +196 -0
  133. package/dist/species/maple.js +177 -0
  134. package/dist/species/maple.js.map +1 -0
  135. package/dist/species/maple.json +171 -0
  136. package/dist/species/oak.js +220 -0
  137. package/dist/species/oak.js.map +1 -0
  138. package/dist/species/oak.json +212 -0
  139. package/dist/species/olive.js +189 -0
  140. package/dist/species/olive.js.map +1 -0
  141. package/dist/species/olive.json +181 -0
  142. package/dist/species/peach.js +223 -0
  143. package/dist/species/peach.js.map +1 -0
  144. package/dist/species/peach.json +210 -0
  145. package/dist/species/pear.js +213 -0
  146. package/dist/species/pear.js.map +1 -0
  147. package/dist/species/pear.json +200 -0
  148. package/dist/species/pine.js +163 -0
  149. package/dist/species/pine.js.map +1 -0
  150. package/dist/species/pine.json +162 -0
  151. package/dist/species/plum.js +237 -0
  152. package/dist/species/plum.js.map +1 -0
  153. package/dist/species/plum.json +224 -0
  154. package/dist/species/red-oak.js +220 -0
  155. package/dist/species/red-oak.js.map +1 -0
  156. package/dist/species/red-oak.json +212 -0
  157. package/dist/species/redwood.js +174 -0
  158. package/dist/species/redwood.js.map +1 -0
  159. package/dist/species/redwood.json +170 -0
  160. package/dist/species/sequoia.js +167 -0
  161. package/dist/species/sequoia.js.map +1 -0
  162. package/dist/species/sequoia.json +166 -0
  163. package/dist/species/spruce.js +170 -0
  164. package/dist/species/spruce.js.map +1 -0
  165. package/dist/species/spruce.json +166 -0
  166. package/dist/species/teak.js +166 -0
  167. package/dist/species/teak.js.map +1 -0
  168. package/dist/species/teak.json +157 -0
  169. package/dist/species/types.d.ts +65 -0
  170. package/dist/species/types.d.ts.map +1 -0
  171. package/dist/species/walnut.js +220 -0
  172. package/dist/species/walnut.js.map +1 -0
  173. package/dist/species/walnut.json +212 -0
  174. package/dist/species/white-oak.js +213 -0
  175. package/dist/species/white-oak.js.map +1 -0
  176. package/dist/species/white-oak.json +208 -0
  177. package/dist/species.js +160 -0
  178. package/dist/species.js.map +1 -0
  179. package/dist/styles/apply.d.ts +12 -0
  180. package/dist/styles/apply.d.ts.map +1 -0
  181. package/dist/styles/low-poly/index.d.ts +1 -1
  182. package/dist/styles/low-poly/index.d.ts.map +1 -1
  183. package/dist/styles/low-poly.js +13 -10
  184. package/dist/styles/low-poly.js.map +1 -1
  185. package/dist/styles/material-features.d.ts +27 -0
  186. package/dist/styles/material-features.d.ts.map +1 -0
  187. package/dist/styles/names.d.ts +28 -0
  188. package/dist/styles/names.d.ts.map +1 -0
  189. package/dist/styles/realistic/index.d.ts +3 -8
  190. package/dist/styles/realistic/index.d.ts.map +1 -1
  191. package/dist/styles/realistic/textures.d.ts +20 -0
  192. package/dist/styles/realistic/textures.d.ts.map +1 -0
  193. package/dist/styles/realistic.js +14 -18
  194. package/dist/styles/realistic.js.map +1 -1
  195. package/dist/styles/registry.d.ts +2 -13
  196. package/dist/styles/registry.d.ts.map +1 -1
  197. package/dist/styles/stylized/index.d.ts +1 -1
  198. package/dist/styles/stylized/index.d.ts.map +1 -1
  199. package/dist/styles/stylized.js +13 -10
  200. package/dist/styles/stylized.js.map +1 -1
  201. package/dist/styles/types.d.ts +16 -2
  202. package/dist/styles/types.d.ts.map +1 -1
  203. package/dist/textures/realistic/bark-fibrous-normal.png +0 -0
  204. package/dist/textures/realistic/bark-fibrous.png +0 -0
  205. package/dist/textures/realistic/bark-papery-normal.png +0 -0
  206. package/dist/textures/realistic/bark-papery.png +0 -0
  207. package/dist/textures/realistic/bark-plated-normal.png +0 -0
  208. package/dist/textures/realistic/bark-plated.png +0 -0
  209. package/dist/textures/realistic/bark-smooth-normal.png +0 -0
  210. package/dist/textures/realistic/bark-smooth.png +0 -0
  211. package/dist/textures/realistic/leaf-compound.png +0 -0
  212. package/dist/textures/realistic/leaf-lobed.png +0 -0
  213. package/dist/textures/realistic/leaf-palmate.png +0 -0
  214. package/dist/textures/realistic/scale.png +0 -0
  215. package/dist/tree/Tree.d.ts +34 -5
  216. package/dist/tree/Tree.d.ts.map +1 -1
  217. package/package.json +9 -2
  218. package/dist/forest-OX9WvAwh.js.map +0 -1
  219. package/dist/types-BZjHhNz7.js +0 -20
  220. package/dist/types-BZjHhNz7.js.map +0 -1
@@ -0,0 +1,210 @@
1
+ {
2
+ "id": "almond",
3
+ "name": "Almond",
4
+ "form": "broadleaf",
5
+ "trunk": {
6
+ "length": 2.6,
7
+ "radius": 0.2,
8
+ "taper": 0.4,
9
+ "lengthVariation": 0.12,
10
+ "bend": 0.22,
11
+ "flare": 0.4
12
+ },
13
+ "branches": [
14
+ {
15
+ "angleVariation": 0.15,
16
+ "spiral": 137.5,
17
+ "lengthVariation": 0.15,
18
+ "taper": 0.45,
19
+ "bend": 0.2,
20
+ "gravity": 0.05,
21
+ "angleProfile": [
22
+ {
23
+ "t": 0.45,
24
+ "value": 1.1
25
+ },
26
+ {
27
+ "t": 1.0,
28
+ "value": 0.85
29
+ }
30
+ ],
31
+ "count": 5,
32
+ "start": 0.45,
33
+ "end": 0.95,
34
+ "angle": 32,
35
+ "length": 1.1,
36
+ "radius": 0.6
37
+ },
38
+ {
39
+ "angleVariation": 0.15,
40
+ "spiral": 137.5,
41
+ "lengthVariation": 0.15,
42
+ "taper": 0.45,
43
+ "bend": 0.2,
44
+ "gravity": 0.2,
45
+ "count": 3,
46
+ "start": 0.3,
47
+ "end": 1,
48
+ "angle": 38,
49
+ "length": 0.5,
50
+ "radius": 0.6
51
+ },
52
+ {
53
+ "angleVariation": 0.15,
54
+ "spiral": 137.5,
55
+ "lengthVariation": 0.15,
56
+ "taper": 0.45,
57
+ "bend": 0.15,
58
+ "gravity": 0.25,
59
+ "count": 3,
60
+ "start": 0.3,
61
+ "end": 1,
62
+ "angle": 35,
63
+ "length": 0.45,
64
+ "radius": 0.6
65
+ }
66
+ ],
67
+ "foliage": {
68
+ "type": "broad",
69
+ "density": 0.45,
70
+ "size": 0.4,
71
+ "sizeVariation": 0.25,
72
+ "start": 0.1,
73
+ "angle": 50
74
+ },
75
+ "bark": {
76
+ "type": "furrowed",
77
+ "color": "#7a6e64"
78
+ },
79
+ "fruit": {
80
+ "type": "nut",
81
+ "count": 0.4,
82
+ "size": 0.3,
83
+ "sizeVariation": 0.15,
84
+ "hang": 0.5
85
+ },
86
+ "roots": {
87
+ "count": 5,
88
+ "length": 0.2,
89
+ "lengthVariation": 0.3,
90
+ "radius": 0.3,
91
+ "angle": 14,
92
+ "bend": 0.3
93
+ },
94
+ "season": {
95
+ "leafColor": [
96
+ {
97
+ "t": 0,
98
+ "value": "#a9c95e"
99
+ },
100
+ {
101
+ "t": 0.2,
102
+ "value": "#62844a"
103
+ },
104
+ {
105
+ "t": 0.56,
106
+ "value": "#62844a"
107
+ },
108
+ {
109
+ "t": 0.62,
110
+ "value": "#b8a03a"
111
+ },
112
+ {
113
+ "t": 0.72,
114
+ "value": "#9a7030"
115
+ },
116
+ {
117
+ "t": 1,
118
+ "value": "#9a7030"
119
+ }
120
+ ],
121
+ "leafCoverage": [
122
+ {
123
+ "t": 0,
124
+ "value": 0
125
+ },
126
+ {
127
+ "t": 0.06,
128
+ "value": 0
129
+ },
130
+ {
131
+ "t": 0.17,
132
+ "value": 1
133
+ },
134
+ {
135
+ "t": 0.62,
136
+ "value": 1
137
+ },
138
+ {
139
+ "t": 0.74,
140
+ "value": 0
141
+ }
142
+ ],
143
+ "blossom": [
144
+ {
145
+ "t": 0,
146
+ "value": 0
147
+ },
148
+ {
149
+ "t": 0.005,
150
+ "value": 0
151
+ },
152
+ {
153
+ "t": 0.05,
154
+ "value": 1
155
+ },
156
+ {
157
+ "t": 0.082,
158
+ "value": 0.9
159
+ },
160
+ {
161
+ "t": 0.13,
162
+ "value": 0
163
+ }
164
+ ],
165
+ "blossomColor": "#f8dbe4",
166
+ "fruit": [
167
+ {
168
+ "t": 0.14,
169
+ "value": 0
170
+ },
171
+ {
172
+ "t": 0.3,
173
+ "value": 1
174
+ },
175
+ {
176
+ "t": 0.56,
177
+ "value": 1
178
+ },
179
+ {
180
+ "t": 0.64,
181
+ "value": 0
182
+ }
183
+ ],
184
+ "fruitColor": [
185
+ {
186
+ "t": 0.24,
187
+ "value": "#8aa64a"
188
+ },
189
+ {
190
+ "t": 0.4,
191
+ "value": "#9a9a52"
192
+ },
193
+ {
194
+ "t": 0.5,
195
+ "value": "#a07850"
196
+ }
197
+ ]
198
+ },
199
+ "wind": {
200
+ "trunk": 0.06,
201
+ "branches": 0.32,
202
+ "leaves": 0.65,
203
+ "frequency": 1
204
+ },
205
+ "variation": {
206
+ "color": 0.1,
207
+ "growth": 0.1,
208
+ "season": 0.05
209
+ }
210
+ }
@@ -0,0 +1,230 @@
1
+ // src/species/data/apple.json
2
+ var id = "apple";
3
+ var name = "Apple";
4
+ var form = "broadleaf";
5
+ var trunk = {
6
+ "length": 2,
7
+ "radius": .26,
8
+ "taper": .45,
9
+ "lengthVariation": .12,
10
+ "bend": .28,
11
+ "flare": .4
12
+ };
13
+ var branches = [
14
+ {
15
+ "angleVariation": .25,
16
+ "spiral": 137.5,
17
+ "lengthVariation": .15,
18
+ "taper": .45,
19
+ "bend": .25,
20
+ "gravity": .2,
21
+ "lengthProfile": [{
22
+ "t": .55,
23
+ "value": 1
24
+ }, {
25
+ "t": 1,
26
+ "value": .7
27
+ }],
28
+ "angleProfile": [{
29
+ "t": .55,
30
+ "value": 1.1
31
+ }, {
32
+ "t": 1,
33
+ "value": .65
34
+ }],
35
+ "count": 5,
36
+ "start": .55,
37
+ "end": .98,
38
+ "angle": 62,
39
+ "length": 1.45,
40
+ "radius": .62
41
+ },
42
+ {
43
+ "angleVariation": .15,
44
+ "spiral": 137.5,
45
+ "lengthVariation": .15,
46
+ "taper": .45,
47
+ "bend": .25,
48
+ "gravity": .2,
49
+ "count": 3,
50
+ "start": .3,
51
+ "end": 1,
52
+ "angle": 48,
53
+ "length": .55,
54
+ "radius": .6
55
+ },
56
+ {
57
+ "angleVariation": .15,
58
+ "spiral": 137.5,
59
+ "lengthVariation": .15,
60
+ "taper": .45,
61
+ "bend": .2,
62
+ "gravity": .1,
63
+ "count": 3,
64
+ "start": .35,
65
+ "end": 1,
66
+ "angle": 45,
67
+ "length": .5,
68
+ "radius": .6
69
+ }
70
+ ];
71
+ var foliage = {
72
+ "type": "broad",
73
+ "density": .45,
74
+ "size": .45,
75
+ "sizeVariation": .25,
76
+ "start": .05,
77
+ "angle": 50
78
+ };
79
+ var bark = {
80
+ "type": "furrowed",
81
+ "color": "#8c8070"
82
+ };
83
+ var fruit = {
84
+ "type": "round",
85
+ "count": .45,
86
+ "size": .34,
87
+ "sizeVariation": .15,
88
+ "hang": .95
89
+ };
90
+ var roots = {
91
+ "count": 5,
92
+ "length": .2,
93
+ "lengthVariation": .3,
94
+ "radius": .3,
95
+ "angle": 14,
96
+ "bend": .3
97
+ };
98
+ var season = {
99
+ "leafColor": [
100
+ {
101
+ "t": 0,
102
+ "value": "#a9c95e"
103
+ },
104
+ {
105
+ "t": .2,
106
+ "value": "#3d6a2c"
107
+ },
108
+ {
109
+ "t": .5800000000000001,
110
+ "value": "#3d6a2c"
111
+ },
112
+ {
113
+ "t": .64,
114
+ "value": "#a39a3a"
115
+ },
116
+ {
117
+ "t": .74,
118
+ "value": "#9a6a2e"
119
+ },
120
+ {
121
+ "t": 1,
122
+ "value": "#9a6a2e"
123
+ }
124
+ ],
125
+ "leafCoverage": [
126
+ {
127
+ "t": 0,
128
+ "value": 0
129
+ },
130
+ {
131
+ "t": .04,
132
+ "value": 0
133
+ },
134
+ {
135
+ "t": .16,
136
+ "value": 1
137
+ },
138
+ {
139
+ "t": .64,
140
+ "value": 1
141
+ },
142
+ {
143
+ "t": .76,
144
+ "value": 0
145
+ }
146
+ ],
147
+ "blossom": [
148
+ {
149
+ "t": 0,
150
+ "value": 0
151
+ },
152
+ {
153
+ "t": .04,
154
+ "value": 0
155
+ },
156
+ {
157
+ "t": .09,
158
+ "value": 1
159
+ },
160
+ {
161
+ "t": .126,
162
+ "value": .9
163
+ },
164
+ {
165
+ "t": .18,
166
+ "value": 0
167
+ }
168
+ ],
169
+ "blossomColor": "#f8dfe6",
170
+ "fruit": [
171
+ {
172
+ "t": .2,
173
+ "value": 0
174
+ },
175
+ {
176
+ "t": .36,
177
+ "value": 1
178
+ },
179
+ {
180
+ "t": .62,
181
+ "value": 1
182
+ },
183
+ {
184
+ "t": .7,
185
+ "value": 0
186
+ }
187
+ ],
188
+ "fruitColor": [
189
+ {
190
+ "t": .3,
191
+ "value": "#8db33a"
192
+ },
193
+ {
194
+ "t": .42,
195
+ "value": "#a7a83a"
196
+ },
197
+ {
198
+ "t": .55,
199
+ "value": "#c22f22"
200
+ }
201
+ ]
202
+ };
203
+ var wind = {
204
+ "trunk": .05,
205
+ "branches": .32,
206
+ "leaves": .65,
207
+ "frequency": 1
208
+ };
209
+ var variation = {
210
+ "color": .1,
211
+ "growth": .1,
212
+ "season": .05
213
+ };
214
+ var apple_default = {
215
+ id,
216
+ name,
217
+ form,
218
+ trunk,
219
+ branches,
220
+ foliage,
221
+ bark,
222
+ fruit,
223
+ roots,
224
+ season,
225
+ wind,
226
+ variation
227
+ };
228
+ export { bark, branches, apple_default as default, foliage, form, fruit, id, name, roots, season, trunk, variation, wind };
229
+
230
+ //# sourceMappingURL=apple.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apple.js","names":[],"sources":[],"mappings":""}
@@ -0,0 +1,220 @@
1
+ {
2
+ "id": "apple",
3
+ "name": "Apple",
4
+ "form": "broadleaf",
5
+ "trunk": {
6
+ "length": 2,
7
+ "radius": 0.26,
8
+ "taper": 0.45,
9
+ "lengthVariation": 0.12,
10
+ "bend": 0.28,
11
+ "flare": 0.4
12
+ },
13
+ "branches": [
14
+ {
15
+ "angleVariation": 0.25,
16
+ "spiral": 137.5,
17
+ "lengthVariation": 0.15,
18
+ "taper": 0.45,
19
+ "bend": 0.25,
20
+ "gravity": 0.2,
21
+ "lengthProfile": [
22
+ {
23
+ "t": 0.55,
24
+ "value": 1.0
25
+ },
26
+ {
27
+ "t": 1.0,
28
+ "value": 0.7
29
+ }
30
+ ],
31
+ "angleProfile": [
32
+ {
33
+ "t": 0.55,
34
+ "value": 1.1
35
+ },
36
+ {
37
+ "t": 1.0,
38
+ "value": 0.65
39
+ }
40
+ ],
41
+ "count": 5,
42
+ "start": 0.55,
43
+ "end": 0.98,
44
+ "angle": 62,
45
+ "length": 1.45,
46
+ "radius": 0.62
47
+ },
48
+ {
49
+ "angleVariation": 0.15,
50
+ "spiral": 137.5,
51
+ "lengthVariation": 0.15,
52
+ "taper": 0.45,
53
+ "bend": 0.25,
54
+ "gravity": 0.2,
55
+ "count": 3,
56
+ "start": 0.3,
57
+ "end": 1,
58
+ "angle": 48,
59
+ "length": 0.55,
60
+ "radius": 0.6
61
+ },
62
+ {
63
+ "angleVariation": 0.15,
64
+ "spiral": 137.5,
65
+ "lengthVariation": 0.15,
66
+ "taper": 0.45,
67
+ "bend": 0.2,
68
+ "gravity": 0.1,
69
+ "count": 3,
70
+ "start": 0.35,
71
+ "end": 1,
72
+ "angle": 45,
73
+ "length": 0.5,
74
+ "radius": 0.6
75
+ }
76
+ ],
77
+ "foliage": {
78
+ "type": "broad",
79
+ "density": 0.45,
80
+ "size": 0.45,
81
+ "sizeVariation": 0.25,
82
+ "start": 0.05,
83
+ "angle": 50
84
+ },
85
+ "bark": {
86
+ "type": "furrowed",
87
+ "color": "#8c8070"
88
+ },
89
+ "fruit": {
90
+ "type": "round",
91
+ "count": 0.45,
92
+ "size": 0.34,
93
+ "sizeVariation": 0.15,
94
+ "hang": 0.95
95
+ },
96
+ "roots": {
97
+ "count": 5,
98
+ "length": 0.2,
99
+ "lengthVariation": 0.3,
100
+ "radius": 0.3,
101
+ "angle": 14,
102
+ "bend": 0.3
103
+ },
104
+ "season": {
105
+ "leafColor": [
106
+ {
107
+ "t": 0,
108
+ "value": "#a9c95e"
109
+ },
110
+ {
111
+ "t": 0.2,
112
+ "value": "#3d6a2c"
113
+ },
114
+ {
115
+ "t": 0.5800000000000001,
116
+ "value": "#3d6a2c"
117
+ },
118
+ {
119
+ "t": 0.64,
120
+ "value": "#a39a3a"
121
+ },
122
+ {
123
+ "t": 0.74,
124
+ "value": "#9a6a2e"
125
+ },
126
+ {
127
+ "t": 1,
128
+ "value": "#9a6a2e"
129
+ }
130
+ ],
131
+ "leafCoverage": [
132
+ {
133
+ "t": 0,
134
+ "value": 0
135
+ },
136
+ {
137
+ "t": 0.04,
138
+ "value": 0
139
+ },
140
+ {
141
+ "t": 0.16,
142
+ "value": 1
143
+ },
144
+ {
145
+ "t": 0.64,
146
+ "value": 1
147
+ },
148
+ {
149
+ "t": 0.76,
150
+ "value": 0
151
+ }
152
+ ],
153
+ "blossom": [
154
+ {
155
+ "t": 0,
156
+ "value": 0
157
+ },
158
+ {
159
+ "t": 0.04,
160
+ "value": 0
161
+ },
162
+ {
163
+ "t": 0.09,
164
+ "value": 1
165
+ },
166
+ {
167
+ "t": 0.126,
168
+ "value": 0.9
169
+ },
170
+ {
171
+ "t": 0.18,
172
+ "value": 0
173
+ }
174
+ ],
175
+ "blossomColor": "#f8dfe6",
176
+ "fruit": [
177
+ {
178
+ "t": 0.2,
179
+ "value": 0
180
+ },
181
+ {
182
+ "t": 0.36,
183
+ "value": 1
184
+ },
185
+ {
186
+ "t": 0.62,
187
+ "value": 1
188
+ },
189
+ {
190
+ "t": 0.7,
191
+ "value": 0
192
+ }
193
+ ],
194
+ "fruitColor": [
195
+ {
196
+ "t": 0.3,
197
+ "value": "#8db33a"
198
+ },
199
+ {
200
+ "t": 0.42,
201
+ "value": "#a7a83a"
202
+ },
203
+ {
204
+ "t": 0.55,
205
+ "value": "#c22f22"
206
+ }
207
+ ]
208
+ },
209
+ "wind": {
210
+ "trunk": 0.05,
211
+ "branches": 0.32,
212
+ "leaves": 0.65,
213
+ "frequency": 1
214
+ },
215
+ "variation": {
216
+ "color": 0.1,
217
+ "growth": 0.1,
218
+ "season": 0.05
219
+ }
220
+ }