UNPKG

@adhiban/three-mesh-ui

Version:

a library on top of three.js to help in creating 3D user interfaces, with minor changes ;)

20 lines (12 loc) 309 B
import { PlaneGeometry } from 'three'; import { Mesh } from 'three'; /** * Returns a basic plane mesh. */ export default class Frame extends Mesh { constructor( material ) { const geometry = new PlaneGeometry(); super( geometry, material ); this.name = 'MeshUI-Frame'; } }