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 description of the emitter. |
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 a source entity.
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 initial position. |
Vector3 | initDirection | The initial 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 command buffer. |
EmitterSimulator | emitter | The particle emitter. |