UVRotate Struct
Namespace: Stride.Particles.ShapeBuilders.ToolsAssembly: Stride.Particles.dll
Struct used to rotate and/or flip texture coordinates
[DataContract("UVRotate")]
[Display("UV Rotate", null)]
public struct UVRotate
Name | Description | |
---|---|---|
Properties | ||
FlipX | If |
|
FlipY | If |
|
UVClockwise | If |
|
Methods | ||
GetCoords(Vector2) | Returns the rotated texture coordinates for base input texture coordinates |
Properties
FlipX
If True
, the texture coordinates will be flipped horizontally prior to texture sampling.
[Display("Flip Hor", null)]
public bool FlipX { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
FlipY
If True
, the texture coordinates will be flipped vertically prior to texture sampling.
[Display("Flip Ver", null)]
public bool FlipY { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
UVClockwise
If True
, the texture coordinates will be rotated clockwise by the specified angle prior to texture sampling.
[Display("Clockwise", null)]
public UVClockwiseRotation UVClockwise { get; set; }
Property Value
Type | Description |
---|---|
UVClockwiseRotation |
Methods
GetCoords(Vector2)
Returns the rotated texture coordinates for base input texture coordinates
public Vector2 GetCoords(Vector2 inVector)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | inVector | Base texture coordinates |
Returns
Type | Description |
---|---|
Vector2 | Rotated and flipped coordinates |