uvFor static method

ShapeUv uvFor(
  1. Primitive3D shape,
  2. Vector3 scale
)

How shape's texture is laid out at scale, drawn with its own look.

Implementation

static ShapeUv uvFor(Primitive3D shape, Vector3 scale) {
  if (!shape.tileInMetres || shape.texture.isEmpty) return ShapeUv.natural;
  return _metres(scale);
}