Class MeshParticleEmitter
Implements
Constructors
constructor
-
Creates a new instance MeshParticleEmitter
Parameters
- mesh: Nullable<AbstractMesh> = null
defines the mesh to use as source
Returns MeshParticleEmitter
- mesh: Nullable<AbstractMesh> = null
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.
use Mesh Normals For Direction
Gets or sets a boolean indicating that particle directions must be built from mesh face normals
Accessors
mesh
-
Defines the mesh to use as source
Returns Nullable<AbstractMesh>
-
Parameters
- value: Nullable<AbstractMesh>
Returns void
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 "BoxParticleEmitter"
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
serialize
-
Serializes the particle system to a JSON object.
Returns any
the JSON object
Particle emitter emitting particles from the inside of a box. It emits the particles randomly between 2 given directions.