mirror of
https://github.com/visgl/luma.gl.git
synced 2025-12-08 17:36:19 +00:00
815 B
815 B
Sphere
A scenegraph model node with an SphereGeometry.
Usage
Create a white Sphere of radius 2
import {Sphere} from '@luma.gl/core';
const sphere = new Sphere(gl, {
radius: 2
});
Inheritance
Sphere extends ModelNode extends ScenegraphNode
Methods
constructor(gl : WebGLRenderingContext, props : Object)
The constructor for the Sphere class. Use this to create a new Sphere.
props.nlat=10- (number, optional) The number of vertices for latitude.props.nlong=10- (number, optional) The number of vertices for longitude.props.radius=1- (number, optional) The radius of the sphere.