UNPKG

avansel

Version:

Free OpenSource ThreeJS Javascript Virtual Tours viewer

19 lines (13 loc) 292 B
import { Group, Mesh, Scene as ThreeScene } from 'three'; export default class Scene{ instance: ThreeScene constructor(){ this.instance = new ThreeScene(); } add(object: Mesh|Group){ this.instance.add(object) } get(){ return this.instance } }