-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
57 lines (54 loc) · 1.1 KB
/
config.js
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
/*
* Filename: config.js
* Description: Configuration of the cylindrical display preview.
*
* Version: 2024.11
* Author: Nico Reski
* GitHub: https://github.com/nicoversity
*/
// configuration related to the Three.js scene
const CylindricalDisplaySceneConfig = {
canvas : {
width: 1280,
height: 720
},
camera : {
fov: 45,
near: 0.2,
far: 100,
pos: {
x: 0,
y: 1.9,
z: 2
},
lookAt: {
x: 0,
y: 1.9,
z: 0
}
},
background: 0xdeebf7
};
// configuration related to the cylindrical display
const CylindricalDisplayConfig = {
radius: 3,
height: 1.851,
aboveGround: 1,
geometry: {
radialSegments: 256,
heightSegments: 32,
openEnded: true,
thetaStart: 0,
thetaEnd: Math.PI * 2
},
model: {
offset: 0.02,
width: 0.25,
radialSegments: 64,
color: 0xf0f0f0
}
};
export {
CylindricalDisplaySceneConfig as CDSceneConfig,
CylindricalDisplayConfig as CDConfig,
};