@chronosai/three-mesh-ui
Version:
a library on top of three.js to help in creating 3D user interfaces
23 lines (14 loc) • 368 B
JavaScript
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.castShadow = true;
this.receiveShadow = true;
this.name = 'MeshUI-Frame';
}
}