Class TextureTransform
KHR_texture_transform glTF extension
Inherited Members
Namespace: Unity.Cloud.Gltfast.Objects
Assembly: Unity.Cloud.Gltfast.dll
Syntax
[MovedFrom(true, "GLTFast.Schema", "glTFast", null)]
public class TextureTransform
Properties
Offset
The offset of the UV coordinate origin as a factor of the texture dimensions.
Declaration
[JsonPropertyName("offset")]
[JsonConverter(typeof(Float2Converter))]
public float2? Offset { get; set; }
Property Value
| Type | Description |
|---|---|
| float2? |
Rotation
Rotate the UVs by this many radians counter-clockwise around the origin. This is equivalent to a similar rotation of the image clockwise.
Declaration
[JsonPropertyName("rotation")]
public float Rotation { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
Scale
The scale factor applied to the components of the UV coordinates.
Declaration
[JsonPropertyName("scale")]
[JsonConverter(typeof(Float2Converter))]
public float2? Scale { get; set; }
Property Value
| Type | Description |
|---|---|
| float2? |
TexCoord
Overrides the textureInfo texCoord value if supplied, and if this extension is supported.
Declaration
[JsonPropertyName("texCoord")]
public int? TexCoord { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |