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¶
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¶
Offset¶
public Vector2 Offset { get; init; }
Property Value¶
Rotation¶
public float Rotation { get; init; }
Property Value¶
Scale¶
public Vector2 Scale { get; init; }
Property Value¶
TexCoord¶
public int TexCoord { get; init; }
Property Value¶
Texture¶
public int Texture { get; init; }