TextureTransform class Materials

A texture-coordinate transform applied before sampling a material slot.

The transform follows glTF's KHR_texture_transform order. scale is applied first, followed by rotation around the origin and offset.

Constructors

TextureTransform({Vector2? offset, Vector2? scale, double rotation = 0.0})
Creates a texture transform, identity when all arguments are omitted.

Properties

hashCode int
The hash code for this object.
no setterinherited
isIdentity bool
Whether this transform leaves UV coordinates unchanged.
no setter
offset ↔ Vector2
Translation in UV coordinates.
getter/setter pair
rotation double
Counter-clockwise rotation in radians.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale ↔ Vector2
Per-axis UV scale.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited