Class CylinderDirectedParticleEmitter
Hierarchy (View Summary)
- CylinderParticleEmitter
- CylinderDirectedParticleEmitter
Index
Constructors
constructor
-
new CylinderDirectedParticleEmitter(
radius?: number,
height?: number,
radiusRange?: number,
direction1?: Vector3,
direction2?: Vector3,
): CylinderDirectedParticleEmitterCreates a new instance CylinderDirectedParticleEmitter
Parameters
- radius: number = 1
the radius of the emission cylinder (1 by default)
- height: number = 1
the height of the emission cylinder (1 by default)
- radiusRange: number = 1
the range of the emission cylinder [0-1] 0 Surface only, 1 Entire Radius (1 by default)
- direction1: Vector3 = ...
the min limit of the emission direction (up vector by default)
- direction2: Vector3 = ...
the max limit of the emission direction (up vector by default)
Returns CylinderDirectedParticleEmitter
- radius: number = 1
Properties
direction1
[Up vector] The min limit of the emission direction.
direction2
[Up vector] The max limit of the emission direction.
direction Randomizer
[0] How much to randomize the particle direction [0-1].
height
[1] The height of the emission cylinder.
radius
[1] The radius of the emission cylinder.
radius Range
[1] The range of emission [0-1] 0 Surface only, 1 Entire Radius.
Methods
apply To Shader
-
Called by the GPUParticleSystem to setup the update shader
Parameters
- uboOrEffect: UniformBufferEffectCommonAccessor
defines the update shader
Returns void
- uboOrEffect: UniformBufferEffectCommonAccessor
build Uniform Layout
-
Creates the structure of the ubo for this particle emitter
Parameters
- ubo: UniformBuffer
ubo to create the structure for
Returns void
- ubo: UniformBuffer
clone
-
Clones the current emitter and returns a copy of it
Returns CylinderDirectedParticleEmitter
the new emitter
get Class Name
-
Returns the string "CylinderDirectedParticleEmitter"
Returns string
a string containing the class name
get Effect Defines
-
Returns a string to use to update the GPU particles update shader
Returns string
a string containing the defines string
parse
-
Parse properties from a JSON object
Parameters
- serializationObject: any
defines the JSON object
Returns void
- serializationObject: any
serialize
-
Serializes the particle system to a JSON object.
Returns any
the JSON object
Particle emitter emitting particles from the inside of a cylinder. It emits the particles randomly between two vectors.