Class EntityShapeEmitter
The entity shape emitter class.
Inherited Members
Namespace: Evergine.Framework.Particles.Shape
Assembly: Evergine.Framework.dll
Syntax
public class EntityShapeEmitter : BaseShapeEmitter<ShapeEntityDescription>
Constructors
EntityShapeEmitter(ShapeEntityDescription)
Initializes a new instance of the EntityShapeEmitter class.
Declaration
public EntityShapeEmitter(ShapeEntityDescription description)
Parameters
Type | Name | Description |
---|---|---|
ShapeEntityDescription | description | The emitter description. |
Properties
EmissionSource
Gets or sets the emission type of the entity.
Declaration
[RenderProperty(CustomPropertyName = "Emission Source", Tooltip = "What part of the entity are considered for emission (vertex, triangles...)")]
public EntityEmitterType EmissionSource { get; set; }
Property Value
Type | Description |
---|---|
EntityEmitterType |
NeedsEntitySource
Gets a value indicating whether the emitter shape needs an entity source.
Declaration
public override bool NeedsEntitySource { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
Methods
EmitParticleCPU(CPUEmitterSimulator, ref uint, ref Vector3, out Vector3)
CPU particle emission.
Declaration
protected override void EmitParticleCPU(CPUEmitterSimulator cpuEmitter, ref uint seed, ref Vector3 position, out Vector3 initDirection)
Parameters
Type | Name | Description |
---|---|---|
CPUEmitterSimulator | cpuEmitter | The cpu emitter simulator. |
uint | seed | The seed. |
Vector3 | position | The init position. |
Vector3 | initDirection | The init direction. |
Overrides
RefreshShapeParameters(CommandBuffer, EmitterSimulator)
Refreshes the shape parameters.
Declaration
public override void RefreshShapeParameters(CommandBuffer commandBuffer, EmitterSimulator emitter)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | commandBuffer | The comand buffer. |
EmitterSimulator | emitter | The particles emitter. |