Chevron Down
Table of Contents
Chevron DownGetting Started
Chevron DownAPI Reference

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.