Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

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.

View as Markdown
import { twin } from '@dioramajs/model/model'

. Undefined for kinds glTF lines and points use.

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

Parameters

NameTypeDescription
sourceMaterial

Defined in packages/model/src/model.ts.