UNPKG

playcanvas

Version:

Open-source WebGL/WebGPU 3D engine for the web

105 lines (104 loc) 3.23 kB
/** * @import { Asset } from '../../../framework/asset/asset.js' * @import { CurveSet } from '../../../core/math/curve-set.js' * @import { Curve } from '../../../core/math/curve.js' * @import { Mesh } from '../../../scene/mesh.js' * @import { Texture } from '../../../platform/graphics/texture.js' */ export class ParticleSystemComponentData { numParticles: number; rate: number; /** @type {number|null} */ rate2: number | null; startAngle: number; /** @type {number|null} */ startAngle2: number | null; lifetime: number; emitterExtents: Vec3; emitterExtentsInner: Vec3; emitterRadius: number; emitterRadiusInner: number; emitterShape: number; initialVelocity: number; wrap: boolean; wrapBounds: Vec3; localSpace: boolean; screenSpace: boolean; /** @type {Texture|null} */ colorMap: Texture | null; /** @type {Asset|null} */ colorMapAsset: Asset | null; /** @type {Texture|null} */ normalMap: Texture | null; /** @type {Asset|null} */ normalMapAsset: Asset | null; loop: boolean; preWarm: boolean; sort: number; mode: number; scene: any; lighting: boolean; halfLambert: boolean; intensity: number; stretch: number; alignToMotion: boolean; depthSoftening: number; /** @type {Asset|null} */ renderAsset: Asset | null; /** @type {Asset|null} */ meshAsset: Asset | null; /** @type {Mesh|null} */ mesh: Mesh | null; depthWrite: boolean; noFog: boolean; orientation: number; particleNormal: Vec3; animTilesX: number; animTilesY: number; animStartFrame: number; animNumFrames: number; animNumAnimations: number; animIndex: number; randomizeAnimIndex: boolean; animSpeed: number; animLoop: boolean; /** @type {Curve|null} */ scaleGraph: Curve | null; /** @type {Curve|null} */ scaleGraph2: Curve | null; /** @type {CurveSet|null} */ colorGraph: CurveSet | null; /** @type {CurveSet|null} */ colorGraph2: CurveSet | null; /** @type {Curve|null} */ alphaGraph: Curve | null; /** @type {Curve|null} */ alphaGraph2: Curve | null; /** @type {CurveSet|null} */ localVelocityGraph: CurveSet | null; /** @type {CurveSet|null} */ localVelocityGraph2: CurveSet | null; /** @type {CurveSet|null} */ velocityGraph: CurveSet | null; /** @type {CurveSet|null} */ velocityGraph2: CurveSet | null; /** @type {Curve|null} */ rotationSpeedGraph: Curve | null; /** @type {Curve|null} */ rotationSpeedGraph2: Curve | null; /** @type {Curve|null} */ radialSpeedGraph: Curve | null; /** @type {Curve|null} */ radialSpeedGraph2: Curve | null; blendType: number; enabled: boolean; paused: boolean; autoPlay: boolean; layers: number[]; } import { Vec3 } from '../../../core/math/vec3.js'; import type { Texture } from '../../../platform/graphics/texture.js'; import type { Asset } from '../../../framework/asset/asset.js'; import type { Mesh } from '../../../scene/mesh.js'; import type { Curve } from '../../../core/math/curve.js'; import type { CurveSet } from '../../../core/math/curve-set.js';