Class EntityMeshCPUData
A class that represents the mesh information of an entity using compute shaders.
Inherited Members
Namespace: Evergine.Framework.Particles.Helpers
Assembly: Evergine.Framework.dll
Syntax
public class EntityMeshCPUData : EntityMeshData
Constructors
EntityMeshCPUData()
Initializes a new instance of the EntityMeshCPUData class.
Declaration
public EntityMeshCPUData()
Fields
EntitySourceType
Gets or sets the entity source type.
Declaration
public EntityEmitterType EntitySourceType
Field Value
Type | Description |
---|---|
EntityEmitterType |
Properties
Indices
Gets the indices array.
Declaration
public uint[] Indices { get; }
Property Value
Type | Description |
---|---|
uint[] |
SKNormalData
Gets the skinned normals.
Declaration
public long SKNormalData { get; }
Property Value
Type | Description |
---|---|
long |
SKPositionData
Gets the skinned positions.
Declaration
public long SKPositionData { get; }
Property Value
Type | Description |
---|---|
long |
Vertices
Gets the array of vertices.
Declaration
public EmitMeshVertexData[] Vertices { get; }
Property Value
Type | Description |
---|---|
EmitMeshVertexData[] |
Methods
ClearEntity()
Clears the entity's information.
Declaration
public override void ClearEntity()
Overrides
GetNormalPosition(LightRandom, ref uint, ref Vector3, out Vector3, out Matrix4x4*)
Emits a particle.
Declaration
public void GetNormalPosition(LightRandom random, ref uint seed, ref Vector3 position, out Vector3 normal, out Matrix4x4* transform)
Parameters
Type | Name | Description |
---|---|---|
LightRandom | random | The random generator. |
uint | seed | The random seed. |
Vector3 | position | The new position. |
Vector3 | normal | The new normal. |
Matrix4x4* | transform | The transform. |
GetPosition(LightRandom, ref uint, ref Vector3)
Emits a particle.
Declaration
public void GetPosition(LightRandom random, ref uint seed, ref Vector3 position)
Parameters
Type | Name | Description |
---|---|---|
LightRandom | random | The random number generator. |
uint | seed | The particle seed. |
Vector3 | position | The new position. |
RefreshEntityParameters(EmitMeshVertexData[], uint[])
Refreshes the entity parameters.
Declaration
protected override void RefreshEntityParameters(EmitMeshVertexData[] vertices, uint[] indices)
Parameters
Type | Name | Description |
---|---|---|
EmitMeshVertexData[] | vertices | |
uint[] | indices |