Class PointParticleEmitter
Implements
Constructors
constructor
-
Creates a new instance PointParticleEmitter
Returns PointParticleEmitter
Properties
direction1
Random direction of each particle after it has been emitted, between direction1 and direction2 vectors.
direction2
Random direction of each particle after it has been emitted, between direction1 and direction2 vectors.
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
get Class Name
-
Returns the string "PointParticleEmitter"
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 a point. It emits the particles randomly between 2 given directions.