TextureRef class final

A material's use of a texture.

Constructors

TextureRef(int texture, {int texCoord = 0, (double, double) offset = (0.0, 0.0), (double, double) scale = (1.0, 1.0), double rotation = 0.0})
Texture texture read with UV set texCoord and an optional KHR_texture_transform.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
hasTransform → bool
Whether it moves UVs at all.
no setter
offset → (double, double)
UV offset.
final
rotation → double
UV rotation, radians.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scale → (double, double)
UV scale.
final
texCoord → int
UV set (only 0 is uploaded; 1 falls back to 0).
final
texture → int
Texture index.
final

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