@iwsdk/create 1.1.0-rc.1 → 1.1.0-rc.2

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 (60) hide show
  1. package/dist/cli.js +8 -13
  2. package/dist/guidance/agents/.agents/skills/iwsdk-compose-scene/SKILL.md +16 -2
  3. package/dist/guidance/agents/.agents/skills/iwsdk-compose-scene/references/environment-recipes.md +234 -0
  4. package/dist/guidance/agents/.agents/skills/iwsdk-compose-scene/references/scene-format.md +6 -0
  5. package/dist/guidance/agents/.agents/skills/iwsdk-dev/references/api-reference.md +56 -33
  6. package/dist/guidance/agents/.agents/skills/iwsdk-dev/references/iterate.md +24 -5
  7. package/dist/guidance/agents/.agents/skills/iwsdk-glasses-test/SKILL.md +281 -0
  8. package/dist/guidance/agents/.agents/skills/iwsdk-grab/SKILL.md +24 -1
  9. package/dist/guidance/agents/.agents/skills/iwsdk-ray/SKILL.md +3 -1
  10. package/dist/guidance/agents/.agents/skills/iwsdk-ui/SKILL.md +25 -2
  11. package/dist/guidance/claude/.claude/agents/iwsdk-project-code-reviewer.md +73 -6
  12. package/dist/guidance/claude/.claude/rules/assets-and-manifest.md +2 -0
  13. package/dist/guidance/claude/.claude/rules/ecs-api.md +1 -1
  14. package/dist/guidance/claude/.claude/rules/scene-json.md +3 -1
  15. package/dist/guidance/claude/.claude/rules/uikitml.md +5 -0
  16. package/dist/guidance/claude/.claude/settings.json +1 -0
  17. package/dist/guidance/claude/.claude/skills/iwsdk-compose-scene/SKILL.md +16 -2
  18. package/dist/guidance/claude/.claude/skills/iwsdk-compose-scene/references/environment-recipes.md +234 -0
  19. package/dist/guidance/claude/.claude/skills/iwsdk-compose-scene/references/scene-format.md +6 -0
  20. package/dist/guidance/claude/.claude/skills/iwsdk-dev/references/api-reference.md +56 -33
  21. package/dist/guidance/claude/.claude/skills/iwsdk-dev/references/iterate.md +24 -5
  22. package/dist/guidance/claude/.claude/skills/iwsdk-glasses-test/SKILL.md +281 -0
  23. package/dist/guidance/claude/.claude/skills/iwsdk-grab/SKILL.md +24 -1
  24. package/dist/guidance/claude/.claude/skills/iwsdk-ray/SKILL.md +3 -1
  25. package/dist/guidance/claude/.claude/skills/iwsdk-ui/SKILL.md +25 -2
  26. package/dist/guidance/common/AGENTS.md +25 -12
  27. package/dist/guidance/copilot/.github/instructions/assets-and-manifest.instructions.md +2 -0
  28. package/dist/guidance/copilot/.github/instructions/ecs-api.instructions.md +1 -1
  29. package/dist/guidance/copilot/.github/instructions/scene-json.instructions.md +3 -1
  30. package/dist/guidance/copilot/.github/instructions/uikitml.instructions.md +5 -0
  31. package/dist/guidance/cursor/.cursor/rules/assets-and-manifest.mdc +2 -0
  32. package/dist/guidance/cursor/.cursor/rules/ecs-api.mdc +1 -1
  33. package/dist/guidance/cursor/.cursor/rules/scene-json.mdc +3 -1
  34. package/dist/guidance/cursor/.cursor/rules/uikitml.mdc +5 -0
  35. package/dist/guidance/scoped-agents/public/scenes/AGENTS.md +3 -1
  36. package/dist/guidance/scoped-agents/public/ui/AGENTS.md +5 -0
  37. package/dist/guidance/scoped-agents/src/AGENTS.md +3 -1
  38. package/dist/template/common/README.md +19 -0
  39. package/dist/template/common/public/ui/label-grab.uikitml +57 -0
  40. package/dist/template/common/public/ui/label-select.uikitml +57 -0
  41. package/dist/template/common/public/ui/label-spin.uikitml +57 -0
  42. package/dist/template/common/public/ui/welcome.uikitml +33 -32
  43. package/dist/template/common/src/assets.ts +32 -23
  44. package/dist/template/common/src/scene-assets/decor.scene-asset.ts +781 -0
  45. package/dist/template/common/src/scene-assets/studio.scene-asset.ts +298 -0
  46. package/dist/template/common-js/README.md +19 -0
  47. package/dist/template/common-js/public/ui/label-grab.uikitml +57 -0
  48. package/dist/template/common-js/public/ui/label-select.uikitml +57 -0
  49. package/dist/template/common-js/public/ui/label-spin.uikitml +57 -0
  50. package/dist/template/common-js/public/ui/welcome.uikitml +33 -32
  51. package/dist/template/common-js/src/assets.js +20 -23
  52. package/dist/template/common-js/src/scene-assets/decor.scene-asset.js +554 -0
  53. package/dist/template/common-js/src/scene-assets/studio.scene-asset.js +236 -0
  54. package/dist/template/scenes/ar.iwsdk.scene.json +354 -58
  55. package/dist/template/scenes/immersive.iwsdk.scene.json +435 -54
  56. package/package.json +4 -4
  57. package/dist/template/common/public/gltf/webxr-banner/banner.gltf +0 -68
  58. package/dist/template/common/public/textures/webxr.png +0 -0
  59. package/dist/template/common-js/public/gltf/webxr-banner/banner.gltf +0 -68
  60. package/dist/template/common-js/public/textures/webxr.png +0 -0
@@ -0,0 +1,236 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import { createSceneMaterial, createScenePrimitiveObject, DataTexture, Group, IcosahedronGeometry, LinearFilter, LinearMipmapLinearFilter, Mesh, MeshStandardMaterial, RepeatWrapping, RGBAFormat, SRGBColorSpace, TorusKnotGeometry, UnsignedByteType, } from '@iwsdk/core';
8
+ /**
9
+ * Starter-only studio set, built in code so the starter downloads no extra
10
+ * models: floor, stage, plinths and the graphite pieces you interact with.
11
+ * Each one is registered in src/assets.ts and placed by the scene; it is safe
12
+ * to delete them together with those asset entries and scene nodes.
13
+ *
14
+ * The rest of the look is authored in the scene with built-in components: the
15
+ * sky is the level root's DomeGradient, the floor fades into it with the
16
+ * floor node's DomeFade, and the soft blobs and the AR shadow floor are
17
+ * ContactShadow and ShadowCatcher nodes.
18
+ */
19
+ const clayMaterial = createSceneMaterial({
20
+ id: 'studio-clay',
21
+ model: 'standard',
22
+ baseColor: '#EEE9E0',
23
+ roughness: 0.9,
24
+ });
25
+ const stoneMaterial = createSceneMaterial({
26
+ id: 'studio-stone',
27
+ model: 'standard',
28
+ roughness: 0.7,
29
+ textures: {
30
+ albedo: {
31
+ type: 'procedural',
32
+ algorithm: 'periodic-fbm-v1',
33
+ resolution: [256, 256],
34
+ seed: 7,
35
+ bands: [
36
+ { frequency: [110, 110], amplitude: 0.7 },
37
+ { frequency: [240, 240], amplitude: 0.3 },
38
+ ],
39
+ ramp: [
40
+ { at: 0, color: '#A59E93' },
41
+ { at: 1, color: '#B0A99E' },
42
+ ],
43
+ // Tiled twice: a quarter of the pixels to generate, same grain size.
44
+ sampler: { repeat: [2, 2] },
45
+ },
46
+ roughness: {
47
+ type: 'procedural',
48
+ algorithm: 'periodic-fbm-v1',
49
+ resolution: [256, 256],
50
+ seed: 8,
51
+ bands: [{ frequency: [30, 30], amplitude: 1 }],
52
+ range: [0.72, 0.8],
53
+ },
54
+ },
55
+ });
56
+ // Dark, glossy graphite marks everything you can interact with.
57
+ const graphiteMaterial = createSceneMaterial({
58
+ id: 'studio-graphite',
59
+ model: 'physical',
60
+ baseColor: '#464950',
61
+ roughness: 0.38,
62
+ metalness: 0,
63
+ clearcoat: 0.6,
64
+ clearcoatRoughness: 0.15,
65
+ envMapIntensity: 2.6,
66
+ textures: {
67
+ roughness: {
68
+ type: 'procedural',
69
+ algorithm: 'periodic-fbm-v1',
70
+ resolution: [256, 256],
71
+ seed: 3,
72
+ bands: [
73
+ { frequency: [12, 12], amplitude: 0.6 },
74
+ { frequency: [48, 48], amplitude: 0.4 },
75
+ ],
76
+ range: [0.26, 0.52],
77
+ },
78
+ bump: {
79
+ type: 'procedural',
80
+ algorithm: 'periodic-fbm-v1',
81
+ resolution: [256, 256],
82
+ seed: 43,
83
+ bands: [
84
+ { frequency: [32, 32], amplitude: 0.6 },
85
+ { frequency: [96, 96], amplitude: 0.4 },
86
+ ],
87
+ scale: 0.04,
88
+ sampler: { repeat: [3, 3] },
89
+ },
90
+ },
91
+ });
92
+ /** Opaque sRGB texture from RGBA pixels, filtered like an image texture. */
93
+ function pixelTexture(size, pixels) {
94
+ const texture = new DataTexture(pixels, size, size, RGBAFormat, UnsignedByteType);
95
+ texture.colorSpace = SRGBColorSpace;
96
+ texture.magFilter = LinearFilter;
97
+ texture.minFilter = LinearMipmapLinearFilter;
98
+ texture.generateMipmaps = true;
99
+ texture.anisotropy = 8;
100
+ texture.needsUpdate = true;
101
+ return texture;
102
+ }
103
+ /**
104
+ * One tile of the floor lattice: a faint diamond through the middle of each
105
+ * edge on warm clay. Each texel takes its distance to the diamond and covers
106
+ * a 2.5 px line, so it needs no DOM.
107
+ */
108
+ function createLatticeTexture(size = 512) {
109
+ const clay = [0xea, 0xe6, 0xdf];
110
+ const line = [151, 155, 166];
111
+ const half = size / 2;
112
+ const pixels = new Uint8Array(size * size * 4);
113
+ for (let y = 0; y < size; y += 1) {
114
+ for (let x = 0; x < size; x += 1) {
115
+ const distance = Math.abs(Math.abs(x + 0.5 - half) + Math.abs(y + 0.5 - half) - half) /
116
+ Math.SQRT2;
117
+ const alpha = 0.26 * Math.min(1, Math.max(0, 1.25 + 0.5 - distance));
118
+ const index = (y * size + x) * 4;
119
+ for (let channel = 0; channel < 3; channel += 1) {
120
+ pixels[index + channel] = Math.round(clay[channel] + (line[channel] - clay[channel]) * alpha);
121
+ }
122
+ pixels[index + 3] = 255;
123
+ }
124
+ }
125
+ return pixelTexture(size, pixels);
126
+ }
127
+ /**
128
+ * Square clay floor with a faint diamond lattice. The scene's DomeFade on
129
+ * this node blends it into the sky with distance, so it has no visible edge.
130
+ */
131
+ export function createStudioFloor(size = 36) {
132
+ const lattice = createLatticeTexture();
133
+ lattice.wrapS = lattice.wrapT = RepeatWrapping;
134
+ // 1.2 m x 1.92 m diamonds: 1.6x longer in depth than across.
135
+ lattice.repeat.set(size / (0.6 * 2), size / (0.6 * 3.2));
136
+ const floor = createScenePrimitiveObject({ geometry: { type: 'plane', size: [size, size] } }, new MeshStandardMaterial({ map: lattice, roughness: 0.95 }));
137
+ floor.rotation.x = -Math.PI / 2;
138
+ const root = new Group();
139
+ root.add(floor);
140
+ return root;
141
+ }
142
+ /** Low turned stage with an inset stone ring. */
143
+ export function createStage(radius = 1.85) {
144
+ const height = 0.035;
145
+ const disc = createScenePrimitiveObject({
146
+ geometry: {
147
+ type: 'lathe',
148
+ profile: [
149
+ [0.001, 0],
150
+ [radius, 0],
151
+ [radius + 0.004, height * 0.5],
152
+ [radius - 0.012, height],
153
+ [0.001, height],
154
+ ],
155
+ segments: 128,
156
+ },
157
+ }, clayMaterial);
158
+ const inlay = createScenePrimitiveObject({
159
+ geometry: {
160
+ type: 'torus',
161
+ radius: radius - 0.16,
162
+ tube: 0.012,
163
+ radialSegments: 8,
164
+ tubularSegments: 192,
165
+ },
166
+ }, stoneMaterial);
167
+ inlay.rotation.x = -Math.PI / 2;
168
+ inlay.scale.z = 0.3;
169
+ inlay.position.y = height;
170
+ const stage = new Group();
171
+ stage.add(disc, inlay);
172
+ return stage;
173
+ }
174
+ /** Pedestal: a warm stone slab on a tapered clay pillar with a turned foot. */
175
+ export function createPlinth(height = 0.92, width = 0.8) {
176
+ const pillar = createScenePrimitiveObject({
177
+ geometry: {
178
+ type: 'lathe',
179
+ profile: [
180
+ [0.001, 0],
181
+ [0.16, 0],
182
+ [0.17, 0.018],
183
+ [0.16, 0.04],
184
+ [0.09, 0.085],
185
+ [0.066, 0.3],
186
+ [0.06, height - 0.12],
187
+ [0.11, height - 0.06],
188
+ [0.001, height - 0.055],
189
+ ],
190
+ segments: 64,
191
+ },
192
+ }, clayMaterial);
193
+ const top = createScenePrimitiveObject({
194
+ geometry: {
195
+ type: 'roundedBox',
196
+ size: [width, 0.055, width * 0.72],
197
+ radius: 0.022,
198
+ segments: 4,
199
+ },
200
+ }, stoneMaterial);
201
+ top.position.y = height - 0.0275;
202
+ const plinth = new Group();
203
+ plinth.add(pillar, top);
204
+ return plinth;
205
+ }
206
+ /** Rounded graphite cube with its origin at the center. */
207
+ export function createGraphiteCube(size = 0.13) {
208
+ return createScenePrimitiveObject({
209
+ geometry: {
210
+ type: 'roundedBox',
211
+ size: [size, size, size],
212
+ radius: size * 0.12,
213
+ segments: 5,
214
+ },
215
+ }, graphiteMaterial);
216
+ }
217
+ /** Faceted graphite gem. */
218
+ export function createGraphiteGem(radius = 0.085) {
219
+ return new Mesh(new IcosahedronGeometry(radius, 0), graphiteMaterial);
220
+ }
221
+ /** Graphite trefoil knot. */
222
+ export function createGraphiteKnot() {
223
+ return new Mesh(new TorusKnotGeometry(0.1, 0.032, 200, 24, 2, 3), graphiteMaterial);
224
+ }
225
+ /** Upright graphite ring. */
226
+ export function createGraphiteRing(radius = 0.2) {
227
+ return createScenePrimitiveObject({
228
+ geometry: {
229
+ type: 'torus',
230
+ radius,
231
+ tube: 0.035,
232
+ radialSegments: 24,
233
+ tubularSegments: 96,
234
+ },
235
+ }, graphiteMaterial);
236
+ }
@@ -3,61 +3,348 @@
3
3
  "units": "meters",
4
4
  "components": {
5
5
  "com.iwsdk.components.IBLGradient": {
6
- "sky": [0.6902, 0.749, 0.7843, 1],
7
- "equator": [0.6584, 0.7084, 0.7913, 1],
8
- "ground": [0.807, 0.7758, 0.7454, 1],
9
- "intensity": 1
6
+ "sky": [0.96, 0.94, 0.9, 1],
7
+ "equator": [0.8, 0.76, 0.7, 1],
8
+ "ground": [0.46, 0.42, 0.38, 1],
9
+ "intensity": 0.25
10
10
  }
11
11
  },
12
+ "environment": {
13
+ "toneMapping": "aces",
14
+ "exposure": 1,
15
+ "shadows": true,
16
+ "shadowMapType": "pcf"
17
+ },
12
18
  "resources": {},
13
19
  "nodes": [
14
20
  {
15
- "id": "plant-sansevieria",
16
- "name": "Plant Sansevieria",
17
- "metadata": {
18
- "iwsdk.validation": {
19
- "allowFloating": true
20
- }
21
+ "id": "shadow-catcher",
22
+ "name": "Shadow Catcher",
23
+ "framingRole": "support",
24
+ "transform": {
25
+ "position": [0, 0.001, -1.35]
21
26
  },
27
+ "components": {
28
+ "ShadowCatcher": {
29
+ "size": [6, 6],
30
+ "opacity": 0.25
31
+ }
32
+ }
33
+ },
34
+ {
35
+ "id": "grab-plinth",
36
+ "name": "Grab Plinth",
22
37
  "content": {
23
38
  "type": "asset",
24
- "asset": "plant-sansevieria"
39
+ "asset": "plinth",
40
+ "castShadow": true,
41
+ "receiveShadow": true
25
42
  },
26
43
  "transform": {
27
- "position": [1.2, 0.2, -1.8],
28
- "scale": 2
44
+ "position": [-0.9543, 0, -1.1214],
45
+ "rotationDeg": [0, 30, 0]
29
46
  },
30
- "components": {
31
- "RayInteractable": {},
32
- "DistanceGrabbable": {
33
- "movementMode": "MoveFromTarget"
47
+ "children": [
48
+ {
49
+ "id": "grab-plinth-contact",
50
+ "name": "Contact Shadow",
51
+ "transform": {
52
+ "position": [0, 0.002, 0]
53
+ },
54
+ "components": {
55
+ "ContactShadow": {
56
+ "size": [0.8, 0.8],
57
+ "opacity": 0.4,
58
+ "color": [0, 0, 0, 1],
59
+ "height": 0.0016
60
+ }
61
+ }
62
+ },
63
+ {
64
+ "id": "graphite-cube",
65
+ "name": "Graphite Cube",
66
+ "content": {
67
+ "type": "asset",
68
+ "asset": "graphite-cube",
69
+ "castShadow": true,
70
+ "receiveShadow": true
71
+ },
72
+ "transform": {
73
+ "position": [-0.25, 0.998, -0.03],
74
+ "rotationDeg": [0, 20, 0],
75
+ "scale": 1.2
76
+ },
77
+ "components": {
78
+ "RayInteractable": {},
79
+ "DistanceGrabbable": {
80
+ "movementMode": "MoveFromTarget"
81
+ }
82
+ }
83
+ },
84
+ {
85
+ "id": "graphite-cube-contact",
86
+ "name": "Contact Shadow",
87
+ "transform": {
88
+ "position": [-0.25, 0.921, -0.03]
89
+ },
90
+ "components": {
91
+ "ContactShadow": {
92
+ "size": [0.26, 0.26],
93
+ "opacity": 0.4,
94
+ "color": [0, 0, 0, 1],
95
+ "height": 0.00052
96
+ }
97
+ }
98
+ },
99
+ {
100
+ "id": "graphite-gem",
101
+ "name": "Graphite Gem",
102
+ "content": {
103
+ "type": "asset",
104
+ "asset": "graphite-gem",
105
+ "castShadow": true,
106
+ "receiveShadow": true
107
+ },
108
+ "transform": {
109
+ "position": [0, 1.006, -0.03],
110
+ "rotationDeg": [15, 0, 10],
111
+ "scale": 1.2
112
+ },
113
+ "components": {
114
+ "RayInteractable": {},
115
+ "DistanceGrabbable": {
116
+ "movementMode": "MoveFromTarget"
117
+ }
118
+ }
119
+ },
120
+ {
121
+ "id": "graphite-gem-contact",
122
+ "name": "Contact Shadow",
123
+ "transform": {
124
+ "position": [0, 0.921, -0.03]
125
+ },
126
+ "components": {
127
+ "ContactShadow": {
128
+ "size": [0.24, 0.24],
129
+ "opacity": 0.4,
130
+ "color": [0, 0, 0, 1],
131
+ "height": 0.00048
132
+ }
133
+ }
134
+ },
135
+ {
136
+ "id": "graphite-knot",
137
+ "name": "Graphite Knot",
138
+ "content": {
139
+ "type": "asset",
140
+ "asset": "graphite-knot",
141
+ "castShadow": true,
142
+ "receiveShadow": true
143
+ },
144
+ "transform": {
145
+ "position": [0.25, 1.02, -0.03],
146
+ "rotationDeg": [0, -30, 0],
147
+ "scale": 0.74
148
+ },
149
+ "components": {
150
+ "RayInteractable": {},
151
+ "DistanceGrabbable": {
152
+ "movementMode": "MoveFromTarget"
153
+ }
154
+ }
155
+ },
156
+ {
157
+ "id": "graphite-knot-contact",
158
+ "name": "Contact Shadow",
159
+ "transform": {
160
+ "position": [0.25, 0.921, -0.03]
161
+ },
162
+ "components": {
163
+ "ContactShadow": {
164
+ "size": [0.26, 0.26],
165
+ "opacity": 0.4,
166
+ "color": [0, 0, 0, 1],
167
+ "height": 0.00052
168
+ }
169
+ }
170
+ },
171
+ {
172
+ "id": "grab-label",
173
+ "name": "Grab Label",
174
+ "content": {
175
+ "type": "asset",
176
+ "asset": "label-grab"
177
+ },
178
+ "transform": {
179
+ "position": [0, 0.94, 0.358],
180
+ "rotationDeg": [-32, 0, 0],
181
+ "scale": 0.12
182
+ }
34
183
  }
35
- }
184
+ ]
36
185
  },
37
186
  {
38
- "id": "robot",
39
- "name": "Robot",
40
- "metadata": {
41
- "iwsdk.validation": {
42
- "allowFloating": true
43
- }
187
+ "id": "select-plinth",
188
+ "name": "Select Plinth",
189
+ "content": {
190
+ "type": "asset",
191
+ "asset": "plinth",
192
+ "castShadow": true,
193
+ "receiveShadow": true
194
+ },
195
+ "transform": {
196
+ "position": [0, 0, -1.5]
44
197
  },
198
+ "children": [
199
+ {
200
+ "id": "select-plinth-contact",
201
+ "name": "Contact Shadow",
202
+ "transform": {
203
+ "position": [0, 0.002, 0]
204
+ },
205
+ "components": {
206
+ "ContactShadow": {
207
+ "size": [0.8, 0.8],
208
+ "opacity": 0.4,
209
+ "color": [0, 0, 0, 1],
210
+ "height": 0.0016
211
+ }
212
+ }
213
+ },
214
+ {
215
+ "id": "robot",
216
+ "name": "Robot",
217
+ "metadata": {
218
+ "iwsdk.validation": {
219
+ "allowFloating": true
220
+ }
221
+ },
222
+ "content": {
223
+ "type": "asset",
224
+ "asset": "robot",
225
+ "castShadow": true
226
+ },
227
+ "transform": {
228
+ "position": [0, 1.2, -0.02],
229
+ "scale": 0.6
230
+ },
231
+ "components": {
232
+ "AudioSource": {
233
+ "src": "./audio/chime.mp3",
234
+ "maxInstances": 3,
235
+ "playbackMode": "fade-restart"
236
+ },
237
+ "RayInteractable": {},
238
+ "Robot": {}
239
+ }
240
+ },
241
+ {
242
+ "id": "robot-contact",
243
+ "name": "Contact Shadow",
244
+ "transform": {
245
+ "position": [0, 0.921, -0.02]
246
+ },
247
+ "components": {
248
+ "ContactShadow": {
249
+ "size": [0.37, 0.37],
250
+ "opacity": 0.4,
251
+ "color": [0, 0, 0, 1],
252
+ "height": 0.00074
253
+ }
254
+ }
255
+ },
256
+ {
257
+ "id": "select-label",
258
+ "name": "Select Label",
259
+ "content": {
260
+ "type": "asset",
261
+ "asset": "label-select"
262
+ },
263
+ "transform": {
264
+ "position": [0, 0.94, 0.358],
265
+ "rotationDeg": [-32, 0, 0],
266
+ "scale": 0.12
267
+ }
268
+ }
269
+ ]
270
+ },
271
+ {
272
+ "id": "spin-plinth",
273
+ "name": "Spin Plinth",
45
274
  "content": {
46
275
  "type": "asset",
47
- "asset": "robot"
276
+ "asset": "plinth",
277
+ "castShadow": true,
278
+ "receiveShadow": true
48
279
  },
49
280
  "transform": {
50
- "position": [-1.2, 0.4, -1.8]
281
+ "position": [0.9543, 0, -1.1214],
282
+ "rotationDeg": [0, -30, 0]
51
283
  },
52
- "components": {
53
- "AudioSource": {
54
- "src": "./audio/chime.mp3",
55
- "maxInstances": 3,
56
- "playbackMode": "fade-restart"
284
+ "children": [
285
+ {
286
+ "id": "spin-plinth-contact",
287
+ "name": "Contact Shadow",
288
+ "transform": {
289
+ "position": [0, 0.002, 0]
290
+ },
291
+ "components": {
292
+ "ContactShadow": {
293
+ "size": [0.8, 0.8],
294
+ "opacity": 0.4,
295
+ "color": [0, 0, 0, 1],
296
+ "height": 0.0016
297
+ }
298
+ }
57
299
  },
58
- "RayInteractable": {},
59
- "Robot": {}
60
- }
300
+ {
301
+ "id": "graphite-ring",
302
+ "name": "Graphite Ring",
303
+ "content": {
304
+ "type": "asset",
305
+ "asset": "graphite-ring",
306
+ "castShadow": true,
307
+ "receiveShadow": true
308
+ },
309
+ "transform": {
310
+ "position": [0, 1.165, -0.02]
311
+ },
312
+ "components": {
313
+ "RayInteractable": {},
314
+ "DistanceGrabbable": {
315
+ "movementMode": "RotateAtSource"
316
+ }
317
+ }
318
+ },
319
+ {
320
+ "id": "graphite-ring-contact",
321
+ "name": "Contact Shadow",
322
+ "transform": {
323
+ "position": [0, 0.921, -0.02]
324
+ },
325
+ "components": {
326
+ "ContactShadow": {
327
+ "size": [0.4, 0.4],
328
+ "opacity": 0.4,
329
+ "color": [0, 0, 0, 1],
330
+ "height": 0.0008
331
+ }
332
+ }
333
+ },
334
+ {
335
+ "id": "spin-label",
336
+ "name": "Spin Label",
337
+ "content": {
338
+ "type": "asset",
339
+ "asset": "label-spin"
340
+ },
341
+ "transform": {
342
+ "position": [0, 0.94, 0.358],
343
+ "rotationDeg": [-32, 0, 0],
344
+ "scale": 0.12
345
+ }
346
+ }
347
+ ]
61
348
  },
62
349
  {
63
350
  "id": "welcome-panel",
@@ -67,37 +354,46 @@
67
354
  "asset": "welcome-panel"
68
355
  },
69
356
  "transform": {
70
- "position": [0, 1.6, -2],
71
- "scale": 0.4
357
+ "position": [0, 1.85, -2.2],
358
+ "rotationDeg": [-6, 0, 0],
359
+ "scale": 0.27
72
360
  },
73
361
  "components": {
74
- "RayInteractable": {},
75
- "ScreenSpace": {
76
- "top": "20px",
77
- "left": "20px",
78
- "width": "25vw",
79
- "height": "40%"
80
- }
362
+ "RayInteractable": {}
81
363
  }
82
364
  },
83
365
  {
84
- "id": "webxr-banner",
85
- "name": "WebXR Banner",
86
- "metadata": {
87
- "iwsdk.validation": {
88
- "allowFloating": true
89
- }
90
- },
91
- "content": {
92
- "type": "asset",
93
- "asset": "webxr-banner"
94
- },
366
+ "id": "key-light",
367
+ "name": "Key Light",
95
368
  "transform": {
96
- "position": [0, 1, 1.8],
97
- "rotationDeg": [0, 180, 0],
98
- "scale": [1, -1, 1]
369
+ "position": [-2.3541, 11.2763, 1.762],
370
+ "rotationDeg": [-73.3982, -11.3134, 0]
99
371
  },
100
- "components": {}
372
+ "components": {
373
+ "DirectionalLight": {
374
+ "color": [1, 0.945, 0.87, 1],
375
+ "intensity": 2,
376
+ "castShadow": true,
377
+ "shadowMapSize": "1024",
378
+ "shadowCameraSize": 6,
379
+ "shadowCameraNear": 2,
380
+ "shadowCameraFar": 24,
381
+ "shadowRadius": 5,
382
+ "shadowBias": -0.0004,
383
+ "shadowNormalBias": 0.02
384
+ }
385
+ }
386
+ },
387
+ {
388
+ "id": "fill-light",
389
+ "name": "Fill Light",
390
+ "components": {
391
+ "HemisphereLight": {
392
+ "skyColor": [0.96, 0.94, 0.9, 1],
393
+ "groundColor": [0.55, 0.52, 0.48, 1],
394
+ "intensity": 1
395
+ }
396
+ }
101
397
  }
102
398
  ]
103
399
  }