617 B

Cube

Create a white cube model. Inherits methods from Model

Usage

import {Cube} from '@luma.gl/core';
const whiteCube = new Cube(gl, {
  colors: [1, 1, 1, 1]
});

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.