UNPKG

@animech-public/playcanvas

Version:
2 lines (1 loc) 1.67 kB
import{Vec3 as t}from"../../../core/math/vec3.js";import{EMITTERSHAPE_BOX as i,PARTICLEMODE_GPU as s,PARTICLEORIENTATION_SCREEN as h,BLEND_NORMAL as e,LAYERID_WORLD as l}from"../../../scene/constants.js";class n{constructor(){this.numParticles=1,this.rate=1,this.rate2=null,this.startAngle=0,this.startAngle2=null,this.lifetime=50,this.emitterExtents=new t,this.emitterExtentsInner=new t,this.emitterRadius=0,this.emitterRadiusInner=0,this.emitterLength=0,this.emitterLengthInner=0,this.emitterShape=i,this.initialVelocity=0,this.wrap=!1,this.wrapBounds=new t,this.localSpace=!1,this.screenSpace=!1,this.colorMap=null,this.colorMapAsset=null,this.normalMap=null,this.normalMapAsset=null,this.loop=!0,this.preWarm=!1,this.sort=0,this.mode=s,this.scene=null,this.lighting=!1,this.halfLambert=!1,this.intensity=1,this.stretch=0,this.alignToMotion=!1,this.depthSoftening=0,this.renderAsset=null,this.meshAsset=null,this.mesh=null,this.depthWrite=!1,this.noFog=!1,this.orientation=h,this.particleNormal=new t(0,1,0),this.animTilesX=1,this.animTilesY=1,this.animStartFrame=0,this.animNumFrames=1,this.animNumAnimations=1,this.animIndex=0,this.randomizeAnimIndex=!1,this.animSpeed=1,this.animLoop=!0,this.scaleGraph=null,this.scaleGraph2=null,this.colorGraph=null,this.colorGraph2=null,this.alphaGraph=null,this.alphaGraph2=null,this.localVelocityGraph=null,this.localVelocityGraph2=null,this.velocityGraph=null,this.velocityGraph2=null,this.rotationSpeedGraph=null,this.rotationSpeedGraph2=null,this.radialSpeedGraph=null,this.radialSpeedGraph2=null,this.blendType=e,this.enabled=!0,this.paused=!1,this.autoPlay=!0,this.layers=[l]}}export{n as ParticleSystemComponentData};