-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtypes.d.ts
More file actions
57 lines (49 loc) · 1.05 KB
/
types.d.ts
File metadata and controls
57 lines (49 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
type Material = {
texture: string;
color: string;
pbr?: string;
image?: string;
metallic?: number;
roughness?: number;
};
type MaterialBlock = [material: Material];
type Shape = {
id: string;
type: string;
size: {
w?: number; // width
h?: number; // height
l?: number; // length
r?: number; // radius
d?: number; // diameter
t?: number; // diameter of top
b?: number; // diameter of bottom
s?: number; // tile size
};
tileSize?: number; // tile size for walls and ground
material: MaterialBlock;
};
type ShapeBlock = [shape: Shape];
type Coords = {
x: number;
y: number;
z: number;
};
type CoordsBlock = [coords: Coords];
type Light = {
id: string;
type: string;
props: {
b?: number; // brightness
c?: string; // color
s?: number; // beam size
r?: number; // range
x?: number; // x position of directionality
y?: number; // y position of directionality
z?: number; // z position of directionality
};
};
type LightBlock = [light: Light];
type Skybox = {
asset: string;
};