Table of Contents

Struct UVRotate

Namespace
Stride.Particles.ShapeBuilders.Tools
Assembly
Stride.Particles.dll

Struct used to rotate and/or flip texture coordinates

[DataContract("UVRotate")]
[Display("UV Rotate", null)]
public struct UVRotate
Inherited Members

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

bool

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

bool

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

UVClockwiseRotation

Methods

GetCoords(Vector2)

Returns the rotated texture coordinates for base input texture coordinates

public Vector2 GetCoords(Vector2 inVector)

Parameters

inVector Vector2

Base texture coordinates

Returns

Vector2

Rotated and flipped coordinates