2019-03-24 11:48:43 -07:00

608 B

Cube

A scenegraph model node with a CubeGeometry.

Usage

Create a Cube:

import {Cube} from '@luma.gl/core';
const cube = new Cube(gl);

Inheritance

Cube extends ModelNode extends ScenegraphNode

Methods

constructor(gl : WebGLRenderingContext, props : Object)

Creates a new Cube.

Accepts the same properties and options as ModelNode constructor but has preset for vertices, normals and indices.