uvFor static method

Shape3DUv uvFor(
  1. Primitive3DComponent shape,
  2. Vector3 scale
)

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

Implementation

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