vanilla-vfx 0.0.10 → 0.2.0
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/index.d.ts +36 -1
- package/dist/index.js +20474 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,37 @@
|
|
|
1
|
+
import * as THREE from 'three/webgpu';
|
|
2
|
+
import { VFXParticleSystem, VFXParticleSystemOptions } from 'core-vfx';
|
|
3
|
+
export { Appearance, AttractorConfig, AttractorType, BaseParticleProps, Blending, CollisionConfig, CurveData, CurvePoint, CurveTextureResolved, Easing, EmitterController, EmitterControllerOptions, EmitterShape, FlipbookConfig, FrictionConfig, Lighting, Rotation3DInput, StretchConfig, TurbulenceConfig, VFXParticleSystem, VFXParticleSystemOptions, isWebGPUBackend, resolveCurveTexture } from 'core-vfx';
|
|
1
4
|
|
|
2
|
-
|
|
5
|
+
type VFXParticlesOptions = VFXParticleSystemOptions & {
|
|
6
|
+
debug?: boolean;
|
|
7
|
+
/** Optional fallback Object3D to display when WebGPU is not available */
|
|
8
|
+
fallback?: THREE.Object3D;
|
|
9
|
+
};
|
|
10
|
+
declare class VFXParticles {
|
|
11
|
+
readonly group: THREE.Group;
|
|
12
|
+
private renderer;
|
|
13
|
+
private config;
|
|
14
|
+
system: VFXParticleSystem | null;
|
|
15
|
+
isEmitting: boolean;
|
|
16
|
+
private emitAccumulator;
|
|
17
|
+
private debug;
|
|
18
|
+
private initialized;
|
|
19
|
+
private disabled;
|
|
20
|
+
constructor(renderer: THREE.WebGPURenderer, options?: VFXParticlesOptions);
|
|
21
|
+
get object3D(): THREE.Group;
|
|
22
|
+
get uniforms(): Record<string, {
|
|
23
|
+
value: any;
|
|
24
|
+
}> | null;
|
|
25
|
+
init(): Promise<void>;
|
|
26
|
+
update(delta: number): void;
|
|
27
|
+
dispose(): void;
|
|
28
|
+
spawn(x?: number, y?: number, z?: number, count?: number, overrides?: Record<string, unknown> | null): void;
|
|
29
|
+
start(): void;
|
|
30
|
+
stop(): void;
|
|
31
|
+
clear(): void;
|
|
32
|
+
setProps(newValues: Record<string, any>): void;
|
|
33
|
+
private recreateSystem;
|
|
34
|
+
private applyUniformUpdates;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { VFXParticles, type VFXParticlesOptions };
|