@babylonjs/core
Version:
Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.
29 lines (28 loc) • 990 B
TypeScript
import type { Particle } from "./particle.js";
import type { ThinParticleSystem } from "./thinParticleSystem.js";
/**
* Class used to represent a particle flow map.
* #5DM02T#7
* GPUParts: #5DM02T#12 (webgl2)
* GPUParts: #5DM02T#13 (webgpu)
*/
export declare class FlowMap {
readonly width: number;
readonly height: number;
readonly data: Uint8ClampedArray;
/**
* Create a new flow map.
* @param width defines the width of the flow map
* @param height defines the height of the flow map
* @param data defines the data of the flow map
*/
constructor(width: number, height: number, data: Uint8ClampedArray);
/** @internal */
_processParticle(particle: Particle, system: ThinParticleSystem, strength?: number): void;
/**
* Creates a FlowMap from a url.
* @param url The url of the image to load
* @returns a promise that resolves to a FlowMap object
*/
static FromUrlAsync(url: string): Promise<FlowMap>;
}