TextureRef constructor

const TextureRef(
  1. int texture, {
  2. int texCoord = 0,
  3. (double, double) offset = (0.0, 0.0),
  4. (double, double) scale = (1.0, 1.0),
  5. double rotation = 0.0,
})

Texture texture read with UV set texCoord and an optional KHR_texture_transform.

Implementation

const TextureRef(
  this.texture, {
  this.texCoord = 0,
  this.offset = const (0.0, 0.0),
  this.scale = const (1.0, 1.0),
  this.rotation = 0.0,
});