telperion 0.1.1 → 0.1.3
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.
package/dist/browser/leaf.d.ts
CHANGED
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
* dropped largest component in the top two bits, the other three below it, ten
|
|
11
11
|
* bits each, over plus or minus one over root two. Word 1 is x and y as
|
|
12
12
|
* unsigned normals over the reference box, word 2 is z in its low half and the
|
|
13
|
-
* uniform scale as a half float in its high half.
|
|
13
|
+
* uniform scale as a half float in its high half. A scale is never negative,
|
|
14
|
+
* so the half float's sign bit marks a withered leaf instead. */
|
|
14
15
|
/** Words one stored leaf occupies. */
|
|
15
16
|
export declare const LEAF_WORDS = 3;
|
|
16
17
|
export type Vector = [number, number, number];
|
|
@@ -28,7 +29,8 @@ export declare function leafWords(leaves: Uint32Array, index: number): LeafWords
|
|
|
28
29
|
/** Where a leaf stands. The crown's bounds and any spatial pass read nothing
|
|
29
30
|
* else, so neither pays for a rotation it never uses. */
|
|
30
31
|
export declare function leafPosition(words: LeafWords, reference: LeafReference): Vector;
|
|
31
|
-
/** The uniform scale a leaf carries, out of the high half of word 2
|
|
32
|
+
/** The uniform scale a leaf carries, out of the high half of word 2, whether
|
|
33
|
+
* or not the leaf is withered. */
|
|
32
34
|
export declare function leafScale(words: LeafWords): number;
|
|
33
35
|
/** The rotation word 0 carries, as the three columns of its matrix: side, the
|
|
34
36
|
* leaf's own axis, face. */
|
|
@@ -10,10 +10,12 @@ export interface Family {
|
|
|
10
10
|
clumpSystemOrder: number;
|
|
11
11
|
divergence: number;
|
|
12
12
|
forwardLean: number;
|
|
13
|
+
leafBaseFlatness: number;
|
|
13
14
|
leafBaseLength: number;
|
|
14
15
|
leafBasePitch: number;
|
|
15
16
|
leafBaseRadius: number;
|
|
16
17
|
leafBaseWeathering: number;
|
|
18
|
+
leafBaseWidth: number;
|
|
17
19
|
leafBases: number;
|
|
18
20
|
leafletCount: number;
|
|
19
21
|
leafletPitch: number;
|
|
@@ -37,6 +39,9 @@ export interface Family {
|
|
|
37
39
|
shortShootSpread: number;
|
|
38
40
|
size: number;
|
|
39
41
|
sizeVariation: number;
|
|
42
|
+
skirtFronds: number;
|
|
43
|
+
skirtLength: number;
|
|
44
|
+
skirtPitch: number;
|
|
40
45
|
spacing: number;
|
|
41
46
|
surfaceContact: number;
|
|
42
47
|
terminalLeaflet: number;
|
|
@@ -105,6 +110,9 @@ export interface Family {
|
|
|
105
110
|
leafBackBlue: number;
|
|
106
111
|
leafBackGreen: number;
|
|
107
112
|
leafBackRed: number;
|
|
113
|
+
leafDeadBlue: number;
|
|
114
|
+
leafDeadGreen: number;
|
|
115
|
+
leafDeadRed: number;
|
|
108
116
|
leafFrontBlue: number;
|
|
109
117
|
leafFrontGreen: number;
|
|
110
118
|
leafFrontRed: number;
|
|
Binary file
|
|
Binary file
|