twin function
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.
import { twin } from '@dioramajs/model/model'. Undefined for kinds glTF lines and points use.
function twin(
source: Material,
): MeshStandardNodeMaterial | MeshBasicNodeMaterial | undefinedParameters
| Name | Type | Description |
|---|---|---|
source | Material |
Defined in packages/model/src/model.ts.