1 |
- {"ast":null,"code":"import { Vector2, Vector3 } from \"../Maths/math.vector.js\";\nimport { ImageProcessingConfigurationDefines } from \"../Materials/imageProcessingConfiguration.defines.js\";\nimport { Color4 } from \"../Maths/math.color.js\";\nimport \"../Engines/Extensions/engine.dynamicBuffer.js\";\nimport { RegisterClass } from \"../Misc/typeStore.js\";\n/**\n * This represents the base class for particle system in Babylon.\n * Particles are often small sprites used to simulate hard-to-reproduce phenomena like fire, smoke, water, or abstract visual effects like magic glitter and faery dust.\n * Particles can take different shapes while emitted like box, sphere, cone or you can write your custom function.\n * @example https://doc.babylonjs.com/features/featuresDeepDive/particles/particle_system/particle_system_intro\n */\nexport class BaseParticleSystem {\n /**\n * Gets or sets a texture used to add random noise to particle positions\n */\n get noiseTexture() {\n return this._noiseTexture;\n }\n set noiseTexture(value) {\n if (this._noiseTexture === value) {\n return;\n }\n this._noiseTexture = value;\n this._reset();\n }\n /**\n * Gets or sets whether an animation sprite sheet is enabled or not on the particle system\n */\n get isAnimationSheetEnabled() {\n return this._isAnimationSheetEnabled;\n }\n set isAnimationSheetEnabled(value) {\n if (this._isAnimationSheetEnabled == value) {\n return;\n }\n this._isAnimationSheetEnabled = value;\n this._reset();\n }\n /**\n * Gets or sets a boolean enabling the use of logarithmic depth buffers, which is good for wide depth buffers.\n */\n get useLogarithmicDepth() {\n return this._useLogarithmicDepth;\n }\n set useLogarithmicDepth(value) {\n this._useLogarithmicDepth = value && this.getScene().getEngine().getCaps().fragmentDepthSupported;\n }\n /**\n * Get hosting scene\n * @returns the scene\n */\n getScene() {\n return this._scene;\n }\n _hasTargetStopDurationDependantGradient() {\n return this._startSizeGradients && this._startSizeGradients.length > 0 || this._emitRateGradients && this._emitRateGradients.length > 0 || this._lifeTimeGradients && this._lifeTimeGradients.length > 0;\n }\n /**\n * Gets the current list of drag gradients.\n * You must use addDragGradient and removeDragGradient to update this list\n * @returns the list of drag gradients\n */\n getDragGradients() {\n return this._dragGradients;\n }\n /**\n * Gets the current list of limit velocity gradients.\n * You must use addLimitVelocityGradient and removeLimitVelocityGradient to update this list\n * @returns the list of limit velocity gradients\n */\n getLimitVelocityGradients() {\n return this._limitVelocityGradients;\n }\n /**\n * Gets the current list of color gradients.\n * You must use addColorGradient and removeColorGradient to update this list\n * @returns the list of color gradients\n */\n getColorGradients() {\n return this._colorGradients;\n }\n /**\n * Gets the current list of size gradients.\n * You must use addSizeGradient and removeSizeGradient to update this list\n * @returns the list of size gradients\n */\n getSizeGradients() {\n return this._sizeGradients;\n }\n /**\n * Gets the current list of color remap gradients.\n * You must use addColorRemapGradient and removeColorRemapGradient to update this list\n * @returns the list of color remap gradients\n */\n getColorRemapGradients() {\n return this._colorRemapGradients;\n }\n /**\n * Gets the current list of alpha remap gradients.\n * You must use addAlphaRemapGradient and removeAlphaRemapGradient to update this list\n * @returns the list of alpha remap gradients\n */\n getAlphaRemapGradients() {\n return this._alphaRemapGradients;\n }\n /**\n * Gets the current list of life time gradients.\n * You must use addLifeTimeGradient and removeLifeTimeGradient to update this list\n * @returns the list of life time gradients\n */\n getLifeTimeGradients() {\n return this._lifeTimeGradients;\n }\n /**\n * Gets the current list of angular speed gradients.\n * You must use addAngularSpeedGradient and removeAngularSpeedGradient to update this list\n * @returns the list of angular speed gradients\n */\n getAngularSpeedGradients() {\n return this._angularSpeedGradients;\n }\n /**\n * Gets the current list of velocity gradients.\n * You must use addVelocityGradient and removeVelocityGradient to update this list\n * @returns the list of velocity gradients\n */\n getVelocityGradients() {\n return this._velocityGradients;\n }\n /**\n * Gets the current list of start size gradients.\n * You must use addStartSizeGradient and removeStartSizeGradient to update this list\n * @returns the list of start size gradients\n */\n getStartSizeGradients() {\n return this._startSizeGradients;\n }\n /**\n * Gets the current list of emit rate gradients.\n * You must use addEmitRateGradient and removeEmitRateGradient to update this list\n * @returns the list of emit rate gradients\n */\n getEmitRateGradients() {\n return this._emitRateGradients;\n }\n /**\n * Random direction of each particle after it has been emitted, between direction1 and direction2 vectors.\n * This only works when particleEmitterTyps is a BoxParticleEmitter\n */\n get direction1() {\n if (this.particleEmitterType.direction1) {\n return this.particleEmitterType.direction1;\n }\n return Vector3.Zero();\n }\n set direction1(value) {\n if (this.particleEmitterType.direction1) {\n this.particleEmitterType.direction1 = value;\n }\n }\n /**\n * Random direction of each particle after it has been emitted, between direction1 and direction2 vectors.\n * This only works when particleEmitterTyps is a BoxParticleEmitter\n */\n get direction2() {\n if (this.particleEmitterType.direction2) {\n return this.particleEmitterType.direction2;\n }\n return Vector3.Zero();\n }\n set direction2(value) {\n if (this.particleEmitterType.direction2) {\n this.particleEmitterType.direction2 = value;\n }\n }\n /**\n * Minimum box point around our emitter. Our emitter is the center of particles source, but if you want your particles to emit from more than one point, then you can tell it to do so.\n * This only works when particleEmitterTyps is a BoxParticleEmitter\n */\n get minEmitBox() {\n if (this.particleEmitterType.minEmitBox) {\n return this.particleEmitterType.minEmitBox;\n }\n return Vector3.Zero();\n }\n set minEmitBox(value) {\n if (this.particleEmitterType.minEmitBox) {\n this.particleEmitterType.minEmitBox = value;\n }\n }\n /**\n * Maximum box point around our emitter. Our emitter is the center of particles source, but if you want your particles to emit from more than one point, then you can tell it to do so.\n * This only works when particleEmitterTyps is a BoxParticleEmitter\n */\n get maxEmitBox() {\n if (this.particleEmitterType.maxEmitBox) {\n return this.particleEmitterType.maxEmitBox;\n }\n return Vector3.Zero();\n }\n set maxEmitBox(value) {\n if (this.particleEmitterType.maxEmitBox) {\n this.particleEmitterType.maxEmitBox = value;\n }\n }\n /**\n * Gets or sets the billboard mode to use when isBillboardBased = true.\n * Value can be: ParticleSystem.BILLBOARDMODE_ALL, ParticleSystem.BILLBOARDMODE_Y, ParticleSystem.BILLBOARDMODE_STRETCHED\n */\n get billboardMode() {\n return this._billboardMode;\n }\n set billboardMode(value) {\n if (this._billboardMode === value) {\n return;\n }\n this._billboardMode = value;\n this._reset();\n }\n /**\n * Gets or sets a boolean indicating if the particles must be rendered as billboard or aligned with the direction\n */\n get isBillboardBased() {\n return this._isBillboardBased;\n }\n set isBillboardBased(value) {\n if (this._isBillboardBased === value) {\n return;\n }\n this._isBillboardBased = value;\n this._reset();\n }\n /**\n * Gets the image processing configuration used either in this material.\n */\n get imageProcessingConfiguration() {\n return this._imageProcessingConfiguration;\n }\n /**\n * Sets the Default image processing configuration used either in the this material.\n *\n * If sets to null, the scene one is in use.\n */\n set imageProcessingConfiguration(value) {\n this._attachImageProcessingConfiguration(value);\n }\n /**\n * Attaches a new image processing configuration to the Standard Material.\n * @param configuration\n */\n _attachImageProcessingConfiguration(configuration) {\n if (configuration === this._imageProcessingConfiguration) {\n return;\n }\n // Pick the scene configuration if needed.\n if (!configuration && this._scene) {\n this._imageProcessingConfiguration = this._scene.imageProcessingConfiguration;\n } else {\n this._imageProcessingConfiguration = configuration;\n }\n }\n /** @internal */\n _reset() {}\n /**\n * @internal\n */\n _removeGradientAndTexture(gradient, gradients, texture) {\n if (!gradients) {\n return this;\n }\n let index = 0;\n for (const valueGradient of gradients) {\n if (valueGradient.gradient === gradient) {\n gradients.splice(index, 1);\n break;\n }\n index++;\n }\n if (texture) {\n texture.dispose();\n }\n return this;\n }\n /**\n * Instantiates a particle system.\n * Particles are often small sprites used to simulate hard-to-reproduce phenomena like fire, smoke, water, or abstract visual effects like magic glitter and faery dust.\n * @param name The name of the particle system\n */\n constructor(name) {\n /**\n * List of animations used by the particle system.\n */\n this.animations = [];\n /**\n * The rendering group used by the Particle system to chose when to render.\n */\n this.renderingGroupId = 0;\n /**\n * The emitter represents the Mesh or position we are attaching the particle system to.\n */\n this.emitter = Vector3.Zero();\n /**\n * The maximum number of particles to emit per frame\n */\n this.emitRate = 10;\n /**\n * If you want to launch only a few particles at once, that can be done, as well.\n */\n this.manualEmitCount = -1;\n /**\n * The overall motion speed (0.01 is default update speed, faster updates = faster animation)\n */\n this.updateSpeed = 0.01;\n /**\n * The amount of time the particle system is running (depends of the overall update speed).\n */\n this.targetStopDuration = 0;\n /**\n * Specifies whether the particle system will be disposed once it reaches the end of the animation.\n */\n this.disposeOnStop = false;\n /**\n * Minimum power of emitting particles.\n */\n this.minEmitPower = 1;\n /**\n * Maximum power of emitting particles.\n */\n this.maxEmitPower = 1;\n /**\n * Minimum life time of emitting particles.\n */\n this.minLifeTime = 1;\n /**\n * Maximum life time of emitting particles.\n */\n this.maxLifeTime = 1;\n /**\n * Minimum Size of emitting particles.\n */\n this.minSize = 1;\n /**\n * Maximum Size of emitting particles.\n */\n this.maxSize = 1;\n /**\n * Minimum scale of emitting particles on X axis.\n */\n this.minScaleX = 1;\n /**\n * Maximum scale of emitting particles on X axis.\n */\n this.maxScaleX = 1;\n /**\n * Minimum scale of emitting particles on Y axis.\n */\n this.minScaleY = 1;\n /**\n * Maximum scale of emitting particles on Y axis.\n */\n this.maxScaleY = 1;\n /**\n * Gets or sets the minimal initial rotation in radians.\n */\n this.minInitialRotation = 0;\n /**\n * Gets or sets the maximal initial rotation in radians.\n */\n this.maxInitialRotation = 0;\n /**\n * Minimum angular speed of emitting particles (Z-axis rotation for each particle).\n */\n this.minAngularSpeed = 0;\n /**\n * Maximum angular speed of emitting particles (Z-axis rotation for each particle).\n */\n this.maxAngularSpeed = 0;\n /**\n * The layer mask we are rendering the particles through.\n */\n this.layerMask = 0x0fffffff;\n /**\n * This can help using your own shader to render the particle system.\n * The according effect will be created\n */\n this.customShader = null;\n /**\n * By default particle system starts as soon as they are created. This prevents the\n * automatic start to happen and let you decide when to start emitting particles.\n */\n this.preventAutoStart = false;\n /**\n * Gets or sets a boolean indicating that this particle system will allow fog to be rendered on it (false by default)\n */\n this.applyFog = false;\n /** @internal */\n this._wasDispatched = false;\n this._rootUrl = \"\";\n /** Gets or sets the strength to apply to the noise value (default is (10, 10, 10)) */\n this.noiseStrength = new Vector3(10, 10, 10);\n /**\n * Callback triggered when the particle animation is ending.\n */\n this.onAnimationEnd = null;\n /**\n * Blend mode use to render the particle, it can be either ParticleSystem.BLENDMODE_ONEONE or ParticleSystem.BLENDMODE_STANDARD.\n */\n this.blendMode = BaseParticleSystem.BLENDMODE_ONEONE;\n /**\n * Forces the particle to write their depth information to the depth buffer. This can help preventing other draw calls\n * to override the particles.\n */\n this.forceDepthWrite = false;\n /** Gets or sets a value indicating how many cycles (or frames) must be executed before first rendering (this value has to be set before starting the system). Default is 0 */\n this.preWarmCycles = 0;\n /** Gets or sets a value indicating the time step multiplier to use in pre-warm mode (default is 1) */\n this.preWarmStepOffset = 1;\n /**\n * If using a spritesheet (isAnimationSheetEnabled) defines the speed of the sprite loop (default is 1 meaning the animation will play once during the entire particle lifetime)\n */\n this.spriteCellChangeSpeed = 1;\n /**\n * If using a spritesheet (isAnimationSheetEnabled) defines the first sprite cell to display\n */\n this.startSpriteCellID = 0;\n /**\n * If using a spritesheet (isAnimationSheetEnabled) defines the last sprite cell to display\n */\n this.endSpriteCellID = 0;\n /**\n * If using a spritesheet (isAnimationSheetEnabled), defines the sprite cell width to use\n */\n this.spriteCellWidth = 0;\n /**\n * If using a spritesheet (isAnimationSheetEnabled), defines the sprite cell height to use\n */\n this.spriteCellHeight = 0;\n /**\n * If using a spritesheet (isAnimationSheetEnabled), defines wether the sprite animation is looping\n */\n this.spriteCellLoop = true;\n /**\n * This allows the system to random pick the start cell ID between startSpriteCellID and endSpriteCellID\n */\n this.spriteRandomStartCell = false;\n /** Gets or sets a Vector2 used to move the pivot (by default (0,0)) */\n this.translationPivot = new Vector2(0, 0);\n /**\n * Gets or sets a boolean indicating that hosted animations (in the system.animations array) must be started when system.start() is called\n */\n this.beginAnimationOnStart = false;\n /**\n * Gets or sets the frame to start the animation from when beginAnimationOnStart is true\n */\n this.beginAnimationFrom = 0;\n /**\n * Gets or sets the frame to end the animation on when beginAnimationOnStart is true\n */\n this.beginAnimationTo = 60;\n /**\n * Gets or sets a boolean indicating if animations must loop when beginAnimationOnStart is true\n */\n this.beginAnimationLoop = false;\n /**\n * Gets or sets a world offset applied to all particles\n */\n this.worldOffset = new Vector3(0, 0, 0);\n this._useLogarithmicDepth = false;\n /**\n * You can use gravity if you want to give an orientation to your particles.\n */\n this.gravity = Vector3.Zero();\n this._colorGradients = null;\n this._sizeGradients = null;\n this._lifeTimeGradients = null;\n this._angularSpeedGradients = null;\n this._velocityGradients = null;\n this._limitVelocityGradients = null;\n this._dragGradients = null;\n this._emitRateGradients = null;\n this._startSizeGradients = null;\n this._rampGradients = null;\n this._colorRemapGradients = null;\n this._alphaRemapGradients = null;\n /**\n * Defines the delay in milliseconds before starting the system (0 by default)\n */\n this.startDelay = 0;\n /** Gets or sets a value indicating the damping to apply if the limit velocity factor is reached */\n this.limitVelocityDamping = 0.4;\n /**\n * Random color of each particle after it has been emitted, between color1 and color2 vectors\n */\n this.color1 = new Color4(1.0, 1.0, 1.0, 1.0);\n /**\n * Random color of each particle after it has been emitted, between color1 and color2 vectors\n */\n this.color2 = new Color4(1.0, 1.0, 1.0, 1.0);\n /**\n * Color the particle will have at the end of its lifetime\n */\n this.colorDead = new Color4(0, 0, 0, 1.0);\n /**\n * An optional mask to filter some colors out of the texture, or filter a part of the alpha channel\n */\n this.textureMask = new Color4(1.0, 1.0, 1.0, 1.0);\n /** @internal */\n this._isSubEmitter = false;\n /** @internal */\n this._billboardMode = 7;\n /** @internal */\n this._isBillboardBased = true;\n /**\n * Local cache of defines for image processing.\n */\n this._imageProcessingConfigurationDefines = new ImageProcessingConfigurationDefines();\n this.id = name;\n this.name = name;\n }\n /**\n * Creates a Point Emitter for the particle system (emits directly from the emitter position)\n * @param direction1 Particles are emitted between the direction1 and direction2 from within the box\n * @param direction2 Particles are emitted between the direction1 and direction2 from within the box\n */\n createPointEmitter(direction1, direction2) {\n throw new Error(\"Method not implemented.\");\n }\n /**\n * Creates a Hemisphere Emitter for the particle system (emits along the hemisphere radius)\n * @param radius The radius of the hemisphere to emit from\n * @param radiusRange The range of the hemisphere to emit from [0-1] 0 Surface Only, 1 Entire Radius\n */\n createHemisphericEmitter(radius = 1, radiusRange = 1) {\n throw new Error(\"Method not implemented.\");\n }\n /**\n * Creates a Sphere Emitter for the particle system (emits along the sphere radius)\n * @param radius The radius of the sphere to emit from\n * @param radiusRange The range of the sphere to emit from [0-1] 0 Surface Only, 1 Entire Radius\n */\n createSphereEmitter(radius = 1, radiusRange = 1) {\n throw new Error(\"Method not implemented.\");\n }\n /**\n * Creates a Directed Sphere Emitter for the particle system (emits between direction1 and direction2)\n * @param radius The radius of the sphere to emit from\n * @param direction1 Particles are emitted between the direction1 and direction2 from within the sphere\n * @param direction2 Particles are emitted between the direction1 and direction2 from within the sphere\n */\n createDirectedSphereEmitter(radius = 1, direction1 = new Vector3(0, 1.0, 0), direction2 = new Vector3(0, 1.0, 0)) {\n throw new Error(\"Method not implemented.\");\n }\n /**\n * Creates a Cylinder Emitter for the particle system (emits from the cylinder to the particle position)\n * @param radius The radius of the emission cylinder\n * @param height The height of the emission cylinder\n * @param radiusRange The range of emission [0-1] 0 Surface only, 1 Entire Radius\n * @param directionRandomizer How much to randomize the particle direction [0-1]\n */\n createCylinderEmitter(radius = 1, height = 1, radiusRange = 1, directionRandomizer = 0) {\n throw new Error(\"Method not implemented.\");\n }\n /**\n * Creates a Directed Cylinder Emitter for the particle system (emits between direction1 and direction2)\n * @param radius The radius of the cylinder to emit from\n * @param height The height of the emission cylinder\n * @param radiusRange the range of the emission cylinder [0-1] 0 Surface only, 1 Entire Radius (1 by default)\n * @param direction1 Particles are emitted between the direction1 and direction2 from within the cylinder\n * @param direction2 Particles are emitted between the direction1 and direction2 from within the cylinder\n */\n createDirectedCylinderEmitter(radius = 1, height = 1, radiusRange = 1, direction1 = new Vector3(0, 1.0, 0), direction2 = new Vector3(0, 1.0, 0)) {\n throw new Error(\"Method not implemented.\");\n }\n /**\n * Creates a Cone Emitter for the particle system (emits from the cone to the particle position)\n * @param radius The radius of the cone to emit from\n * @param angle The base angle of the cone\n */\n createConeEmitter(radius = 1, angle = Math.PI / 4) {\n throw new Error(\"Method not implemented.\");\n }\n createDirectedConeEmitter(radius = 1, angle = Math.PI / 4, direction1 = new Vector3(0, 1.0, 0), direction2 = new Vector3(0, 1.0, 0)) {\n throw new Error(\"Method not implemented.\");\n }\n /**\n * Creates a Box Emitter for the particle system. (emits between direction1 and direction2 from withing the box defined by minEmitBox and maxEmitBox)\n * @param direction1 Particles are emitted between the direction1 and direction2 from within the box\n * @param direction2 Particles are emitted between the direction1 and direction2 from within the box\n * @param minEmitBox Particles are emitted from the box between minEmitBox and maxEmitBox\n * @param maxEmitBox Particles are emitted from the box between minEmitBox and maxEmitBox\n */\n createBoxEmitter(direction1, direction2, minEmitBox, maxEmitBox) {\n throw new Error(\"Method not implemented.\");\n }\n}\n/**\n * Source color is added to the destination color without alpha affecting the result\n */\nBaseParticleSystem.BLENDMODE_ONEONE = 0;\n/**\n * Blend current color and particle color using particle’s alpha\n */\nBaseParticleSystem.BLENDMODE_STANDARD = 1;\n/**\n * Add current color and particle color multiplied by particle’s alpha\n */\nBaseParticleSystem.BLENDMODE_ADD = 2;\n/**\n * Multiply current color with particle color\n */\nBaseParticleSystem.BLENDMODE_MULTIPLY = 3;\n/**\n * Multiply current color with particle color then add current color and particle color multiplied by particle’s alpha\n */\nBaseParticleSystem.BLENDMODE_MULTIPLYADD = 4;\n// Register Class Name\nRegisterClass(\"BABYLON.BaseParticleSystem\", BaseParticleSystem);","map":{"version":3,"names":["Vector2","Vector3","ImageProcessingConfigurationDefines","Color4","RegisterClass","BaseParticleSystem","noiseTexture","_noiseTexture","value","_reset","isAnimationSheetEnabled","_isAnimationSheetEnabled","useLogarithmicDepth","_useLogarithmicDepth","getScene","getEngine","getCaps","fragmentDepthSupported","_scene","_hasTargetStopDurationDependantGradient","_startSizeGradients","length","_emitRateGradients","_lifeTimeGradients","getDragGradients","_dragGradients","getLimitVelocityGradients","_limitVelocityGradients","getColorGradients","_colorGradients","getSizeGradients","_sizeGradients","getColorRemapGradients","_colorRemapGradients","getAlphaRemapGradients","_alphaRemapGradients","getLifeTimeGradients","getAngularSpeedGradients","_angularSpeedGradients","getVelocityGradients","_velocityGradients","getStartSizeGradients","getEmitRateGradients","direction1","particleEmitterType","Zero","direction2","minEmitBox","maxEmitBox","billboardMode","_billboardMode","isBillboardBased","_isBillboardBased","imageProcessingConfiguration","_imageProcessingConfiguration","_attachImageProcessingConfiguration","configuration","_removeGradientAndTexture","gradient","gradients","texture","index","valueGradient","splice","dispose","constructor","name","animations","renderingGroupId","emitter","emitRate","manualEmitCount","updateSpeed","targetStopDuration","disposeOnStop","minEmitPower","maxEmitPower","minLifeTime","maxLifeTime","minSize","maxSize","minScaleX","maxScaleX","minScaleY","maxScaleY","minInitialRotation","maxInitialRotation","minAngularSpeed","maxAngularSpeed","layerMask","customShader","preventAutoStart","applyFog","_wasDispatched","_rootUrl","noiseStrength","onAnimationEnd","blendMode","BLENDMODE_ONEONE","forceDepthWrite","preWarmCycles","preWarmStepOffset","spriteCellChangeSpeed","startSpriteCellID","endSpriteCellID","spriteCellWidth","spriteCellHeight","spriteCellLoop","spriteRandomStartCell","translationPivot","beginAnimationOnStart","beginAnimationFrom","beginAnimationTo","beginAnimationLoop","worldOffset","gravity","_rampGradients","startDelay","limitVelocityDamping","color1","color2","colorDead","textureMask","_isSubEmitter","_imageProcessingConfigurationDefines","id","createPointEmitter","Error","createHemisphericEmitter","radius","radiusRange","createSphereEmitter","createDirectedSphereEmitter","createCylinderEmitter","height","directionRandomizer","createDirectedCylinderEmitter","createConeEmitter","angle","Math","PI","createDirectedConeEmitter","createBoxEmitter","BLENDMODE_STANDARD","BLENDMODE_ADD","BLENDMODE_MULTIPLY","BLENDMODE_MULTIPLYADD"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/Particles/baseParticleSystem.js"],"sourcesContent":["import { Vector2, Vector3 } from \"../Maths/math.vector.js\";\nimport { ImageProcessingConfigurationDefines } from \"../Materials/imageProcessingConfiguration.defines.js\";\n\nimport { Color4 } from \"../Maths/math.color.js\";\nimport \"../Engines/Extensions/engine.dynamicBuffer.js\";\nimport { RegisterClass } from \"../Misc/typeStore.js\";\n/**\n * This represents the base class for particle system in Babylon.\n * Particles are often small sprites used to simulate hard-to-reproduce phenomena like fire, smoke, water, or abstract visual effects like magic glitter and faery dust.\n * Particles can take different shapes while emitted like box, sphere, cone or you can write your custom function.\n * @example https://doc.babylonjs.com/features/featuresDeepDive/particles/particle_system/particle_system_intro\n */\nexport class BaseParticleSystem {\n /**\n * Gets or sets a texture used to add random noise to particle positions\n */\n get noiseTexture() {\n return this._noiseTexture;\n }\n set noiseTexture(value) {\n if (this._noiseTexture === value) {\n return;\n }\n this._noiseTexture = value;\n this._reset();\n }\n /**\n * Gets or sets whether an animation sprite sheet is enabled or not on the particle system\n */\n get isAnimationSheetEnabled() {\n return this._isAnimationSheetEnabled;\n }\n set isAnimationSheetEnabled(value) {\n if (this._isAnimationSheetEnabled == value) {\n return;\n }\n this._isAnimationSheetEnabled = value;\n this._reset();\n }\n /**\n * Gets or sets a boolean enabling the use of logarithmic depth buffers, which is good for wide depth buffers.\n */\n get useLogarithmicDepth() {\n return this._useLogarithmicDepth;\n }\n set useLogarithmicDepth(value) {\n this._useLogarithmicDepth = value && this.getScene().getEngine().getCaps().fragmentDepthSupported;\n }\n /**\n * Get hosting scene\n * @returns the scene\n */\n getScene() {\n return this._scene;\n }\n _hasTargetStopDurationDependantGradient() {\n return ((this._startSizeGradients && this._startSizeGradients.length > 0) ||\n (this._emitRateGradients && this._emitRateGradients.length > 0) ||\n (this._lifeTimeGradients && this._lifeTimeGradients.length > 0));\n }\n /**\n * Gets the current list of drag gradients.\n * You must use addDragGradient and removeDragGradient to update this list\n * @returns the list of drag gradients\n */\n getDragGradients() {\n return this._dragGradients;\n }\n /**\n * Gets the current list of limit velocity gradients.\n * You must use addLimitVelocityGradient and removeLimitVelocityGradient to update this list\n * @returns the list of limit velocity gradients\n */\n getLimitVelocityGradients() {\n return this._limitVelocityGradients;\n }\n /**\n * Gets the current list of color gradients.\n * You must use addColorGradient and removeColorGradient to update this list\n * @returns the list of color gradients\n */\n getColorGradients() {\n return this._colorGradients;\n }\n /**\n * Gets the current list of size gradients.\n * You must use addSizeGradient and removeSizeGradient to update this list\n * @returns the list of size gradients\n */\n getSizeGradients() {\n return this._sizeGradients;\n }\n /**\n * Gets the current list of color remap gradients.\n * You must use addColorRemapGradient and removeColorRemapGradient to update this list\n * @returns the list of color remap gradients\n */\n getColorRemapGradients() {\n return this._colorRemapGradients;\n }\n /**\n * Gets the current list of alpha remap gradients.\n * You must use addAlphaRemapGradient and removeAlphaRemapGradient to update this list\n * @returns the list of alpha remap gradients\n */\n getAlphaRemapGradients() {\n return this._alphaRemapGradients;\n }\n /**\n * Gets the current list of life time gradients.\n * You must use addLifeTimeGradient and removeLifeTimeGradient to update this list\n * @returns the list of life time gradients\n */\n getLifeTimeGradients() {\n return this._lifeTimeGradients;\n }\n /**\n * Gets the current list of angular speed gradients.\n * You must use addAngularSpeedGradient and removeAngularSpeedGradient to update this list\n * @returns the list of angular speed gradients\n */\n getAngularSpeedGradients() {\n return this._angularSpeedGradients;\n }\n /**\n * Gets the current list of velocity gradients.\n * You must use addVelocityGradient and removeVelocityGradient to update this list\n * @returns the list of velocity gradients\n */\n getVelocityGradients() {\n return this._velocityGradients;\n }\n /**\n * Gets the current list of start size gradients.\n * You must use addStartSizeGradient and removeStartSizeGradient to update this list\n * @returns the list of start size gradients\n */\n getStartSizeGradients() {\n return this._startSizeGradients;\n }\n /**\n * Gets the current list of emit rate gradients.\n * You must use addEmitRateGradient and removeEmitRateGradient to update this list\n * @returns the list of emit rate gradients\n */\n getEmitRateGradients() {\n return this._emitRateGradients;\n }\n /**\n * Random direction of each particle after it has been emitted, between direction1 and direction2 vectors.\n * This only works when particleEmitterTyps is a BoxParticleEmitter\n */\n get direction1() {\n if (this.particleEmitterType.direction1) {\n return this.particleEmitterType.direction1;\n }\n return Vector3.Zero();\n }\n set direction1(value) {\n if (this.particleEmitterType.direction1) {\n this.particleEmitterType.direction1 = value;\n }\n }\n /**\n * Random direction of each particle after it has been emitted, between direction1 and direction2 vectors.\n * This only works when particleEmitterTyps is a BoxParticleEmitter\n */\n get direction2() {\n if (this.particleEmitterType.direction2) {\n return this.particleEmitterType.direction2;\n }\n return Vector3.Zero();\n }\n set direction2(value) {\n if (this.particleEmitterType.direction2) {\n this.particleEmitterType.direction2 = value;\n }\n }\n /**\n * Minimum box point around our emitter. Our emitter is the center of particles source, but if you want your particles to emit from more than one point, then you can tell it to do so.\n * This only works when particleEmitterTyps is a BoxParticleEmitter\n */\n get minEmitBox() {\n if (this.particleEmitterType.minEmitBox) {\n return this.particleEmitterType.minEmitBox;\n }\n return Vector3.Zero();\n }\n set minEmitBox(value) {\n if (this.particleEmitterType.minEmitBox) {\n this.particleEmitterType.minEmitBox = value;\n }\n }\n /**\n * Maximum box point around our emitter. Our emitter is the center of particles source, but if you want your particles to emit from more than one point, then you can tell it to do so.\n * This only works when particleEmitterTyps is a BoxParticleEmitter\n */\n get maxEmitBox() {\n if (this.particleEmitterType.maxEmitBox) {\n return this.particleEmitterType.maxEmitBox;\n }\n return Vector3.Zero();\n }\n set maxEmitBox(value) {\n if (this.particleEmitterType.maxEmitBox) {\n this.particleEmitterType.maxEmitBox = value;\n }\n }\n /**\n * Gets or sets the billboard mode to use when isBillboardBased = true.\n * Value can be: ParticleSystem.BILLBOARDMODE_ALL, ParticleSystem.BILLBOARDMODE_Y, ParticleSystem.BILLBOARDMODE_STRETCHED\n */\n get billboardMode() {\n return this._billboardMode;\n }\n set billboardMode(value) {\n if (this._billboardMode === value) {\n return;\n }\n this._billboardMode = value;\n this._reset();\n }\n /**\n * Gets or sets a boolean indicating if the particles must be rendered as billboard or aligned with the direction\n */\n get isBillboardBased() {\n return this._isBillboardBased;\n }\n set isBillboardBased(value) {\n if (this._isBillboardBased === value) {\n return;\n }\n this._isBillboardBased = value;\n this._reset();\n }\n /**\n * Gets the image processing configuration used either in this material.\n */\n get imageProcessingConfiguration() {\n return this._imageProcessingConfiguration;\n }\n /**\n * Sets the Default image processing configuration used either in the this material.\n *\n * If sets to null, the scene one is in use.\n */\n set imageProcessingConfiguration(value) {\n this._attachImageProcessingConfiguration(value);\n }\n /**\n * Attaches a new image processing configuration to the Standard Material.\n * @param configuration\n */\n _attachImageProcessingConfiguration(configuration) {\n if (configuration === this._imageProcessingConfiguration) {\n return;\n }\n // Pick the scene configuration if needed.\n if (!configuration && this._scene) {\n this._imageProcessingConfiguration = this._scene.imageProcessingConfiguration;\n }\n else {\n this._imageProcessingConfiguration = configuration;\n }\n }\n /** @internal */\n _reset() { }\n /**\n * @internal\n */\n _removeGradientAndTexture(gradient, gradients, texture) {\n if (!gradients) {\n return this;\n }\n let index = 0;\n for (const valueGradient of gradients) {\n if (valueGradient.gradient === gradient) {\n gradients.splice(index, 1);\n break;\n }\n index++;\n }\n if (texture) {\n texture.dispose();\n }\n return this;\n }\n /**\n * Instantiates a particle system.\n * Particles are often small sprites used to simulate hard-to-reproduce phenomena like fire, smoke, water, or abstract visual effects like magic glitter and faery dust.\n * @param name The name of the particle system\n */\n constructor(name) {\n /**\n * List of animations used by the particle system.\n */\n this.animations = [];\n /**\n * The rendering group used by the Particle system to chose when to render.\n */\n this.renderingGroupId = 0;\n /**\n * The emitter represents the Mesh or position we are attaching the particle system to.\n */\n this.emitter = Vector3.Zero();\n /**\n * The maximum number of particles to emit per frame\n */\n this.emitRate = 10;\n /**\n * If you want to launch only a few particles at once, that can be done, as well.\n */\n this.manualEmitCount = -1;\n /**\n * The overall motion speed (0.01 is default update speed, faster updates = faster animation)\n */\n this.updateSpeed = 0.01;\n /**\n * The amount of time the particle system is running (depends of the overall update speed).\n */\n this.targetStopDuration = 0;\n /**\n * Specifies whether the particle system will be disposed once it reaches the end of the animation.\n */\n this.disposeOnStop = false;\n /**\n * Minimum power of emitting particles.\n */\n this.minEmitPower = 1;\n /**\n * Maximum power of emitting particles.\n */\n this.maxEmitPower = 1;\n /**\n * Minimum life time of emitting particles.\n */\n this.minLifeTime = 1;\n /**\n * Maximum life time of emitting particles.\n */\n this.maxLifeTime = 1;\n /**\n * Minimum Size of emitting particles.\n */\n this.minSize = 1;\n /**\n * Maximum Size of emitting particles.\n */\n this.maxSize = 1;\n /**\n * Minimum scale of emitting particles on X axis.\n */\n this.minScaleX = 1;\n /**\n * Maximum scale of emitting particles on X axis.\n */\n this.maxScaleX = 1;\n /**\n * Minimum scale of emitting particles on Y axis.\n */\n this.minScaleY = 1;\n /**\n * Maximum scale of emitting particles on Y axis.\n */\n this.maxScaleY = 1;\n /**\n * Gets or sets the minimal initial rotation in radians.\n */\n this.minInitialRotation = 0;\n /**\n * Gets or sets the maximal initial rotation in radians.\n */\n this.maxInitialRotation = 0;\n /**\n * Minimum angular speed of emitting particles (Z-axis rotation for each particle).\n */\n this.minAngularSpeed = 0;\n /**\n * Maximum angular speed of emitting particles (Z-axis rotation for each particle).\n */\n this.maxAngularSpeed = 0;\n /**\n * The layer mask we are rendering the particles through.\n */\n this.layerMask = 0x0fffffff;\n /**\n * This can help using your own shader to render the particle system.\n * The according effect will be created\n */\n this.customShader = null;\n /**\n * By default particle system starts as soon as they are created. This prevents the\n * automatic start to happen and let you decide when to start emitting particles.\n */\n this.preventAutoStart = false;\n /**\n * Gets or sets a boolean indicating that this particle system will allow fog to be rendered on it (false by default)\n */\n this.applyFog = false;\n /** @internal */\n this._wasDispatched = false;\n this._rootUrl = \"\";\n /** Gets or sets the strength to apply to the noise value (default is (10, 10, 10)) */\n this.noiseStrength = new Vector3(10, 10, 10);\n /**\n * Callback triggered when the particle animation is ending.\n */\n this.onAnimationEnd = null;\n /**\n * Blend mode use to render the particle, it can be either ParticleSystem.BLENDMODE_ONEONE or ParticleSystem.BLENDMODE_STANDARD.\n */\n this.blendMode = BaseParticleSystem.BLENDMODE_ONEONE;\n /**\n * Forces the particle to write their depth information to the depth buffer. This can help preventing other draw calls\n * to override the particles.\n */\n this.forceDepthWrite = false;\n /** Gets or sets a value indicating how many cycles (or frames) must be executed before first rendering (this value has to be set before starting the system). Default is 0 */\n this.preWarmCycles = 0;\n /** Gets or sets a value indicating the time step multiplier to use in pre-warm mode (default is 1) */\n this.preWarmStepOffset = 1;\n /**\n * If using a spritesheet (isAnimationSheetEnabled) defines the speed of the sprite loop (default is 1 meaning the animation will play once during the entire particle lifetime)\n */\n this.spriteCellChangeSpeed = 1;\n /**\n * If using a spritesheet (isAnimationSheetEnabled) defines the first sprite cell to display\n */\n this.startSpriteCellID = 0;\n /**\n * If using a spritesheet (isAnimationSheetEnabled) defines the last sprite cell to display\n */\n this.endSpriteCellID = 0;\n /**\n * If using a spritesheet (isAnimationSheetEnabled), defines the sprite cell width to use\n */\n this.spriteCellWidth = 0;\n /**\n * If using a spritesheet (isAnimationSheetEnabled), defines the sprite cell height to use\n */\n this.spriteCellHeight = 0;\n /**\n * If using a spritesheet (isAnimationSheetEnabled), defines wether the sprite animation is looping\n */\n this.spriteCellLoop = true;\n /**\n * This allows the system to random pick the start cell ID between startSpriteCellID and endSpriteCellID\n */\n this.spriteRandomStartCell = false;\n /** Gets or sets a Vector2 used to move the pivot (by default (0,0)) */\n this.translationPivot = new Vector2(0, 0);\n /**\n * Gets or sets a boolean indicating that hosted animations (in the system.animations array) must be started when system.start() is called\n */\n this.beginAnimationOnStart = false;\n /**\n * Gets or sets the frame to start the animation from when beginAnimationOnStart is true\n */\n this.beginAnimationFrom = 0;\n /**\n * Gets or sets the frame to end the animation on when beginAnimationOnStart is true\n */\n this.beginAnimationTo = 60;\n /**\n * Gets or sets a boolean indicating if animations must loop when beginAnimationOnStart is true\n */\n this.beginAnimationLoop = false;\n /**\n * Gets or sets a world offset applied to all particles\n */\n this.worldOffset = new Vector3(0, 0, 0);\n this._useLogarithmicDepth = false;\n /**\n * You can use gravity if you want to give an orientation to your particles.\n */\n this.gravity = Vector3.Zero();\n this._colorGradients = null;\n this._sizeGradients = null;\n this._lifeTimeGradients = null;\n this._angularSpeedGradients = null;\n this._velocityGradients = null;\n this._limitVelocityGradients = null;\n this._dragGradients = null;\n this._emitRateGradients = null;\n this._startSizeGradients = null;\n this._rampGradients = null;\n this._colorRemapGradients = null;\n this._alphaRemapGradients = null;\n /**\n * Defines the delay in milliseconds before starting the system (0 by default)\n */\n this.startDelay = 0;\n /** Gets or sets a value indicating the damping to apply if the limit velocity factor is reached */\n this.limitVelocityDamping = 0.4;\n /**\n * Random color of each particle after it has been emitted, between color1 and color2 vectors\n */\n this.color1 = new Color4(1.0, 1.0, 1.0, 1.0);\n /**\n * Random color of each particle after it has been emitted, between color1 and color2 vectors\n */\n this.color2 = new Color4(1.0, 1.0, 1.0, 1.0);\n /**\n * Color the particle will have at the end of its lifetime\n */\n this.colorDead = new Color4(0, 0, 0, 1.0);\n /**\n * An optional mask to filter some colors out of the texture, or filter a part of the alpha channel\n */\n this.textureMask = new Color4(1.0, 1.0, 1.0, 1.0);\n /** @internal */\n this._isSubEmitter = false;\n /** @internal */\n this._billboardMode = 7;\n /** @internal */\n this._isBillboardBased = true;\n /**\n * Local cache of defines for image processing.\n */\n this._imageProcessingConfigurationDefines = new ImageProcessingConfigurationDefines();\n this.id = name;\n this.name = name;\n }\n /**\n * Creates a Point Emitter for the particle system (emits directly from the emitter position)\n * @param direction1 Particles are emitted between the direction1 and direction2 from within the box\n * @param direction2 Particles are emitted between the direction1 and direction2 from within the box\n */\n createPointEmitter(direction1, direction2) {\n throw new Error(\"Method not implemented.\");\n }\n /**\n * Creates a Hemisphere Emitter for the particle system (emits along the hemisphere radius)\n * @param radius The radius of the hemisphere to emit from\n * @param radiusRange The range of the hemisphere to emit from [0-1] 0 Surface Only, 1 Entire Radius\n */\n createHemisphericEmitter(radius = 1, radiusRange = 1) {\n throw new Error(\"Method not implemented.\");\n }\n /**\n * Creates a Sphere Emitter for the particle system (emits along the sphere radius)\n * @param radius The radius of the sphere to emit from\n * @param radiusRange The range of the sphere to emit from [0-1] 0 Surface Only, 1 Entire Radius\n */\n createSphereEmitter(radius = 1, radiusRange = 1) {\n throw new Error(\"Method not implemented.\");\n }\n /**\n * Creates a Directed Sphere Emitter for the particle system (emits between direction1 and direction2)\n * @param radius The radius of the sphere to emit from\n * @param direction1 Particles are emitted between the direction1 and direction2 from within the sphere\n * @param direction2 Particles are emitted between the direction1 and direction2 from within the sphere\n */\n createDirectedSphereEmitter(radius = 1, direction1 = new Vector3(0, 1.0, 0), direction2 = new Vector3(0, 1.0, 0)) {\n throw new Error(\"Method not implemented.\");\n }\n /**\n * Creates a Cylinder Emitter for the particle system (emits from the cylinder to the particle position)\n * @param radius The radius of the emission cylinder\n * @param height The height of the emission cylinder\n * @param radiusRange The range of emission [0-1] 0 Surface only, 1 Entire Radius\n * @param directionRandomizer How much to randomize the particle direction [0-1]\n */\n createCylinderEmitter(radius = 1, height = 1, radiusRange = 1, directionRandomizer = 0) {\n throw new Error(\"Method not implemented.\");\n }\n /**\n * Creates a Directed Cylinder Emitter for the particle system (emits between direction1 and direction2)\n * @param radius The radius of the cylinder to emit from\n * @param height The height of the emission cylinder\n * @param radiusRange the range of the emission cylinder [0-1] 0 Surface only, 1 Entire Radius (1 by default)\n * @param direction1 Particles are emitted between the direction1 and direction2 from within the cylinder\n * @param direction2 Particles are emitted between the direction1 and direction2 from within the cylinder\n */\n createDirectedCylinderEmitter(radius = 1, height = 1, radiusRange = 1, direction1 = new Vector3(0, 1.0, 0), direction2 = new Vector3(0, 1.0, 0)) {\n throw new Error(\"Method not implemented.\");\n }\n /**\n * Creates a Cone Emitter for the particle system (emits from the cone to the particle position)\n * @param radius The radius of the cone to emit from\n * @param angle The base angle of the cone\n */\n createConeEmitter(radius = 1, angle = Math.PI / 4) {\n throw new Error(\"Method not implemented.\");\n }\n createDirectedConeEmitter(radius = 1, angle = Math.PI / 4, direction1 = new Vector3(0, 1.0, 0), direction2 = new Vector3(0, 1.0, 0)) {\n throw new Error(\"Method not implemented.\");\n }\n /**\n * Creates a Box Emitter for the particle system. (emits between direction1 and direction2 from withing the box defined by minEmitBox and maxEmitBox)\n * @param direction1 Particles are emitted between the direction1 and direction2 from within the box\n * @param direction2 Particles are emitted between the direction1 and direction2 from within the box\n * @param minEmitBox Particles are emitted from the box between minEmitBox and maxEmitBox\n * @param maxEmitBox Particles are emitted from the box between minEmitBox and maxEmitBox\n */\n createBoxEmitter(direction1, direction2, minEmitBox, maxEmitBox) {\n throw new Error(\"Method not implemented.\");\n }\n}\n/**\n * Source color is added to the destination color without alpha affecting the result\n */\nBaseParticleSystem.BLENDMODE_ONEONE = 0;\n/**\n * Blend current color and particle color using particle’s alpha\n */\nBaseParticleSystem.BLENDMODE_STANDARD = 1;\n/**\n * Add current color and particle color multiplied by particle’s alpha\n */\nBaseParticleSystem.BLENDMODE_ADD = 2;\n/**\n * Multiply current color with particle color\n */\nBaseParticleSystem.BLENDMODE_MULTIPLY = 3;\n/**\n * Multiply current color with particle color then add current color and particle color multiplied by particle’s alpha\n */\nBaseParticleSystem.BLENDMODE_MULTIPLYADD = 4;\n// Register Class Name\nRegisterClass(\"BABYLON.BaseParticleSystem\", BaseParticleSystem);\n"],"mappings":"AAAA,SAASA,OAAO,EAAEC,OAAO,QAAQ,yBAAyB;AAC1D,SAASC,mCAAmC,QAAQ,sDAAsD;AAE1G,SAASC,MAAM,QAAQ,wBAAwB;AAC/C,OAAO,+CAA+C;AACtD,SAASC,aAAa,QAAQ,sBAAsB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,kBAAkB,CAAC;EAC5B;AACJ;AACA;EACI,IAAIC,YAAYA,CAAA,EAAG;IACf,OAAO,IAAI,CAACC,aAAa;EAC7B;EACA,IAAID,YAAYA,CAACE,KAAK,EAAE;IACpB,IAAI,IAAI,CAACD,aAAa,KAAKC,KAAK,EAAE;MAC9B;IACJ;IACA,IAAI,CAACD,aAAa,GAAGC,KAAK;IAC1B,IAAI,CAACC,MAAM,CAAC,CAAC;EACjB;EACA;AACJ;AACA;EACI,IAAIC,uBAAuBA,CAAA,EAAG;IAC1B,OAAO,IAAI,CAACC,wBAAwB;EACxC;EACA,IAAID,uBAAuBA,CAACF,KAAK,EAAE;IAC/B,IAAI,IAA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