# twin

function in `@dioramajs/model/model`

```ts
import { twin } from '@dioramajs/model/model'
```

A node material owned by the instance with the same look as a glTF one: textures stay shared
with the cache, colours and vectors are copied. Undefined for kinds glTF lines and points use.

```ts
function twin(
  source: Material,
): MeshStandardNodeMaterial | MeshBasicNodeMaterial | undefined
```

| Parameter | Type | Description |
| --- | --- | --- |
| `source` | `Material` |  |

Defined in [packages/model/src/model.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/model/src/model.ts#L122).
