agentcut 0.2.26 → 0.2.28
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/README.md +177 -177
- package/dist/studio/agents/claude.js +3 -2
- package/dist/studio/agents/claude.js.map +1 -1
- package/dist/studio/chat.js +1 -1
- package/dist/studio/chat.js.map +1 -1
- package/dist/studio/cli.js +24 -24
- package/dist/studio/download.d.ts +24 -0
- package/dist/studio/download.js +234 -0
- package/dist/studio/download.js.map +1 -0
- package/dist/studio/host.js +8 -0
- package/dist/studio/host.js.map +1 -1
- package/dist/studio/housekeeping.d.ts +2 -2
- package/dist/studio/housekeeping.js +18 -17
- package/dist/studio/housekeeping.js.map +1 -1
- package/dist/studio/release-cursor.js +21 -21
- package/dist/studio/release-video.js +10 -10
- package/dist/studio/schema.d.ts +102 -0
- package/dist/studio/schema.js +5 -0
- package/dist/studio/schema.js.map +1 -1
- package/dist/studio/tools.js +7 -0
- package/dist/studio/tools.js.map +1 -1
- package/package.json +56 -56
- package/template/AGENTS.md +14 -14
- package/template/components/README.md +70 -70
- package/template/components/before-after/BeforeAfter.tsx +89 -89
- package/template/components/catalog.ts +107 -107
- package/template/components/cinematic/Device3D.tsx +324 -324
- package/template/components/cinematic/devices3d/display-model.ts +184 -184
- package/template/components/cinematic/devices3d/iphone-model.ts +643 -643
- package/template/components/cinematic/devices3d/macbook-model.ts +608 -608
- package/template/components/cinematic/devices3d/models.ts +657 -657
- package/template/components/cinematic/devices3d/runtime.ts +267 -267
- package/template/components/cinematic/math.ts +100 -100
- package/template/components/color/grade-effect.ts +650 -650
- package/template/components/color/grade.ts +512 -512
- package/template/components/color/looks.ts +154 -154
- package/template/components/countdown/Countdown.tsx +166 -166
- package/template/components/dot-trace-title/DotTraceTitle.tsx +181 -181
- package/template/components/dot-trace-title/meta.json +51 -51
- package/template/components/generate/GenerateReveal.tsx +381 -381
- package/template/components/hook-card/HookCard.tsx +554 -554
- package/template/components/index.ts +199 -199
- package/template/components/lib.ts +191 -191
- package/template/components/line-diagram/LineDiagram.tsx +205 -205
- package/template/components/line-diagram/meta.json +215 -215
- package/template/components/list-card/ListCard.tsx +104 -104
- package/template/components/live-clip.ts +75 -75
- package/template/components/looks.tsx +1447 -1447
- package/template/components/loops/LoopCanvas.tsx +132 -132
- package/template/components/loops/engine.ts +184 -184
- package/template/components/loops/library.ts +667 -667
- package/template/components/loops/library2.ts +777 -777
- package/template/components/motion-loop/MotionLoop.tsx +37 -37
- package/template/components/motion-loop/meta.json +311 -311
- package/template/components/props.ts +73 -73
- package/template/components/quote-card/QuoteCard.tsx +71 -71
- package/template/components/style-layer.tsx +233 -233
- package/template/components/styles.ts +113 -113
- package/template/components/types.ts +66 -66
- package/template/components/word-pop/WordPop.tsx +59 -59
- package/template/components/word-stack/WordStack.tsx +122 -122
- package/template/presets/charcoal-sketch/PROMPT.md +48 -48
- package/template/presets/charcoal-sketch/scripts/duck_music.py +34 -34
- package/template/presets/punk-cut-paper/scenes/Motif.tsx +376 -376
- package/template/presets/punk-cut-paper/scenes/Photo.tsx +73 -73
- package/template/presets/punk-cut-paper/scenes/Ransom.tsx +119 -119
- package/template/runtime/composition.tsx +1207 -1189
- package/template/runtime/helpers.tsx +230 -230
- package/template/runtime/index.tsx +26 -22
- package/template/runtime/types.ts +324 -315
- package/template/skill/SKILL.md +188 -187
- package/template/skill/references/broll.md +44 -44
- package/template/skill/references/browser-export.md +61 -61
- package/template/skill/references/cinematic.md +206 -206
- package/template/skill/references/color.md +79 -79
- package/template/skill/references/craft.md +97 -97
- package/template/skill/references/editing-styles.md +57 -57
- package/template/skill/references/feature-launch.md +34 -34
- package/template/skill/references/footage.md +72 -72
- package/template/skill/references/format.md +145 -142
- package/template/skill/references/how-to.md +146 -146
- package/template/skill/references/launch-direction.md +89 -89
- package/template/skill/references/loops.md +151 -151
- package/template/skill/references/mcp-external.md +19 -19
- package/template/skill/references/performance.md +93 -93
- package/template/skill/references/person-cutout.md +19 -19
- package/template/skill/references/presets.md +60 -60
- package/template/skill/references/product-launch.md +134 -134
- package/template/skill/references/release-capture.md +53 -53
- package/template/skill/references/sound.md +167 -166
- package/template/skill/references/style-spy.md +160 -160
- package/template/skill/references/website-howto.md +45 -45
- package/template/starter/.studio/chat.json +1 -1
- package/template/starter/layers.json +46 -46
- package/template/starter/notes.md +4 -4
- package/template/starter/project.json +13 -13
- package/template/starter/scenes/Title.tsx +38 -38
|
@@ -1,184 +1,184 @@
|
|
|
1
|
-
import * as THREE from "three";
|
|
2
|
-
import { RoundedBoxGeometry } from "three/examples/jsm/geometries/RoundedBoxGeometry.js";
|
|
3
|
-
import { SVGLoader } from "three/examples/jsm/loaders/SVGLoader.js";
|
|
4
|
-
import {
|
|
5
|
-
APPLE_MARK_SVG,
|
|
6
|
-
createRoundedExtrudedGeometry,
|
|
7
|
-
createRoundedPlaneGeometry,
|
|
8
|
-
} from "./iphone-model";
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Procedural 27-inch desktop display on an aluminium stand, in the spirit of
|
|
12
|
-
* a Studio Display. Same millimetre scale as the laptop so the two read as
|
|
13
|
-
* the same family. The foot rests on y = 0; the screen faces +z.
|
|
14
|
-
*/
|
|
15
|
-
const MM = 2 / 312.6;
|
|
16
|
-
const mm = (value: number) => value * MM;
|
|
17
|
-
|
|
18
|
-
const BODY = { w: 623, h: 361.4, t: 21, corner: 13, bezel: 12.6, glassInset: 1.1 };
|
|
19
|
-
const STAND = {
|
|
20
|
-
width: 152,
|
|
21
|
-
thickness: 9.5,
|
|
22
|
-
lift: 100,
|
|
23
|
-
attach: 40,
|
|
24
|
-
lean: 15,
|
|
25
|
-
foot: 150,
|
|
26
|
-
corner: 3.2,
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export const DISPLAY_SCREEN_ASPECT =
|
|
30
|
-
(BODY.w - BODY.bezel * 2) / (BODY.h - BODY.bezel * 2);
|
|
31
|
-
|
|
32
|
-
function createLogoGeometry(width: number) {
|
|
33
|
-
const svg = new SVGLoader().parse(APPLE_MARK_SVG);
|
|
34
|
-
const shapes = svg.paths.flatMap((path) => SVGLoader.createShapes(path));
|
|
35
|
-
const geometry = new THREE.ShapeGeometry(shapes, 32);
|
|
36
|
-
geometry.center();
|
|
37
|
-
const scale = width / 814;
|
|
38
|
-
geometry.scale(scale, -scale, 1);
|
|
39
|
-
return geometry;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export interface DisplayModelOptions {
|
|
43
|
-
screenMaterial?: THREE.Material;
|
|
44
|
-
finishColor?: THREE.ColorRepresentation;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export function createDisplayModel(options: DisplayModelOptions = {}) {
|
|
48
|
-
const root = new THREE.Group();
|
|
49
|
-
root.name = "procedural-display";
|
|
50
|
-
const finish = new THREE.Color(options.finishColor ?? 0xcfd1d3);
|
|
51
|
-
const isDark = finish.getHSL({ h: 0, s: 0, l: 0 }).l < 0.35;
|
|
52
|
-
const aluminum = new THREE.MeshPhysicalMaterial({
|
|
53
|
-
color: finish,
|
|
54
|
-
metalness: 0.92,
|
|
55
|
-
roughness: 0.38,
|
|
56
|
-
clearcoat: 0.1,
|
|
57
|
-
clearcoatRoughness: 0.5,
|
|
58
|
-
});
|
|
59
|
-
const glass = new THREE.MeshBasicMaterial({ color: 0x030405 });
|
|
60
|
-
const lens = new THREE.MeshPhysicalMaterial({
|
|
61
|
-
color: 0x10162a,
|
|
62
|
-
roughness: 0.05,
|
|
63
|
-
metalness: 0.3,
|
|
64
|
-
clearcoat: 1,
|
|
65
|
-
});
|
|
66
|
-
const logoMaterial = new THREE.MeshPhysicalMaterial({
|
|
67
|
-
color: finish
|
|
68
|
-
.clone()
|
|
69
|
-
.lerp(new THREE.Color(isDark ? 0xffffff : 0x000000), isDark ? 0.2 : 0.45),
|
|
70
|
-
metalness: 1,
|
|
71
|
-
roughness: 0.05,
|
|
72
|
-
side: THREE.DoubleSide,
|
|
73
|
-
});
|
|
74
|
-
const screenOff = new THREE.MeshBasicMaterial({ color: 0x050608 });
|
|
75
|
-
|
|
76
|
-
const add = (name: string, mesh: THREE.Mesh, parent: THREE.Object3D = root) => {
|
|
77
|
-
mesh.name = name;
|
|
78
|
-
mesh.castShadow = true;
|
|
79
|
-
mesh.receiveShadow = true;
|
|
80
|
-
parent.add(mesh);
|
|
81
|
-
return mesh;
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
// ── Stand: a leaning neck that folds into a flat foot ──────────────
|
|
85
|
-
const lean = THREE.MathUtils.degToRad(STAND.lean);
|
|
86
|
-
const centerY = STAND.lift + BODY.h / 2;
|
|
87
|
-
const attachY = centerY - STAND.attach;
|
|
88
|
-
const neckLength = attachY / Math.cos(lean);
|
|
89
|
-
const attachZ = -BODY.t + 2;
|
|
90
|
-
const bottomZ = attachZ - attachY * Math.tan(lean);
|
|
91
|
-
|
|
92
|
-
const neck = add(
|
|
93
|
-
"display-neck",
|
|
94
|
-
new THREE.Mesh(
|
|
95
|
-
new RoundedBoxGeometry(
|
|
96
|
-
mm(STAND.width),
|
|
97
|
-
mm(neckLength),
|
|
98
|
-
mm(STAND.thickness),
|
|
99
|
-
3,
|
|
100
|
-
mm(STAND.corner),
|
|
101
|
-
),
|
|
102
|
-
aluminum,
|
|
103
|
-
),
|
|
104
|
-
);
|
|
105
|
-
neck.position.set(0, mm(attachY / 2), mm((attachZ + bottomZ) / 2 - STAND.thickness / 2));
|
|
106
|
-
neck.rotation.x = lean;
|
|
107
|
-
|
|
108
|
-
const foot = add(
|
|
109
|
-
"display-foot",
|
|
110
|
-
new THREE.Mesh(
|
|
111
|
-
new RoundedBoxGeometry(
|
|
112
|
-
mm(STAND.width),
|
|
113
|
-
mm(STAND.thickness * 0.8),
|
|
114
|
-
mm(STAND.foot),
|
|
115
|
-
3,
|
|
116
|
-
mm(STAND.corner),
|
|
117
|
-
),
|
|
118
|
-
aluminum,
|
|
119
|
-
),
|
|
120
|
-
);
|
|
121
|
-
foot.position.set(
|
|
122
|
-
0,
|
|
123
|
-
mm((STAND.thickness * 0.8) / 2),
|
|
124
|
-
mm(bottomZ - STAND.thickness + STAND.foot / 2 - 18),
|
|
125
|
-
);
|
|
126
|
-
|
|
127
|
-
// ── Body ───────────────────────────────────────────────────────────
|
|
128
|
-
const bevel = mm(0.8);
|
|
129
|
-
const body = add(
|
|
130
|
-
"display-body",
|
|
131
|
-
new THREE.Mesh(
|
|
132
|
-
createRoundedExtrudedGeometry(
|
|
133
|
-
mm(BODY.w),
|
|
134
|
-
mm(BODY.h),
|
|
135
|
-
mm(BODY.corner),
|
|
136
|
-
mm(BODY.t) - bevel * 2,
|
|
137
|
-
bevel,
|
|
138
|
-
bevel,
|
|
139
|
-
),
|
|
140
|
-
aluminum,
|
|
141
|
-
),
|
|
142
|
-
);
|
|
143
|
-
body.position.set(0, mm(centerY), -mm(BODY.t / 2));
|
|
144
|
-
|
|
145
|
-
const front = add(
|
|
146
|
-
"display-glass",
|
|
147
|
-
new THREE.Mesh(
|
|
148
|
-
createRoundedPlaneGeometry(
|
|
149
|
-
mm(BODY.w - BODY.glassInset * 2),
|
|
150
|
-
mm(BODY.h - BODY.glassInset * 2),
|
|
151
|
-
mm(BODY.corner - BODY.glassInset),
|
|
152
|
-
),
|
|
153
|
-
glass,
|
|
154
|
-
),
|
|
155
|
-
);
|
|
156
|
-
front.position.set(0, mm(centerY), mm(0.3));
|
|
157
|
-
|
|
158
|
-
const screenWidth = BODY.w - BODY.bezel * 2;
|
|
159
|
-
const screenHeight = BODY.h - BODY.bezel * 2;
|
|
160
|
-
const screen = add(
|
|
161
|
-
"display-surface",
|
|
162
|
-
new THREE.Mesh(
|
|
163
|
-
createRoundedPlaneGeometry(mm(screenWidth), mm(screenHeight), mm(3.2)),
|
|
164
|
-
options.screenMaterial ?? screenOff,
|
|
165
|
-
),
|
|
166
|
-
);
|
|
167
|
-
screen.position.set(0, mm(centerY), mm(0.6));
|
|
168
|
-
screen.castShadow = false;
|
|
169
|
-
|
|
170
|
-
const camera = add(
|
|
171
|
-
"display-camera",
|
|
172
|
-
new THREE.Mesh(new THREE.CircleGeometry(mm(1.6), 24), lens),
|
|
173
|
-
);
|
|
174
|
-
camera.position.set(0, mm(centerY + BODY.h / 2 - BODY.bezel / 2), mm(0.7));
|
|
175
|
-
|
|
176
|
-
const logo = add(
|
|
177
|
-
"display-logo",
|
|
178
|
-
new THREE.Mesh(createLogoGeometry(mm(34)), logoMaterial),
|
|
179
|
-
);
|
|
180
|
-
logo.rotation.y = Math.PI;
|
|
181
|
-
logo.position.set(0, mm(centerY + 30), -mm(BODY.t) - mm(0.4));
|
|
182
|
-
|
|
183
|
-
return root;
|
|
184
|
-
}
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
import { RoundedBoxGeometry } from "three/examples/jsm/geometries/RoundedBoxGeometry.js";
|
|
3
|
+
import { SVGLoader } from "three/examples/jsm/loaders/SVGLoader.js";
|
|
4
|
+
import {
|
|
5
|
+
APPLE_MARK_SVG,
|
|
6
|
+
createRoundedExtrudedGeometry,
|
|
7
|
+
createRoundedPlaneGeometry,
|
|
8
|
+
} from "./iphone-model";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Procedural 27-inch desktop display on an aluminium stand, in the spirit of
|
|
12
|
+
* a Studio Display. Same millimetre scale as the laptop so the two read as
|
|
13
|
+
* the same family. The foot rests on y = 0; the screen faces +z.
|
|
14
|
+
*/
|
|
15
|
+
const MM = 2 / 312.6;
|
|
16
|
+
const mm = (value: number) => value * MM;
|
|
17
|
+
|
|
18
|
+
const BODY = { w: 623, h: 361.4, t: 21, corner: 13, bezel: 12.6, glassInset: 1.1 };
|
|
19
|
+
const STAND = {
|
|
20
|
+
width: 152,
|
|
21
|
+
thickness: 9.5,
|
|
22
|
+
lift: 100,
|
|
23
|
+
attach: 40,
|
|
24
|
+
lean: 15,
|
|
25
|
+
foot: 150,
|
|
26
|
+
corner: 3.2,
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export const DISPLAY_SCREEN_ASPECT =
|
|
30
|
+
(BODY.w - BODY.bezel * 2) / (BODY.h - BODY.bezel * 2);
|
|
31
|
+
|
|
32
|
+
function createLogoGeometry(width: number) {
|
|
33
|
+
const svg = new SVGLoader().parse(APPLE_MARK_SVG);
|
|
34
|
+
const shapes = svg.paths.flatMap((path) => SVGLoader.createShapes(path));
|
|
35
|
+
const geometry = new THREE.ShapeGeometry(shapes, 32);
|
|
36
|
+
geometry.center();
|
|
37
|
+
const scale = width / 814;
|
|
38
|
+
geometry.scale(scale, -scale, 1);
|
|
39
|
+
return geometry;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface DisplayModelOptions {
|
|
43
|
+
screenMaterial?: THREE.Material;
|
|
44
|
+
finishColor?: THREE.ColorRepresentation;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function createDisplayModel(options: DisplayModelOptions = {}) {
|
|
48
|
+
const root = new THREE.Group();
|
|
49
|
+
root.name = "procedural-display";
|
|
50
|
+
const finish = new THREE.Color(options.finishColor ?? 0xcfd1d3);
|
|
51
|
+
const isDark = finish.getHSL({ h: 0, s: 0, l: 0 }).l < 0.35;
|
|
52
|
+
const aluminum = new THREE.MeshPhysicalMaterial({
|
|
53
|
+
color: finish,
|
|
54
|
+
metalness: 0.92,
|
|
55
|
+
roughness: 0.38,
|
|
56
|
+
clearcoat: 0.1,
|
|
57
|
+
clearcoatRoughness: 0.5,
|
|
58
|
+
});
|
|
59
|
+
const glass = new THREE.MeshBasicMaterial({ color: 0x030405 });
|
|
60
|
+
const lens = new THREE.MeshPhysicalMaterial({
|
|
61
|
+
color: 0x10162a,
|
|
62
|
+
roughness: 0.05,
|
|
63
|
+
metalness: 0.3,
|
|
64
|
+
clearcoat: 1,
|
|
65
|
+
});
|
|
66
|
+
const logoMaterial = new THREE.MeshPhysicalMaterial({
|
|
67
|
+
color: finish
|
|
68
|
+
.clone()
|
|
69
|
+
.lerp(new THREE.Color(isDark ? 0xffffff : 0x000000), isDark ? 0.2 : 0.45),
|
|
70
|
+
metalness: 1,
|
|
71
|
+
roughness: 0.05,
|
|
72
|
+
side: THREE.DoubleSide,
|
|
73
|
+
});
|
|
74
|
+
const screenOff = new THREE.MeshBasicMaterial({ color: 0x050608 });
|
|
75
|
+
|
|
76
|
+
const add = (name: string, mesh: THREE.Mesh, parent: THREE.Object3D = root) => {
|
|
77
|
+
mesh.name = name;
|
|
78
|
+
mesh.castShadow = true;
|
|
79
|
+
mesh.receiveShadow = true;
|
|
80
|
+
parent.add(mesh);
|
|
81
|
+
return mesh;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
// ── Stand: a leaning neck that folds into a flat foot ──────────────
|
|
85
|
+
const lean = THREE.MathUtils.degToRad(STAND.lean);
|
|
86
|
+
const centerY = STAND.lift + BODY.h / 2;
|
|
87
|
+
const attachY = centerY - STAND.attach;
|
|
88
|
+
const neckLength = attachY / Math.cos(lean);
|
|
89
|
+
const attachZ = -BODY.t + 2;
|
|
90
|
+
const bottomZ = attachZ - attachY * Math.tan(lean);
|
|
91
|
+
|
|
92
|
+
const neck = add(
|
|
93
|
+
"display-neck",
|
|
94
|
+
new THREE.Mesh(
|
|
95
|
+
new RoundedBoxGeometry(
|
|
96
|
+
mm(STAND.width),
|
|
97
|
+
mm(neckLength),
|
|
98
|
+
mm(STAND.thickness),
|
|
99
|
+
3,
|
|
100
|
+
mm(STAND.corner),
|
|
101
|
+
),
|
|
102
|
+
aluminum,
|
|
103
|
+
),
|
|
104
|
+
);
|
|
105
|
+
neck.position.set(0, mm(attachY / 2), mm((attachZ + bottomZ) / 2 - STAND.thickness / 2));
|
|
106
|
+
neck.rotation.x = lean;
|
|
107
|
+
|
|
108
|
+
const foot = add(
|
|
109
|
+
"display-foot",
|
|
110
|
+
new THREE.Mesh(
|
|
111
|
+
new RoundedBoxGeometry(
|
|
112
|
+
mm(STAND.width),
|
|
113
|
+
mm(STAND.thickness * 0.8),
|
|
114
|
+
mm(STAND.foot),
|
|
115
|
+
3,
|
|
116
|
+
mm(STAND.corner),
|
|
117
|
+
),
|
|
118
|
+
aluminum,
|
|
119
|
+
),
|
|
120
|
+
);
|
|
121
|
+
foot.position.set(
|
|
122
|
+
0,
|
|
123
|
+
mm((STAND.thickness * 0.8) / 2),
|
|
124
|
+
mm(bottomZ - STAND.thickness + STAND.foot / 2 - 18),
|
|
125
|
+
);
|
|
126
|
+
|
|
127
|
+
// ── Body ───────────────────────────────────────────────────────────
|
|
128
|
+
const bevel = mm(0.8);
|
|
129
|
+
const body = add(
|
|
130
|
+
"display-body",
|
|
131
|
+
new THREE.Mesh(
|
|
132
|
+
createRoundedExtrudedGeometry(
|
|
133
|
+
mm(BODY.w),
|
|
134
|
+
mm(BODY.h),
|
|
135
|
+
mm(BODY.corner),
|
|
136
|
+
mm(BODY.t) - bevel * 2,
|
|
137
|
+
bevel,
|
|
138
|
+
bevel,
|
|
139
|
+
),
|
|
140
|
+
aluminum,
|
|
141
|
+
),
|
|
142
|
+
);
|
|
143
|
+
body.position.set(0, mm(centerY), -mm(BODY.t / 2));
|
|
144
|
+
|
|
145
|
+
const front = add(
|
|
146
|
+
"display-glass",
|
|
147
|
+
new THREE.Mesh(
|
|
148
|
+
createRoundedPlaneGeometry(
|
|
149
|
+
mm(BODY.w - BODY.glassInset * 2),
|
|
150
|
+
mm(BODY.h - BODY.glassInset * 2),
|
|
151
|
+
mm(BODY.corner - BODY.glassInset),
|
|
152
|
+
),
|
|
153
|
+
glass,
|
|
154
|
+
),
|
|
155
|
+
);
|
|
156
|
+
front.position.set(0, mm(centerY), mm(0.3));
|
|
157
|
+
|
|
158
|
+
const screenWidth = BODY.w - BODY.bezel * 2;
|
|
159
|
+
const screenHeight = BODY.h - BODY.bezel * 2;
|
|
160
|
+
const screen = add(
|
|
161
|
+
"display-surface",
|
|
162
|
+
new THREE.Mesh(
|
|
163
|
+
createRoundedPlaneGeometry(mm(screenWidth), mm(screenHeight), mm(3.2)),
|
|
164
|
+
options.screenMaterial ?? screenOff,
|
|
165
|
+
),
|
|
166
|
+
);
|
|
167
|
+
screen.position.set(0, mm(centerY), mm(0.6));
|
|
168
|
+
screen.castShadow = false;
|
|
169
|
+
|
|
170
|
+
const camera = add(
|
|
171
|
+
"display-camera",
|
|
172
|
+
new THREE.Mesh(new THREE.CircleGeometry(mm(1.6), 24), lens),
|
|
173
|
+
);
|
|
174
|
+
camera.position.set(0, mm(centerY + BODY.h / 2 - BODY.bezel / 2), mm(0.7));
|
|
175
|
+
|
|
176
|
+
const logo = add(
|
|
177
|
+
"display-logo",
|
|
178
|
+
new THREE.Mesh(createLogoGeometry(mm(34)), logoMaterial),
|
|
179
|
+
);
|
|
180
|
+
logo.rotation.y = Math.PI;
|
|
181
|
+
logo.position.set(0, mm(centerY + 30), -mm(BODY.t) - mm(0.4));
|
|
182
|
+
|
|
183
|
+
return root;
|
|
184
|
+
}
|