Class EntityMeshCPUData
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[] |
SKNormals
Gets the skinned normals.
Declaration
public Vector3[] SKNormals { get; }
Property Value
Type | Description |
---|---|
Vector3[] |
SKPositions
Gets the skinned positions.
Declaration
public Vector3[] SKPositions { get; }
Property Value
Type | Description |
---|---|
Vector3[] |
Vertices
Gets the vertices array.
Declaration
public EmitMeshVertexData[] Vertices { get; }
Property Value
Type | Description |
---|---|
EmitMeshVertexData[] |
Methods
ClearEntity()
Clears the entity 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 tranform. |
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. |
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 |