Search Results for

    Show / Hide Table of Contents

    Class BaseShapeEmitter<T>

    Base class that represents the base particle emitter.

    Inheritance
    object
    BaseShapeEmitter
    BaseShapeEmitter<T>
    BoxShapeEmitter
    CircleShapeEmitter
    EdgeShapeEmitter
    EntityShapeEmitter
    PointShapeEmitter
    SphereShapeEmitter
    Inherited Members
    BaseShapeEmitter.PropertyChanged
    BaseShapeEmitter.NeedsEntitySource
    BaseShapeEmitter.CreateFromDescription(ShapeDescription)
    BaseShapeEmitter.RaisePropertyChanged(string)
    Namespace: Evergine.Framework.Particles.Shape
    Assembly: Evergine.Framework.dll
    Syntax
    public abstract class BaseShapeEmitter<T> : BaseShapeEmitter where T : ShapeDescription
    Type Parameters
    Name Description
    T

    The type of the emitter shape..

    Constructors

    BaseShapeEmitter(T)

    Initializes a new instance of the BaseShapeEmitter<T> class.

    Declaration
    public BaseShapeEmitter(T description)
    Parameters
    Type Name Description
    T description

    The shape description.

    Fields

    randomizeDirectionMode

    The randomize mode of the emitter.

    Declaration
    protected EmitRandomized randomizeDirectionMode
    Field Value
    Type Description
    EmitRandomized

    Properties

    Description

    Gets the shape description.

    Declaration
    public T Description { get; }
    Property Value
    Type Description
    T

    RandomizeDirection

    Gets or sets the directional random on the particle's emission velocity.

    Declaration
    [RenderPropertyAsFInput(0, 1, CustomPropertyName = "Randomized Direction", Tooltip = "Modifies the initial particle direction with a random direction.")]
    public float RandomizeDirection { get; set; }
    Property Value
    Type Description
    float

    ShapeType

    Gets the shape type.

    Declaration
    public override EmitterShapes ShapeType { get; }
    Property Value
    Type Description
    EmitterShapes
    Overrides
    BaseShapeEmitter.ShapeType

    VelocityOffset

    Gets or sets the directional random on the particle's emission velocity.

    Declaration
    [RenderProperty(CustomPropertyName = "Velocity Offset", Tooltip = "Vector added to the initial velocity.")]
    public override Vector3 VelocityOffset { get; set; }
    Property Value
    Type Description
    Vector3
    Overrides
    BaseShapeEmitter.VelocityOffset

    Methods

    BindShape(ComputeEmitterSimulator)

    Sets the shape properties to the particle compute.

    Declaration
    public override void BindShape(ComputeEmitterSimulator computeEmitter)
    Parameters
    Type Name Description
    ComputeEmitterSimulator computeEmitter

    The compute emitter simulator.

    Overrides
    BaseShapeEmitter.BindShape(ComputeEmitterSimulator)

    EmitParticleCPU(CPUEmitterSimulator, ref uint, ref Vector3, out Vector3)

    CPU particle emission.

    Declaration
    protected abstract 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.

    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.

    Overrides
    BaseShapeEmitter.RefreshShapeParameters(CommandBuffer, EmitterSimulator)

    UnbindShape(ComputeEmitterSimulator)

    Unsets the shape properties to the particle compute.

    Declaration
    public override void UnbindShape(ComputeEmitterSimulator computeEmitter)
    Parameters
    Type Name Description
    ComputeEmitterSimulator computeEmitter

    The compute emitter simulator.

    Overrides
    BaseShapeEmitter.UnbindShape(ComputeEmitterSimulator)

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX