ShapeBuilderOrientedQuad Class
Namespace: Stride.Particles.ShapeBuildersAssembly: Stride.Particles.dll
Shape builder which builds each particle as a non-uniform quad oriented along an axis
Derived from ShapeBuilderOrientedQuad:
[DataContract("ShapeBuilderOrientedQuad")]
[Display("Direction Aligned Sprite", null)]
public class ShapeBuilderOrientedQuad : ShapeBuilderCommon
Name | Description | |
---|---|---|
Properties | ||
LengthFactor | Length will be modified with this factor |
|
QuadsPerParticle | Returns the number of quads required per particle to draw all particles. Assuming 1 Quad = 4 Vertices = 6 Indices |
|
ScaleLength | If |
|
Methods | ||
BuildVertexBuffer(ref ParticleBufferState, Vector3, Vector3, ref Vector3, ref Quaternion, Single, ref ParticleList, ref Matrix) |
Properties
LengthFactor
Length will be modified with this factor
[DataMember(310)]
[Display("Length factor", null)]
public float LengthFactor { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
QuadsPerParticle
Returns the number of quads required per particle to draw all particles. Assuming 1 Quad = 4 Vertices = 6 Indices
public override int QuadsPerParticle { get; protected set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Overrides
ScaleLength
If true
, length will scale with particle size
[DataMember(300)]
[Display("Size to Length", null)]
public bool ScaleLength { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
BuildVertexBuffer(ref ParticleBufferState, Vector3, Vector3, ref Vector3, ref Quaternion, Single, ref ParticleList, ref Matrix)
public override int BuildVertexBuffer(ref ParticleBufferState bufferState, Vector3 invViewX, Vector3 invViewY, ref Vector3 spaceTranslation, ref Quaternion spaceRotation, float spaceScale, ref ParticleList sorter, ref Matrix viewProj)
Parameters
Type | Name | Description |
---|---|---|
ParticleBufferState | bufferState | |
Vector3 | invViewX | |
Vector3 | invViewY | |
Vector3 | spaceTranslation | |
Quaternion | spaceRotation | |
System.Single | spaceScale | |
ParticleList | sorter | |
Matrix | viewProj |
Returns
Type | Description |
---|---|
System.Int32 |