@bendyline/molen-ambient 0.0.12 → 0.0.14
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/dist/client.d.mts +8 -4
- package/dist/client.mjs +589 -148
- package/dist/{components-vzvNQczG.mjs → components-DJINUkXK.mjs} +192 -52
- package/dist/kernel.d.mts +67 -5
- package/dist/kernel.mjs +301 -73
- package/dist/{wildlife-B4EL0z-N.d.mts → wildlife-CvHzzI9m.d.mts} +1 -1
- package/package.json +7 -7
package/dist/client.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as WildlifeSpecies, r as WildlifeAgent } from "./wildlife-
|
|
1
|
+
import { p as WildlifeSpecies, r as WildlifeAgent } from "./wildlife-CvHzzI9m.mjs";
|
|
2
2
|
import { World } from "@bendyline/molen-kernel/world";
|
|
3
3
|
import { AircraftSpec, VehicleData } from "@bendyline/molen-schema";
|
|
4
4
|
import * as THREE from "three";
|
|
5
5
|
import { FigureData } from "@bendyline/molen-figures/client";
|
|
6
|
-
import { RenderableKind } from "@bendyline/molen-client";
|
|
6
|
+
import { RenderableKind, SceneAdmission } from "@bendyline/molen-client";
|
|
7
7
|
|
|
8
8
|
//#region src/client/aircraft.d.ts
|
|
9
9
|
interface AmbientAircraftModels {
|
|
@@ -45,7 +45,7 @@ declare class ProxyBatches {
|
|
|
45
45
|
private readonly position;
|
|
46
46
|
private readonly quaternion;
|
|
47
47
|
private readonly scale;
|
|
48
|
-
constructor(prepare?: ((object: THREE.Object3D) => void) | undefined, initialCapacity?: number);
|
|
48
|
+
constructor(prepare?: ((object: THREE.Object3D) => Promise<void> | void) | undefined, initialCapacity?: number);
|
|
49
49
|
/** Start a frame: keep the anchor within a few hundred metres of the camera. */
|
|
50
50
|
begin(camera: readonly [number, number, number]): void;
|
|
51
51
|
add(instance: ProxyInstance): void;
|
|
@@ -119,7 +119,9 @@ declare class AmbientFigures {
|
|
|
119
119
|
private budget;
|
|
120
120
|
private cursor;
|
|
121
121
|
private frame;
|
|
122
|
-
|
|
122
|
+
/** New bodies whose shaders are still being built; they stay hidden until then. */
|
|
123
|
+
private readonly preparing;
|
|
124
|
+
constructor(prepare?: ((object: THREE.Object3D) => Promise<void> | void) | undefined);
|
|
123
125
|
setBudget(budget: Partial<FigureBudget>): void;
|
|
124
126
|
get count(): number;
|
|
125
127
|
private tierFor;
|
|
@@ -165,6 +167,8 @@ interface AmbientRendererOptions {
|
|
|
165
167
|
parent: THREE.Object3D;
|
|
166
168
|
/** Shader warm-up for new objects (e.g. `renderer.prepareObject`). */
|
|
167
169
|
prepare?: (object: THREE.Object3D) => Promise<void> | void;
|
|
170
|
+
/** Main-thread admission (e.g. `renderer.admission`) for building aircraft models. */
|
|
171
|
+
admission?: SceneAdmission;
|
|
168
172
|
/** Full vehicle models for nearby cars (absent: proxies only). */
|
|
169
173
|
vehicles?: AmbientVehicleModels;
|
|
170
174
|
/** Aircraft models (absent: proxies only). */
|