@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,187 @@
1
+ // src/species/data/ash.json
2
+ var id = "ash";
3
+ var name = "Ash";
4
+ var form = "broadleaf";
5
+ var trunk = {
6
+ "length": 7,
7
+ "radius": .36,
8
+ "taper": .32,
9
+ "lengthVariation": .1,
10
+ "bend": .1,
11
+ "flare": .4
12
+ };
13
+ var branches = [
14
+ {
15
+ "angleVariation": .15,
16
+ "spiral": 137.5,
17
+ "lengthVariation": .15,
18
+ "taper": .42,
19
+ "bend": .12,
20
+ "gravity": .18,
21
+ "lengthProfile": [
22
+ {
23
+ "t": .48,
24
+ "value": 1
25
+ },
26
+ {
27
+ "t": .75,
28
+ "value": .9
29
+ },
30
+ {
31
+ "t": 1,
32
+ "value": .5
33
+ }
34
+ ],
35
+ "angleProfile": [{
36
+ "t": .48,
37
+ "value": 1.2
38
+ }, {
39
+ "t": 1,
40
+ "value": .7
41
+ }],
42
+ "count": 8,
43
+ "start": .48,
44
+ "end": .96,
45
+ "angle": 42,
46
+ "length": .5,
47
+ "radius": .6
48
+ },
49
+ {
50
+ "angleVariation": .15,
51
+ "spiral": 137.5,
52
+ "lengthVariation": .15,
53
+ "taper": .45,
54
+ "bend": .12,
55
+ "gravity": .2,
56
+ "count": 3,
57
+ "start": .3,
58
+ "end": 1,
59
+ "angle": 38,
60
+ "length": .6,
61
+ "radius": .6
62
+ },
63
+ {
64
+ "angleVariation": .15,
65
+ "spiral": 137.5,
66
+ "lengthVariation": .15,
67
+ "taper": .45,
68
+ "bend": .1,
69
+ "gravity": .15,
70
+ "count": 2,
71
+ "start": .4,
72
+ "end": 1,
73
+ "angle": 35,
74
+ "length": .5,
75
+ "radius": .6
76
+ }
77
+ ];
78
+ var foliage = {
79
+ "type": "compound",
80
+ "density": .4,
81
+ "size": .65,
82
+ "sizeVariation": .25,
83
+ "start": .15,
84
+ "angle": 45
85
+ };
86
+ var bark = {
87
+ "type": "furrowed",
88
+ "color": "#a19d93"
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": "#a5c45a"
103
+ },
104
+ {
105
+ "t": .2,
106
+ "value": "#5a8a3a"
107
+ },
108
+ {
109
+ "t": .5,
110
+ "value": "#5a8a3a"
111
+ },
112
+ {
113
+ "t": .58,
114
+ "value": "#c7b648"
115
+ },
116
+ {
117
+ "t": .6799999999999999,
118
+ "value": "#9c7a46"
119
+ },
120
+ {
121
+ "t": .97,
122
+ "value": "#9c7a46"
123
+ },
124
+ {
125
+ "t": 1,
126
+ "value": "#a5c45a"
127
+ }
128
+ ],
129
+ "leafCoverage": [
130
+ {
131
+ "t": 0,
132
+ "value": .3
133
+ },
134
+ {
135
+ "t": .1,
136
+ "value": 1
137
+ },
138
+ {
139
+ "t": .58,
140
+ "value": 1
141
+ },
142
+ {
143
+ "t": .7,
144
+ "value": 0
145
+ },
146
+ {
147
+ "t": .96,
148
+ "value": 0
149
+ },
150
+ {
151
+ "t": 1,
152
+ "value": .3
153
+ }
154
+ ],
155
+ "blossom": [{
156
+ "t": 0,
157
+ "value": 0
158
+ }],
159
+ "blossomColor": "#d8d48a"
160
+ };
161
+ var wind = {
162
+ "trunk": .08,
163
+ "branches": .3,
164
+ "leaves": .6,
165
+ "frequency": .9
166
+ };
167
+ var variation = {
168
+ "color": .1,
169
+ "growth": .1,
170
+ "season": .05
171
+ };
172
+ var ash_default = {
173
+ id: "ash",
174
+ name: "Ash",
175
+ form,
176
+ trunk,
177
+ branches,
178
+ foliage,
179
+ bark,
180
+ roots,
181
+ season,
182
+ wind,
183
+ variation
184
+ };
185
+ export { bark, branches, ash_default as default, foliage, form, id, name, roots, season, trunk, variation, wind };
186
+
187
+ //# sourceMappingURL=ash.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ash.js","names":[],"sources":[],"mappings":""}
@@ -0,0 +1,177 @@
1
+ {
2
+ "id": "ash",
3
+ "name": "Ash",
4
+ "form": "broadleaf",
5
+ "trunk": {
6
+ "length": 7,
7
+ "radius": 0.36,
8
+ "taper": 0.32,
9
+ "lengthVariation": 0.1,
10
+ "bend": 0.1,
11
+ "flare": 0.4
12
+ },
13
+ "branches": [
14
+ {
15
+ "angleVariation": 0.15,
16
+ "spiral": 137.5,
17
+ "lengthVariation": 0.15,
18
+ "taper": 0.42,
19
+ "bend": 0.12,
20
+ "gravity": 0.18,
21
+ "lengthProfile": [
22
+ {
23
+ "t": 0.48,
24
+ "value": 1.0
25
+ },
26
+ {
27
+ "t": 0.75,
28
+ "value": 0.9
29
+ },
30
+ {
31
+ "t": 1.0,
32
+ "value": 0.5
33
+ }
34
+ ],
35
+ "angleProfile": [
36
+ {
37
+ "t": 0.48,
38
+ "value": 1.2
39
+ },
40
+ {
41
+ "t": 1.0,
42
+ "value": 0.7
43
+ }
44
+ ],
45
+ "count": 8,
46
+ "start": 0.48,
47
+ "end": 0.96,
48
+ "angle": 42,
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.12,
58
+ "gravity": 0.2,
59
+ "count": 3,
60
+ "start": 0.3,
61
+ "end": 1,
62
+ "angle": 38,
63
+ "length": 0.6,
64
+ "radius": 0.6
65
+ },
66
+ {
67
+ "angleVariation": 0.15,
68
+ "spiral": 137.5,
69
+ "lengthVariation": 0.15,
70
+ "taper": 0.45,
71
+ "bend": 0.1,
72
+ "gravity": 0.15,
73
+ "count": 2,
74
+ "start": 0.4,
75
+ "end": 1,
76
+ "angle": 35,
77
+ "length": 0.5,
78
+ "radius": 0.6
79
+ }
80
+ ],
81
+ "foliage": {
82
+ "type": "compound",
83
+ "density": 0.4,
84
+ "size": 0.65,
85
+ "sizeVariation": 0.25,
86
+ "start": 0.15,
87
+ "angle": 45
88
+ },
89
+ "bark": {
90
+ "type": "furrowed",
91
+ "color": "#a19d93"
92
+ },
93
+ "roots": {
94
+ "count": 5,
95
+ "length": 0.2,
96
+ "lengthVariation": 0.3,
97
+ "radius": 0.3,
98
+ "angle": 14,
99
+ "bend": 0.3
100
+ },
101
+ "season": {
102
+ "leafColor": [
103
+ {
104
+ "t": 0,
105
+ "value": "#a5c45a"
106
+ },
107
+ {
108
+ "t": 0.2,
109
+ "value": "#5a8a3a"
110
+ },
111
+ {
112
+ "t": 0.5,
113
+ "value": "#5a8a3a"
114
+ },
115
+ {
116
+ "t": 0.58,
117
+ "value": "#c7b648"
118
+ },
119
+ {
120
+ "t": 0.6799999999999999,
121
+ "value": "#9c7a46"
122
+ },
123
+ {
124
+ "t": 0.97,
125
+ "value": "#9c7a46"
126
+ },
127
+ {
128
+ "t": 1,
129
+ "value": "#a5c45a"
130
+ }
131
+ ],
132
+ "leafCoverage": [
133
+ {
134
+ "t": 0,
135
+ "value": 0.3
136
+ },
137
+ {
138
+ "t": 0.1,
139
+ "value": 1
140
+ },
141
+ {
142
+ "t": 0.58,
143
+ "value": 1
144
+ },
145
+ {
146
+ "t": 0.7,
147
+ "value": 0
148
+ },
149
+ {
150
+ "t": 0.96,
151
+ "value": 0
152
+ },
153
+ {
154
+ "t": 1,
155
+ "value": 0.3
156
+ }
157
+ ],
158
+ "blossom": [
159
+ {
160
+ "t": 0,
161
+ "value": 0
162
+ }
163
+ ],
164
+ "blossomColor": "#d8d48a"
165
+ },
166
+ "wind": {
167
+ "trunk": 0.08,
168
+ "branches": 0.3,
169
+ "leaves": 0.6,
170
+ "frequency": 0.9
171
+ },
172
+ "variation": {
173
+ "color": 0.1,
174
+ "growth": 0.1,
175
+ "season": 0.05
176
+ }
177
+ }
@@ -0,0 +1,174 @@
1
+ // src/species/data/beech.json
2
+ var id = "beech";
3
+ var name = "Beech";
4
+ var form = "broadleaf";
5
+ var trunk = {
6
+ "length": 3.6,
7
+ "radius": .48,
8
+ "taper": .42,
9
+ "lengthVariation": .1,
10
+ "bend": .05,
11
+ "flare": .4
12
+ };
13
+ var branches = [{
14
+ "angleVariation": .15,
15
+ "spiral": 137.5,
16
+ "lengthVariation": .15,
17
+ "taper": .4,
18
+ "bend": .08,
19
+ "gravity": .12,
20
+ "lengthProfile": [
21
+ {
22
+ "t": .32,
23
+ "value": .95
24
+ },
25
+ {
26
+ "t": .6,
27
+ "value": 1
28
+ },
29
+ {
30
+ "t": .85,
31
+ "value": .8
32
+ },
33
+ {
34
+ "t": 1,
35
+ "value": .4
36
+ }
37
+ ],
38
+ "angleProfile": [{
39
+ "t": .32,
40
+ "value": 1.25
41
+ }, {
42
+ "t": 1,
43
+ "value": .5
44
+ }],
45
+ "count": 9,
46
+ "start": .32,
47
+ "end": .95,
48
+ "angle": 62,
49
+ "length": .8,
50
+ "radius": .55
51
+ }, {
52
+ "angleVariation": .15,
53
+ "spiral": 137.5,
54
+ "lengthVariation": .15,
55
+ "taper": .45,
56
+ "bend": .08,
57
+ "gravity": .05,
58
+ "count": 5,
59
+ "start": .25,
60
+ "end": 1,
61
+ "angle": 45,
62
+ "length": .5,
63
+ "radius": .6
64
+ }];
65
+ var foliage = {
66
+ "type": "broad",
67
+ "density": .6,
68
+ "size": .5,
69
+ "sizeVariation": .2,
70
+ "start": .05,
71
+ "angle": 55
72
+ };
73
+ var bark = {
74
+ "type": "smooth",
75
+ "color": "#a6a8a2"
76
+ };
77
+ var roots = {
78
+ "count": 5,
79
+ "length": .2,
80
+ "lengthVariation": .3,
81
+ "radius": .3,
82
+ "angle": 14,
83
+ "bend": .3
84
+ };
85
+ var season = {
86
+ "leafColor": [
87
+ {
88
+ "t": 0,
89
+ "value": "#b2d35c"
90
+ },
91
+ {
92
+ "t": .2,
93
+ "value": "#3c6a2a"
94
+ },
95
+ {
96
+ "t": .52,
97
+ "value": "#3c6a2a"
98
+ },
99
+ {
100
+ "t": .6,
101
+ "value": "#b8762e"
102
+ },
103
+ {
104
+ "t": .7,
105
+ "value": "#8e4e26"
106
+ },
107
+ {
108
+ "t": .97,
109
+ "value": "#8e4e26"
110
+ },
111
+ {
112
+ "t": 1,
113
+ "value": "#b2d35c"
114
+ }
115
+ ],
116
+ "leafCoverage": [
117
+ {
118
+ "t": 0,
119
+ "value": .3
120
+ },
121
+ {
122
+ "t": .1,
123
+ "value": 1
124
+ },
125
+ {
126
+ "t": .68,
127
+ "value": 1
128
+ },
129
+ {
130
+ "t": .85,
131
+ "value": 0
132
+ },
133
+ {
134
+ "t": .96,
135
+ "value": 0
136
+ },
137
+ {
138
+ "t": 1,
139
+ "value": .3
140
+ }
141
+ ],
142
+ "blossom": [{
143
+ "t": 0,
144
+ "value": 0
145
+ }],
146
+ "blossomColor": "#d8d48a"
147
+ };
148
+ var wind = {
149
+ "trunk": .08,
150
+ "branches": .3,
151
+ "leaves": .6,
152
+ "frequency": .9
153
+ };
154
+ var variation = {
155
+ "color": .1,
156
+ "growth": .1,
157
+ "season": .05
158
+ };
159
+ var beech_default = {
160
+ id,
161
+ name,
162
+ form,
163
+ trunk,
164
+ branches,
165
+ foliage,
166
+ bark,
167
+ roots,
168
+ season,
169
+ wind,
170
+ variation
171
+ };
172
+ export { bark, branches, beech_default as default, foliage, form, id, name, roots, season, trunk, variation, wind };
173
+
174
+ //# sourceMappingURL=beech.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"beech.js","names":[],"sources":[],"mappings":""}
@@ -0,0 +1,167 @@
1
+ {
2
+ "id": "beech",
3
+ "name": "Beech",
4
+ "form": "broadleaf",
5
+ "trunk": {
6
+ "length": 3.6,
7
+ "radius": 0.48,
8
+ "taper": 0.42,
9
+ "lengthVariation": 0.1,
10
+ "bend": 0.05,
11
+ "flare": 0.4
12
+ },
13
+ "branches": [
14
+ {
15
+ "angleVariation": 0.15,
16
+ "spiral": 137.5,
17
+ "lengthVariation": 0.15,
18
+ "taper": 0.4,
19
+ "bend": 0.08,
20
+ "gravity": 0.12,
21
+ "lengthProfile": [
22
+ {
23
+ "t": 0.32,
24
+ "value": 0.95
25
+ },
26
+ {
27
+ "t": 0.6,
28
+ "value": 1.0
29
+ },
30
+ {
31
+ "t": 0.85,
32
+ "value": 0.8
33
+ },
34
+ {
35
+ "t": 1.0,
36
+ "value": 0.4
37
+ }
38
+ ],
39
+ "angleProfile": [
40
+ {
41
+ "t": 0.32,
42
+ "value": 1.25
43
+ },
44
+ {
45
+ "t": 1.0,
46
+ "value": 0.5
47
+ }
48
+ ],
49
+ "count": 9,
50
+ "start": 0.32,
51
+ "end": 0.95,
52
+ "angle": 62,
53
+ "length": 0.8,
54
+ "radius": 0.55
55
+ },
56
+ {
57
+ "angleVariation": 0.15,
58
+ "spiral": 137.5,
59
+ "lengthVariation": 0.15,
60
+ "taper": 0.45,
61
+ "bend": 0.08,
62
+ "gravity": 0.05,
63
+ "count": 5,
64
+ "start": 0.25,
65
+ "end": 1,
66
+ "angle": 45,
67
+ "length": 0.5,
68
+ "radius": 0.6
69
+ }
70
+ ],
71
+ "foliage": {
72
+ "type": "broad",
73
+ "density": 0.6,
74
+ "size": 0.5,
75
+ "sizeVariation": 0.2,
76
+ "start": 0.05,
77
+ "angle": 55
78
+ },
79
+ "bark": {
80
+ "type": "smooth",
81
+ "color": "#a6a8a2"
82
+ },
83
+ "roots": {
84
+ "count": 5,
85
+ "length": 0.2,
86
+ "lengthVariation": 0.3,
87
+ "radius": 0.3,
88
+ "angle": 14,
89
+ "bend": 0.3
90
+ },
91
+ "season": {
92
+ "leafColor": [
93
+ {
94
+ "t": 0,
95
+ "value": "#b2d35c"
96
+ },
97
+ {
98
+ "t": 0.2,
99
+ "value": "#3c6a2a"
100
+ },
101
+ {
102
+ "t": 0.52,
103
+ "value": "#3c6a2a"
104
+ },
105
+ {
106
+ "t": 0.6,
107
+ "value": "#b8762e"
108
+ },
109
+ {
110
+ "t": 0.7,
111
+ "value": "#8e4e26"
112
+ },
113
+ {
114
+ "t": 0.97,
115
+ "value": "#8e4e26"
116
+ },
117
+ {
118
+ "t": 1,
119
+ "value": "#b2d35c"
120
+ }
121
+ ],
122
+ "leafCoverage": [
123
+ {
124
+ "t": 0,
125
+ "value": 0.3
126
+ },
127
+ {
128
+ "t": 0.1,
129
+ "value": 1
130
+ },
131
+ {
132
+ "t": 0.68,
133
+ "value": 1
134
+ },
135
+ {
136
+ "t": 0.85,
137
+ "value": 0
138
+ },
139
+ {
140
+ "t": 0.96,
141
+ "value": 0
142
+ },
143
+ {
144
+ "t": 1,
145
+ "value": 0.3
146
+ }
147
+ ],
148
+ "blossom": [
149
+ {
150
+ "t": 0,
151
+ "value": 0
152
+ }
153
+ ],
154
+ "blossomColor": "#d8d48a"
155
+ },
156
+ "wind": {
157
+ "trunk": 0.08,
158
+ "branches": 0.3,
159
+ "leaves": 0.6,
160
+ "frequency": 0.9
161
+ },
162
+ "variation": {
163
+ "color": 0.1,
164
+ "growth": 0.1,
165
+ "season": 0.05
166
+ }
167
+ }