Skip to content

Struct TextureRef

Namespace: Apogee.Content
Assembly: Apogee.Content.dll

A reference from a material to a texture of the model, with glTF's KHR_texture_transform.

public readonly record struct TextureRef : IEquatable<TextureRef>

Implements

IEquatable<TextureRef>

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

TextureRef(int, int, Vector2, Vector2, float)

A reference from a material to a texture of the model, with glTF's KHR_texture_transform.

public TextureRef(int Texture, int TexCoord, Vector2 Offset, Vector2 Scale, float Rotation)

Parameters

Texture int

TexCoord int

Offset Vector2

Scale Vector2

Rotation float

Properties

HasTransform

public bool HasTransform { get; }

Property Value

bool

Offset

public Vector2 Offset { get; init; }

Property Value

Vector2

Rotation

public float Rotation { get; init; }

Property Value

float

Scale

public Vector2 Scale { get; init; }

Property Value

Vector2

TexCoord

public int TexCoord { get; init; }

Property Value

int

Texture

public int Texture { get; init; }

Property Value

int