@bendyline/molen-client 0.0.11 → 0.0.13

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.
@@ -0,0 +1,19 @@
1
+ import { GlassData, GlassStateData } from "@bendyline/molen-schema";
2
+ import * as THREE from "three";
3
+
4
+ //#region src/glass.d.ts
5
+ interface GlassVisual {
6
+ readonly missingNodes: string[];
7
+ /** Simulation seconds, so pause, rewind and checkpoint restore reproduce the same debris. */
8
+ update(state: GlassStateData | undefined, timeSeconds: number): void;
9
+ dispose(): void;
10
+ }
11
+ /**
12
+ * Reusable rectangular glass visualization. Dedicated model panes are hidden only on release;
13
+ * generated crack cells and debris are owned here, never written into shared GLB resources.
14
+ * Debris is cosmetic, ballistic, bounded to eight seconds and has no collision authority.
15
+ * `model` must carry the owner's simulation transform relative to its scene/origin-shift root.
16
+ */
17
+ declare function createGlassVisual(model: THREE.Object3D, data: GlassData): GlassVisual;
18
+ //#endregion
19
+ export { GlassVisual, createGlassVisual };
package/dist/glass.mjs ADDED
@@ -0,0 +1,250 @@
1
+ import * as THREE from "three";
2
+ //#region src/glass.ts
3
+ function random(index) {
4
+ let value = Math.imul(index + 1, 73244475);
5
+ value = Math.imul(value ^ value >>> 16, 73244475);
6
+ return ((value ^ value >>> 16) >>> 0) / 4294967296;
7
+ }
8
+ /** Radial cracks and irregular connecting rings, clipped to the pane boundary. */
9
+ function laminateCracks(spec, point) {
10
+ const edges = [];
11
+ const rings = [];
12
+ for (let ring = 0; ring <= 4; ring++) {
13
+ const vertices = [];
14
+ for (let ray = 0; ray < 20; ray++) {
15
+ const angle = (ray + (random(ray + 101) - .5) * .5) * Math.PI * 2 / 20;
16
+ const dx = Math.cos(angle), dy = Math.sin(angle);
17
+ const rx = Math.abs(dx) < 1e-9 ? Infinity : (Math.sign(dx) * spec.size[0] / 2 - point[0]) / dx;
18
+ const ry = Math.abs(dy) < 1e-9 ? Infinity : (Math.sign(dy) * spec.size[1] / 2 - point[1]) / dy;
19
+ const distance = Math.min(rx, ry) * (ring === 0 ? 0 : ring === 4 ? 1 : (ring + (random(ray + ring * 31) - .5) * .5) / 4);
20
+ vertices.push(new THREE.Vector3(point[0] + dx * distance, point[1] + dy * distance, .003));
21
+ }
22
+ rings.push(vertices);
23
+ }
24
+ for (let ring = 1; ring <= 4; ring++) for (let ray = 0; ray < 20; ray++) {
25
+ const p = rings[ring - 1]?.[ray];
26
+ const q = rings[ring]?.[ray];
27
+ edges.push(...p.toArray(), ...q.toArray());
28
+ if (ring < 4) edges.push(...q.toArray(), ...(rings[ring]?.[(ray + 1) % 20]).toArray());
29
+ }
30
+ return edges;
31
+ }
32
+ /** Bounded irregular cells: tempered granules, larger annealed shards, a connected laminate. */
33
+ function cells(pane) {
34
+ const nx = pane.material === "annealed" ? 4 : 12;
35
+ const ny = pane.material === "annealed" ? 3 : 8;
36
+ const points = [];
37
+ for (let y = 0; y <= ny; y++) for (let x = 0; x <= nx; x++) {
38
+ const index = y * (nx + 1) + x;
39
+ points.push(new THREE.Vector3(((x + (x > 0 && x < nx ? (random(index) - .5) * .6 : 0)) / nx - .5) * pane.size[0], ((y + (y > 0 && y < ny ? (random(index + 901) - .5) * .6 : 0)) / ny - .5) * pane.size[1], 0));
40
+ }
41
+ const positions = [], edges = [], centers = [];
42
+ for (let y = 0; y < ny; y++) for (let x = 0; x < nx; x++) {
43
+ const a = points[y * (nx + 1) + x];
44
+ const b = points[y * (nx + 1) + x + 1];
45
+ const c = points[(y + 1) * (nx + 1) + x + 1];
46
+ const d = points[(y + 1) * (nx + 1) + x];
47
+ for (const point of [
48
+ a,
49
+ b,
50
+ c,
51
+ a,
52
+ c,
53
+ d
54
+ ]) positions.push(point.x, point.y, point.z);
55
+ centers.push(a.clone().add(b).add(c).add(d).multiplyScalar(.25));
56
+ for (const [p, q] of [
57
+ [a, b],
58
+ [b, c],
59
+ [c, d],
60
+ [d, a]
61
+ ]) edges.push(p.x, p.y, .003, q.x, q.y, .003);
62
+ }
63
+ const geometry = new THREE.BufferGeometry();
64
+ geometry.setAttribute("position", new THREE.Float32BufferAttribute(positions, 3));
65
+ geometry.computeVertexNormals();
66
+ return {
67
+ geometry,
68
+ centers,
69
+ edges
70
+ };
71
+ }
72
+ /**
73
+ * Reusable rectangular glass visualization. Dedicated model panes are hidden only on release;
74
+ * generated crack cells and debris are owned here, never written into shared GLB resources.
75
+ * Debris is cosmetic, ballistic, bounded to eight seconds and has no collision authority.
76
+ * `model` must carry the owner's simulation transform relative to its scene/origin-shift root.
77
+ */
78
+ function createGlassVisual(model, data) {
79
+ const missingNodes = [];
80
+ const claimed = /* @__PURE__ */ new Set();
81
+ const panes = data.surfaces.map((spec) => {
82
+ const sources = [];
83
+ for (const name of spec.nodes ?? []) {
84
+ const found = [];
85
+ model.traverse((node) => {
86
+ if (node !== model && (node.userData.name ?? node.name) === name) found.push(node);
87
+ });
88
+ if (found.length === 0) missingNodes.push(name);
89
+ for (const node of found) {
90
+ node.traverse((child) => {
91
+ if (claimed.has(child)) throw new Error(`Glass node '${name}' belongs to more than one pane.`);
92
+ claimed.add(child);
93
+ });
94
+ sources.push(node);
95
+ }
96
+ }
97
+ return {
98
+ spec,
99
+ sources,
100
+ visible: sources.map((node) => node.visible)
101
+ };
102
+ }).map(({ spec, sources, visible }) => {
103
+ const group = new THREE.Group();
104
+ group.name = `glass:${spec.id}`;
105
+ model.add(group);
106
+ const material = new THREE.MeshStandardMaterial({
107
+ color: "#8baeb7",
108
+ roughness: .18,
109
+ metalness: .1,
110
+ transparent: true,
111
+ opacity: .36,
112
+ depthWrite: false,
113
+ side: THREE.DoubleSide,
114
+ forceSinglePass: true
115
+ });
116
+ const { geometry, centers, edges } = cells(spec);
117
+ const mesh = new THREE.Mesh(geometry, material);
118
+ mesh.name = `glass-pane:${spec.id}`;
119
+ group.add(mesh);
120
+ const rest = new Float32Array(geometry.getAttribute("position").array);
121
+ const edgeGeometry = new THREE.BufferGeometry();
122
+ edgeGeometry.setAttribute("position", new THREE.Float32BufferAttribute(edges, 3));
123
+ const edgeMaterial = new THREE.LineBasicMaterial({
124
+ color: "#e1f5f5",
125
+ transparent: true,
126
+ opacity: .8,
127
+ depthWrite: false
128
+ });
129
+ const cracks = new THREE.LineSegments(edgeGeometry, edgeMaterial);
130
+ cracks.name = `glass-cracks:${spec.id}`;
131
+ group.add(cracks);
132
+ const sheet = new THREE.Group();
133
+ sheet.name = `glass-sheet:${spec.id}`;
134
+ group.add(sheet);
135
+ model.updateWorldMatrix(true, true);
136
+ const paneMatrix = new THREE.Matrix4().compose(new THREE.Vector3().fromArray(spec.center), new THREE.Quaternion().fromArray(spec.rotation), new THREE.Vector3(1, 1, 1));
137
+ const inverse = paneMatrix.clone().invert().multiply(model.matrixWorld.clone().invert());
138
+ for (const node of sources) {
139
+ const clone = node.clone(true);
140
+ clone.matrixAutoUpdate = false;
141
+ clone.matrix.copy(inverse).multiply(node.matrixWorld);
142
+ clone.matrix.decompose(clone.position, clone.quaternion, clone.scale);
143
+ clone.visible = node.visible;
144
+ sheet.add(clone);
145
+ }
146
+ return {
147
+ spec,
148
+ sources,
149
+ visible,
150
+ group,
151
+ mesh,
152
+ cracks,
153
+ sheet,
154
+ geometry,
155
+ edgeGeometry,
156
+ material,
157
+ edgeMaterial,
158
+ rest,
159
+ centers,
160
+ paneMatrix,
161
+ crackPoint: "",
162
+ fragmentAge: -1
163
+ };
164
+ });
165
+ const inverse = new THREE.Matrix4(), pose = new THREE.Matrix4();
166
+ const position = new THREE.Vector3(), rotation = new THREE.Quaternion(), unit = new THREE.Vector3(1, 1, 1);
167
+ const vertex = new THREE.Vector3(), offset = new THREE.Vector3(), spin = new THREE.Quaternion();
168
+ let disposed = false;
169
+ const update = (state, time) => {
170
+ if (disposed) return;
171
+ model.updateMatrix();
172
+ inverse.copy(model.matrix).invert();
173
+ for (const pane of panes) {
174
+ const { spec, group, geometry, mesh, cracks, sheet, sources } = pane;
175
+ const damage = state && Object.hasOwn(state.surfaces, spec.id) ? state.surfaces[spec.id] : void 0;
176
+ const retained = damage?.retained !== false;
177
+ const release = damage?.release;
178
+ const age = release ? Math.max(0, time - release.time) : 0;
179
+ const fragmented = damage?.fracture === "shattered" && spec.material !== "laminated";
180
+ group.visible = retained || !!release && age < 8;
181
+ group.matrixAutoUpdate = false;
182
+ group.matrix.copy(pane.paneMatrix);
183
+ if (!retained && release) {
184
+ position.fromArray(release.position).addScaledVector(new THREE.Vector3().fromArray(release.velocity), age);
185
+ position.y -= .5 * 9.81 * age * age;
186
+ rotation.fromArray(release.rotation);
187
+ pose.compose(position, rotation, unit);
188
+ group.matrix.copy(inverse).multiply(pose);
189
+ }
190
+ group.matrixWorldNeedsUpdate = true;
191
+ group.matrix.decompose(group.position, group.quaternion, group.scale);
192
+ sources.forEach((node, i) => {
193
+ node.visible = retained && (pane.visible[i] ?? true);
194
+ });
195
+ sheet.visible = !retained && !fragmented && sources.length > 0;
196
+ mesh.visible = sources.length === 0 || !retained && fragmented;
197
+ cracks.visible = damage !== void 0 && damage.fracture !== "intact" && !fragmented;
198
+ const crackPoint = JSON.stringify(damage?.point ?? [0, 0]);
199
+ if (spec.material === "laminated" && pane.crackPoint !== crackPoint) {
200
+ pane.edgeGeometry.setAttribute("position", new THREE.Float32BufferAttribute(laminateCracks(spec, damage?.point ?? [0, 0]), 3));
201
+ pane.edgeGeometry.computeBoundingSphere();
202
+ pane.crackPoint = crackPoint;
203
+ }
204
+ pane.edgeGeometry.setDrawRange(0, Math.floor(pane.edgeGeometry.getAttribute("position").count / 2 * (damage?.damage ?? 0)) * 2);
205
+ pane.material.opacity = !retained ? .65 * Math.max(0, Math.min(1, 8 - age)) : .36;
206
+ pane.edgeMaterial.opacity = !retained ? .8 * Math.max(0, Math.min(1, 8 - age)) : .8;
207
+ const attribute = geometry.getAttribute("position");
208
+ const array = attribute.array;
209
+ const fragmentAge = group.visible && !retained && fragmented ? age : -1;
210
+ if (pane.fragmentAge === fragmentAge) continue;
211
+ pane.fragmentAge = fragmentAge;
212
+ array.set(pane.rest);
213
+ if (group.visible && !retained && fragmented) for (let i = 0; i < pane.centers.length; i++) {
214
+ const center = pane.centers[i];
215
+ const dispersion = release?.fragmentSpeed ?? 0;
216
+ offset.set(random(i + 17) - .5, random(i + 101) - .5, random(i + 73) - .5).multiplyScalar(age * dispersion);
217
+ spin.setFromAxisAngle(new THREE.Vector3(.4, .7, .2).normalize(), (random(i + 911) - .5) * age * dispersion * 7);
218
+ for (let j = 0; j < 6; j++) {
219
+ const at = (i * 6 + j) * 3;
220
+ vertex.fromArray(pane.rest, at).sub(center).applyQuaternion(spin).add(center).add(offset);
221
+ vertex.toArray(array, at);
222
+ }
223
+ }
224
+ attribute.needsUpdate = true;
225
+ geometry.computeVertexNormals();
226
+ geometry.computeBoundingSphere();
227
+ }
228
+ };
229
+ update(void 0, 0);
230
+ return {
231
+ missingNodes,
232
+ update,
233
+ dispose() {
234
+ if (disposed) return;
235
+ disposed = true;
236
+ for (const pane of panes) {
237
+ pane.sources.forEach((node, i) => {
238
+ node.visible = pane.visible[i] ?? true;
239
+ });
240
+ pane.group.removeFromParent();
241
+ pane.geometry.dispose();
242
+ pane.edgeGeometry.dispose();
243
+ pane.material.dispose();
244
+ pane.edgeMaterial.dispose();
245
+ }
246
+ }
247
+ };
248
+ }
249
+ //#endregion
250
+ export { createGlassVisual };
package/dist/index.d.mts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { a as readModelSignals, n as ModelSignals, r as createModelSignalVisual, t as ModelSignalVisual } from "./model-signals-BpeXhsim.mjs";
2
2
  import { a as createUrlAssetProvider, i as UrlAssetProviderOptions, n as AssetProvider, r as LoadedGltf, t as AssetCache } from "./assets-IbO4GJpF.mjs";
3
- import { A as createWebGlSkyReflectionFilter, C as EarthSkyState, D as SkyReflectionFilter, E as starDirection, F as FrameAdmissionQueue, I as SceneAdmission, M as AdmissionOptions, N as AdmissionSample, O as SkyReflectionState, P as FrameAdmissionOptions, S as CelestialPosition, T as skyTimeMs, _ as SkyFrame, a as RendererBackendPreference, b as SkyVisualOptions, c as TopDownOrtho, d as ShadowFocus, f as ShadowQuality, g as WeatherVisual, h as createGpuFrameTimer, i as RendererBackend, j as reflectionStateFromLights, k as SkyReflections, l as nextWorldOrigin, m as GpuFrameTimerOptions, n as CameraPose, o as RendererOptions, p as GpuFrameTimer, r as Renderer, s as ThreeRenderer, t as AutoWorldOriginOptions, u as orthoFrustum, v as SkyStar, w as evaluateEarthSky, x as defaultSkyPalette, y as SkyVisual } from "./renderer-Dzus24ZF.mjs";
3
+ import { A as SkyReflectionState, C as defaultSkyPalette, D as skyTimeMs, E as evaluateEarthSky, F as AdmissionSample, I as FrameAdmissionOptions, L as FrameAdmissionQueue, M as createWebGlSkyReflectionFilter, N as reflectionStateFromLights, O as starDirection, P as AdmissionOptions, R as SceneAdmission, S as SkyVisualOptions, T as EarthSkyState, _ as WeatherVisualOptions, a as RendererBackendPreference, b as SkyStar, c as TopDownOrtho, d as ShadowFocus, f as ShadowQuality, g as WeatherVisual, h as createGpuFrameTimer, i as RendererBackend, j as SkyReflections, k as SkyReflectionFilter, l as nextWorldOrigin, m as GpuFrameTimerOptions, n as CameraPose, o as RendererOptions, p as GpuFrameTimer, r as Renderer, s as ThreeRenderer, t as AutoWorldOriginOptions, u as orthoFrustum, v as CloudQuality, w as CelestialPosition, x as SkyVisual, y as SkyFrame } from "./renderer-DAk7C8jH.mjs";
4
4
  import { a as normalizeInputAxis, i as InputMapOptions, n as InputGamepad, o as resolveAction, r as InputMap, t as InputBindings } from "./input-Ckev_Kvj.mjs";
5
- import { Command, ControlAction, CustomSkyData, Delta, DiagMessage, EarthObserver, EarthSkyData, EngineEvent, EntityId, JsonObject, JsonValue, Keyframe, LiveryData, LiveryGraphic, MessageLink, ModelSignalSpec, Quat, ResolvedWeather, SceneCamera, SceneInput, SceneManifest, SkyAppearance, SkyBodyData, SkyData, SkyData as SkyData$1, SkyPalette, SkyTime, Vec3, WeatherData, WeatherProfile, resolveWeather, weatherProfile } from "@bendyline/molen-schema";
5
+ import { CloudType, Command, ControlAction, CustomSkyData, Delta, DiagMessage, EarthObserver, EarthSkyData, EngineEvent, EntityId, GlassData, GlassStateData, JsonObject, JsonValue, Keyframe, LiveryData, LiveryGraphic, MessageLink, ModelSignalSpec, Quat, ResolvedWeather, SceneCamera, SceneInput, SceneManifest, SkyAppearance, SkyBodyData, SkyData, SkyData as SkyData$1, SkyPalette, SkyTime, Vec3, WeatherData, WeatherProfile, resolveWeather, weatherProfile } from "@bendyline/molen-schema";
6
6
  import * as THREE from "three";
7
7
  import { Intersection, Object3D } from "three";
8
8
  import { BakedMaterial, BakedMaterialStore, MaterialBaker } from "@bendyline/molen-materials";
@@ -227,6 +227,7 @@ interface SceneBackend {
227
227
  setTransform(id: EntityId, transform: InterpTransform): void;
228
228
  setModelSignals?(id: EntityId, spec: ModelSignalSpec | undefined, signals: ModelSignals): void;
229
229
  setLivery?(id: EntityId, data: LiveryData | undefined): void;
230
+ setGlass?(id: EntityId, data: GlassData | undefined, state: GlassStateData | undefined): void;
230
231
  /** Optional light surface (per-entity `light` components). */
231
232
  createLight?(id: EntityId, light: LightData): void;
232
233
  updateLight?(id: EntityId, light: LightData): void;
@@ -509,6 +510,7 @@ declare class ThreeSceneBackend implements SceneBackend {
509
510
  private readonly gltf;
510
511
  private readonly liveries;
511
512
  private readonly modelSignals;
513
+ private readonly glass;
512
514
  private readonly identities;
513
515
  private readonly lights;
514
516
  private readonly pointLightSlots;
@@ -562,6 +564,9 @@ declare class ThreeSceneBackend implements SceneBackend {
562
564
  setModelSignals(id: EntityId, spec: ModelSignalSpec | undefined, signals: ModelSignals): void;
563
565
  private bindModelSignals;
564
566
  private applyModelSignals;
567
+ setGlass(id: EntityId, data: GlassData | undefined, state: GlassStateData | undefined): void;
568
+ private bindGlass;
569
+ private applyGlass;
565
570
  destroy(id: EntityId): void;
566
571
  setTransform(id: EntityId, t: InterpTransform): void;
567
572
  /** Per-entity `light` components (directional/spot aim at the origin by default). */
@@ -629,6 +634,8 @@ interface ClientOptions extends RendererOptions {
629
634
  /** Optional caller-owned worker pool for procedural textures. */
630
635
  materialBaker?: MaterialBaker;
631
636
  frameLoop?: "auto" | "manual";
637
+ /** Pause the worker and automatic rendering on blur/hidden. Default true for automatic loops. */
638
+ pauseWhenInactive?: boolean;
632
639
  /** Declarative camera; follow targets use the same interpolation as rendered entities. */
633
640
  sceneCamera?: SceneCamera;
634
641
  interpolationDelayTicks?: number;
@@ -787,6 +794,10 @@ declare function lerp3(a: Vec3, b: Vec3, t: number): Vec3;
787
794
  */
788
795
  declare function nlerp4(a: Quat, b: Quat, t: number): Quat;
789
796
  //#endregion
797
+ //#region src/page-activity.d.ts
798
+ /** Observe whether the page is both visible and focused; reports the initial state immediately. */
799
+ declare function observePageActivity(onChange: (active: boolean) => void): () => void;
800
+ //#endregion
790
801
  //#region src/scene-bindings.d.ts
791
802
  type Unsubscribe$1 = () => void;
792
803
  /** The renderer surface `applySceneCamera` needs (satisfied by `Renderer`). */
@@ -870,4 +881,4 @@ declare const defaultEnvironment: EnvironmentData;
870
881
  */
871
882
  declare function applyEnvironment(renderer: Renderer, env: EnvironmentData): void;
872
883
  //#endregion
873
- export { type AdaptiveQualityChange, AdaptiveQualityController, type AdaptiveQualityOptions, type AdaptiveQualityReason, type AdaptiveQualitySample, type AdaptiveQualityStats, type AdmissionOptions, type AdmissionSample, AssetCache, type AssetOptions, type AssetProvider, type AutoWorldOriginOptions, type CameraPose, type CameraTarget, type CelestialPosition, type ClientCore, type ClientCoreOptions, type ClientDiagCode, type ClientError, type ClientOptions, type CustomSkyData, type DecoderConfig, type EarthObserver, type EarthSkyData, type EarthSkyState, type EnvironmentData, type FrameAdmissionOptions, FrameAdmissionQueue, type GpuFrameTimer, type GpuFrameTimerOptions, type InputBindings, type InputGamepad, InputMap, type InputMapOptions, type InputRuleOptions, type InterpTransform, InterpolationBuffer, type KindContext, type KindHandle, type KindView, type LightData, type LiveryVisual, type LoadedGltf, MaterialResolver, type MirrorReader, type ModelSignalVisual, type ModelSignals, type MolenClient, type MountExperienceOptions, type MountedExperience, type Renderable, type RenderableKind, Renderer, type RendererBackend, type RendererBackendPreference, type RendererOptions, type ResolvedWeather, type SceneAdmission, type SceneBackend, SceneMirror, type SceneOptimizationOptions, type ShadowFocus, type ShadowQuality, type SkyAppearance, type SkyBodyData, type SkyData, type SkyFrame, type SkyPalette, type SkyReflectionFilter, type SkyReflectionState, SkyReflections, type SkyStar, type SkyTime, SkyVisual, type SkyVisualOptions, type StarCatalogRow, type StaticBatchOptions, THREE, type ThreeRenderer, ThreeSceneBackend, type TopDownOrtho, type Unsubscribe, type UrlAssetProviderOptions, type WeatherData, type WeatherProfile, WeatherVisual, applyEnvironment, applyInputRules, applyLivery, applySceneCamera, computeClipTime, createClient, createClientCore, createGltfLoader, createGpuFrameTimer, createIndexedDbMaterialStore, createModelSignalVisual, createSnapshotViewer, createUrlAssetProvider, createViewer, createWebGlSkyReflectionFilter, decodeStarCatalog, decodeStarCatalogRows, defaultEnvironment, defaultSkyPalette, encodeStarCatalog, evaluateEarthSky, followCameraPose, lerp3, liveryGraphicTexture, localCommand, materialFromBaked, mountExperience, nextWorldOrigin, nlerp4, normalizeInputAxis, orthoFrustum, readModelSignals, reflectionStateFromLights, resolveAction, resolveWeather, skyTimeMs, starDirection, weatherProfile };
884
+ export { type AdaptiveQualityChange, AdaptiveQualityController, type AdaptiveQualityOptions, type AdaptiveQualityReason, type AdaptiveQualitySample, type AdaptiveQualityStats, type AdmissionOptions, type AdmissionSample, AssetCache, type AssetOptions, type AssetProvider, type AutoWorldOriginOptions, type CameraPose, type CameraTarget, type CelestialPosition, type ClientCore, type ClientCoreOptions, type ClientDiagCode, type ClientError, type ClientOptions, type CloudQuality, type CloudType, type CustomSkyData, type DecoderConfig, type EarthObserver, type EarthSkyData, type EarthSkyState, type EnvironmentData, type FrameAdmissionOptions, FrameAdmissionQueue, type GpuFrameTimer, type GpuFrameTimerOptions, type InputBindings, type InputGamepad, InputMap, type InputMapOptions, type InputRuleOptions, type InterpTransform, InterpolationBuffer, type KindContext, type KindHandle, type KindView, type LightData, type LiveryVisual, type LoadedGltf, MaterialResolver, type MirrorReader, type ModelSignalVisual, type ModelSignals, type MolenClient, type MountExperienceOptions, type MountedExperience, type Renderable, type RenderableKind, Renderer, type RendererBackend, type RendererBackendPreference, type RendererOptions, type ResolvedWeather, type SceneAdmission, type SceneBackend, SceneMirror, type SceneOptimizationOptions, type ShadowFocus, type ShadowQuality, type SkyAppearance, type SkyBodyData, type SkyData, type SkyFrame, type SkyPalette, type SkyReflectionFilter, type SkyReflectionState, SkyReflections, type SkyStar, type SkyTime, SkyVisual, type SkyVisualOptions, type StarCatalogRow, type StaticBatchOptions, THREE, type ThreeRenderer, ThreeSceneBackend, type TopDownOrtho, type Unsubscribe, type UrlAssetProviderOptions, type WeatherData, type WeatherProfile, WeatherVisual, type WeatherVisualOptions, applyEnvironment, applyInputRules, applyLivery, applySceneCamera, computeClipTime, createClient, createClientCore, createGltfLoader, createGpuFrameTimer, createIndexedDbMaterialStore, createModelSignalVisual, createSnapshotViewer, createUrlAssetProvider, createViewer, createWebGlSkyReflectionFilter, decodeStarCatalog, decodeStarCatalogRows, defaultEnvironment, defaultSkyPalette, encodeStarCatalog, evaluateEarthSky, followCameraPose, lerp3, liveryGraphicTexture, localCommand, materialFromBaked, mountExperience, nextWorldOrigin, nlerp4, normalizeInputAxis, observePageActivity, orthoFrustum, readModelSignals, reflectionStateFromLights, resolveAction, resolveWeather, skyTimeMs, starDirection, weatherProfile };