UVBuilderScroll Class
Namespace: Stride.Particles.MaterialsAssembly: Stride.Particles.dll
Animates the texture coordinates starting with one rectangle and scrolling/zooming it to an ending rectangle over the particle's life
[DataContract("UVBuilderScroll")]
[Display("Scrolling", null)]
public class UVBuilderScroll : UVBuilder, IAttributeTransformer<Vector2, Vector4>
Name | Description | |
---|---|---|
Properties | ||
EndFrame | Ending sub-region (rectangle) for the scroll |
|
StartFrame | Starting sub-region (rectangle) for the scroll |
|
Methods | ||
BuildUVCoordinates(ref ParticleBufferState, ref ParticleList, AttributeDescription) | Enhances or animates the texture coordinates using already existing base coordinates of (0, 0, 1, 1) or similar (base texture coordinates may differ depending on the actual shape) |
|
Transform(ref Vector2, ref Vector4) |
Properties
EndFrame
Ending sub-region (rectangle) for the scroll
[DataMember(240)]
[Display("End frame", null)]
public Vector4 EndFrame { get; set; }
Property Value
Type | Description |
---|---|
Vector4 |
StartFrame
Starting sub-region (rectangle) for the scroll
[DataMember(200)]
[Display("Start frame", null)]
public Vector4 StartFrame { get; set; }
Property Value
Type | Description |
---|---|
Vector4 |
Methods
BuildUVCoordinates(ref ParticleBufferState, ref ParticleList, AttributeDescription)
Enhances or animates the texture coordinates using already existing base coordinates of (0, 0, 1, 1) or similar (base texture coordinates may differ depending on the actual shape)
public override void BuildUVCoordinates(ref ParticleBufferState bufferState, ref ParticleList sorter, AttributeDescription texCoordsDescription)
Parameters
Type | Name | Description |
---|---|---|
ParticleBufferState | bufferState | The particle buffer state which is used to build the assigned vertex buffer |
ParticleList | sorter | |
AttributeDescription | texCoordsDescription | Attribute description of the texture coordinates in the current vertex layout |
Overrides
Transform(ref Vector2, ref Vector4)
public void Transform(ref Vector2 attribute, ref Vector4 uvTransform)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | attribute | |
Vector4 | uvTransform |