ParticleRendererComponent

ParticleRendererComponent

The component to manage the particle uniforms and render list.
NOTE: This particle component does not have corresponding UI in frontend.

Constructor

new ParticleRendererComponent()

Members

material :Material

the material to be set on each particle.

renderList :Array.<ParticleData>

Render list to be processed in partitioner.

type :string

type of component

Methods

attached(entity)

Attach an entity to the component

Parameters:
Name Type Description
entity Entity

detached(entity)

Detach an entity from the component

Parameters:
Name Type Description
entity Entity

process(particles)

Process the particle array and generate the corresponding uniforms and renderList

Parameters:
Name Type Description
particles Array.<ParticleData>

the array of particles