@miris-inc/core 0.0.8-d80e4e8 → 0.0.8-d843bc8
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/AquaApi.wasm +0 -0
- package/dist/aqua-parser.wasm +0 -0
- package/dist/core.d.ts +9 -2
- package/dist/core.js +39 -7
- package/dist/core.prod.js +1 -1
- package/dist/core.standalone.js +278 -246
- package/dist/core.standalone.prod.js +1 -1
- package/package.json +1 -1
package/dist/AquaApi.wasm
CHANGED
|
Binary file
|
package/dist/aqua-parser.wasm
CHANGED
|
Binary file
|
package/dist/core.d.ts
CHANGED
|
@@ -20,7 +20,9 @@ export declare class AttributeNames {
|
|
|
20
20
|
static readonly SPARK_EXTENDED_SH3_B: string;
|
|
21
21
|
static readonly UNUSED: string;
|
|
22
22
|
static readonly SHARK_ELLIPSOIDS: string;
|
|
23
|
+
static readonly SHARK_ELLIPSOIDS_COMPRESSED: string;
|
|
23
24
|
static readonly SHARK_SPHERICAL_HARMONICS: string;
|
|
25
|
+
static readonly COLOR: string;
|
|
24
26
|
static readonly OCTANT_OFFSETS: string;
|
|
25
27
|
}
|
|
26
28
|
|
|
@@ -33,6 +35,8 @@ export declare class Camera {
|
|
|
33
35
|
#private;
|
|
34
36
|
readonly id: number;
|
|
35
37
|
update(): void;
|
|
38
|
+
get viewportHeight(): number;
|
|
39
|
+
set viewportHeight(viewportHeight: number);
|
|
36
40
|
get aspect(): number;
|
|
37
41
|
set aspect(aspect: number);
|
|
38
42
|
get fov(): number;
|
|
@@ -46,7 +50,7 @@ export declare class Camera {
|
|
|
46
50
|
readonly engine: Engine;
|
|
47
51
|
readonly miris: Miris;
|
|
48
52
|
readonly scene: Scene;
|
|
49
|
-
constructor({ aspect, fov, near, far, matrix, scene }: CameraInit);
|
|
53
|
+
constructor({ aspect, fov, near, far, matrix, scene, viewportHeight, }: CameraInit);
|
|
50
54
|
}
|
|
51
55
|
|
|
52
56
|
export declare type CameraInit = {
|
|
@@ -56,6 +60,7 @@ export declare type CameraInit = {
|
|
|
56
60
|
far: number;
|
|
57
61
|
matrix: Matrix4x4Tuple;
|
|
58
62
|
scene: Scene;
|
|
63
|
+
viewportHeight?: number;
|
|
59
64
|
};
|
|
60
65
|
|
|
61
66
|
export declare class Change {
|
|
@@ -281,7 +286,8 @@ declare class Engine {
|
|
|
281
286
|
aspectRatio: number,
|
|
282
287
|
verticalFov: number,
|
|
283
288
|
nearPlane: number,
|
|
284
|
-
farPlane: number
|
|
289
|
+
farPlane: number,
|
|
290
|
+
viewportHeightPixels: number
|
|
285
291
|
]): AquaStatus;
|
|
286
292
|
setMaxCacheSize(...args: [maxSizeBytes: number]): void;
|
|
287
293
|
setSceneObjectTransform(...args: [
|
|
@@ -452,6 +458,7 @@ export declare class Miris {
|
|
|
452
458
|
protected _xrSession: XRSession | null;
|
|
453
459
|
protected _requestAnimationFrame: RequestAnimationFrameFn | null;
|
|
454
460
|
signalResumeFromIdle(): void;
|
|
461
|
+
get _splatCountBudget(): number;
|
|
455
462
|
/**
|
|
456
463
|
* Why 43? Because the AVP throttles down to 45Hz :(
|
|
457
464
|
*/
|